Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » XSDEditor can only create element of string type
XSDEditor can only create element of string type [message #50303] Mon, 16 August 2004 09:57 Go to next message
Eclipse UserFriend
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 12:00 Go to previous message
Eclipse UserFriend
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 12:00 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
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>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:XSDEditor can only create element of string type
Next Topic:What about the future of XSDEdit?
Goto Forum:
  


Current Time: Thu Apr 25 15:34:24 GMT 2024

Powered by FUDForum. Page generated in 0.03489 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top