XSDEditor can only create element of string type [message #50303] |
Mon, 16 August 2004 05:57  |
Eclipse User |
|
|
|
Originally posted by: daniel_leo.163.com
Hi,
I am using the XSDItemProvider to construct a TreeView , as XSDEditor
syntax does. But I found that the XSDEditor can only create element of
string type. Even if you select the element of string type and all the
related info are displayed in the PropertyView, the type definition can
not be modifed. But other info can be modified, such as the "Name" and
"Target Namespace". Is it the shortage of XSD itself? Or I use the XSD
incorrectly?
I mean maybe the XSD itself can not support edit type definition of
element in SyntaxView( of XSDEditor ).
Thanks:)
Brs/
daniel leo
|
|
|
Re: XSDEditor can only create element of string type [message #50333 is a reply to message #50303] |
Mon, 16 August 2004 08:00  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------040408000403010000050500
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Daniel,
It's just not been enabled:
protected void createTypeDefinitionPropertyDescriptor(Object object)
{
XSDElementDeclaration xsdElementDeclaration =
((XSDElementDeclaration)object);
// This is for the typeDefinition feature.
//
itemPropertyDescriptors.add
(new DelegatingItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterF actory(),
XSDEditPlugin.getString("_UI_TypeDefinition_label"),
XSDEditPlugin.getString("_UI_TypeDefinitionOfElement_description "),
xsdPackage.getXSDElementDeclaration_TypeDefinition(),
*false*,
null));
}
I tried enabling it, and it seems to work okay (but the drop down list
should filter out anonymous types).
daniel leo wrote:
>Hi,
>I am using the XSDItemProvider to construct a TreeView , as XSDEditor
>syntax does. But I found that the XSDEditor can only create element of
>string type. Even if you select the element of string type and all the
>related info are displayed in the PropertyView, the type definition can
>not be modifed. But other info can be modified, such as the "Name" and
>"Target Namespace". Is it the shortage of XSD itself? Or I use the XSD
>incorrectly?
>I mean maybe the XSD itself can not support edit type definition of
>element in SyntaxView( of XSDEditor ).
>
>Thanks:)
>
>Brs/
>daniel leo
>
>
>
--------------040408000403010000050500
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Daniel,<br>
<br>
It's just not been enabled:<br>
<blockquote>
|
|
|
Re: XSDEditor can only create element of string type [message #590198 is a reply to message #50303] |
Mon, 16 August 2004 08:00  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------040408000403010000050500
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Daniel,
It's just not been enabled:
protected void createTypeDefinitionPropertyDescriptor(Object object)
{
XSDElementDeclaration xsdElementDeclaration =
((XSDElementDeclaration)object);
// This is for the typeDefinition feature.
//
itemPropertyDescriptors.add
(new DelegatingItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterF actory(),
XSDEditPlugin.getString("_UI_TypeDefinition_label"),
XSDEditPlugin.getString("_UI_TypeDefinitionOfElement_description "),
xsdPackage.getXSDElementDeclaration_TypeDefinition(),
*false*,
null));
}
I tried enabling it, and it seems to work okay (but the drop down list
should filter out anonymous types).
daniel leo wrote:
>Hi,
>I am using the XSDItemProvider to construct a TreeView , as XSDEditor
>syntax does. But I found that the XSDEditor can only create element of
>string type. Even if you select the element of string type and all the
>related info are displayed in the PropertyView, the type definition can
>not be modifed. But other info can be modified, such as the "Name" and
>"Target Namespace". Is it the shortage of XSD itself? Or I use the XSD
>incorrectly?
>I mean maybe the XSD itself can not support edit type definition of
>element in SyntaxView( of XSDEditor ).
>
>Thanks:)
>
>Brs/
>daniel leo
>
>
>
--------------040408000403010000050500
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Daniel,<br>
<br>
It's just not been enabled:<br>
<blockquote>
|
|
|
Powered by
FUDForum. Page generated in 0.04331 seconds