Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » XSDEditPlugin
XSDEditPlugin [message #398033] Tue, 24 January 2006 13:26 Go to next message
frank chen is currently offline frank chen
Messages: 63
Registered: July 2009
Member
XSDEditPlugin in the standalone version is still extending Plugin which is part of the eclipse core. I cannot call getPropertyDescriptors() under any of the XSD_TYPE_DefinitionItemProviders without including the core libs since they all use the XSDEditPlugin.getString method. Is this intentional or is it a bug.
Re: XSDEditPlugin [message #398034 is a reply to message #398033] Tue, 24 January 2006 13:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 24553
Registered: July 2009
Senior Member
Frank,

No, it's not intentional. If you open a bugzilla feature request, we'll
look at changing it to use the same generated pattern that is used by
other *.edit plugins.


frank wrote:

>XSDEditPlugin in the standalone version is still extending Plugin which is part of the eclipse core. I cannot call getPropertyDescriptors() under any of the XSD_TYPE_DefinitionItemProviders without including the core libs since they all use the XSDEditPlugin.getString method. Is this intentional or is it a bug.
>
>
Re: XSDEditPlugin [message #398035 is a reply to message #398033] Tue, 24 January 2006 15:03 Go to previous messageGo to next message
frank chen is currently offline frank chen
Messages: 63
Registered: July 2009
Member
Is there some way around it? I'm trying to create a xsd editor outside of eclipse using swing. I have a set of XSDConcreteComponent object that I'm trying to display in a tree and their properties in a table. I'm currently using the following code

XSDItemProviderAdapterFactory m_ipaf = new XSDItemProviderAdapterFactory();
ItemProviderAdapter ipa = (ItemProviderAdapter)m_ipaf.createAdapter(xsd);
List list = ipa.getPropertyDescriptors(xsd);'

and then getting each ItemPropertyDescriptor and calling getDisplayName and getPropertyValue.

That's when I run into the Exception i mentioned at the line ipa.getPropertyDescriptors
Re: XSDEditPlugin [message #398036 is a reply to message #398035] Tue, 24 January 2006 15:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 24553
Registered: July 2009
Senior Member
Frank,

The only workaround is to run as a headless Eclipse application.
Hopefully the proper change will be simple and it's something we could
do in a few hours...


frank wrote:

>Is there some way around it? I'm trying to create a xsd editor outside of eclipse using swing. I have a set of XSDConcreteComponent object that I'm trying to display in a tree and their properties in a table. I'm currently using the following code
>
>XSDItemProviderAdapterFactory m_ipaf = new XSDItemProviderAdapterFactory();
>ItemProviderAdapter ipa = (ItemProviderAdapter)m_ipaf.createAdapter(xsd);
>List list = ipa.getPropertyDescriptors(xsd);'
>
>and then getting each ItemPropertyDescriptor and calling getDisplayName and getPropertyValue.
>
>That's when I run into the Exception i mentioned at the line ipa.getPropertyDescriptors
>
>
Re: XSDEditPlugin [message #398037 is a reply to message #398034] Tue, 24 January 2006 15:19 Go to previous messageGo to next message
frank chen is currently offline frank chen
Messages: 63
Registered: July 2009
Member
Is there some way around it? I'm trying to create a xsd editor outside of eclipse using swing. I have a set of XSDConcreteComponent object that I'm trying to display in a tree and their properties in a table. I'm currently using the following code

XSDItemProviderAdapterFactory m_ipaf = new XSDItemProviderAdapterFactory();
ItemProviderAdapter ipa = (ItemProviderAdapter)m_ipaf.createAdapter(xsd);
List list = ipa.getPropertyDescriptors(xsd);'

and then getting each ItemPropertyDescriptor and calling getDisplayName and getPropertyValue.

That's when I run into the Exception i mentioned at the line ipa.getPropertyDescriptors
Re: XSDEditPlugin [message #398038 is a reply to message #398037] Tue, 24 January 2006 15:26 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 24553
Registered: July 2009
Senior Member
Frank,

You're repeating yourself, so I will to: The only workaround is to run
as a headless Eclipse application. Hopefully the proper change will be
simple and it's something we could do in a few hours...


frank wrote:

>Is there some way around it? I'm trying to create a xsd editor outside of eclipse using swing. I have a set of XSDConcreteComponent object that I'm trying to display in a tree and their properties in a table. I'm currently using the following code
>
>XSDItemProviderAdapterFactory m_ipaf = new XSDItemProviderAdapterFactory();
>ItemProviderAdapter ipa = (ItemProviderAdapter)m_ipaf.createAdapter(xsd);
>List list = ipa.getPropertyDescriptors(xsd);'
>
>and then getting each ItemPropertyDescriptor and calling getDisplayName and getPropertyValue.
>
>That's when I run into the Exception i mentioned at the line ipa.getPropertyDescriptors
>
>
Re: XSDEditPlugin [message #398039 is a reply to message #398038] Tue, 24 January 2006 15:59 Go to previous messageGo to next message
frank chen is currently offline frank chen
Messages: 63
Registered: July 2009
Member
What I'm working on really depends on it. It would be great if it can be fixed soon. When do think the bug will be fixed?
Re: XSDEditPlugin [message #398040 is a reply to message #398039] Tue, 24 January 2006 16:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 24553
Registered: July 2009
Senior Member
Frank,

If all goes well, I might be able to do it tomorrow and then it would be
in Thursday's build. Please open the bugzilla enhancement request for it.


frank wrote:

>What I'm working on really depends on it. It would be great if it can be fixed soon. When do think the bug will be fixed?
>
>
Re: XSDEditPlugin [message #398041 is a reply to message #398039] Tue, 24 January 2006 16:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 24553
Registered: July 2009
Senior Member
Frank,

The changes are easy. I have them ready to commit, pending your
bugzilla to commit them against...


frank wrote:

>What I'm working on really depends on it. It would be great if it can be fixed soon. When do think the bug will be fixed?
>
>
Re: XSDEditPlugin [message #398042 is a reply to message #398041] Tue, 24 January 2006 18:41 Go to previous message
frank chen is currently offline frank chen
Messages: 63
Registered: July 2009
Member
I have added the bug to bugzilla. The id is 125096. Thanks for your timely response.
Previous Topic:How to connect my ecore model with my another ecore model?
Next Topic:Opposite references in Maps?
Goto Forum:
  


Current Time: Thu May 23 19:38:12 EDT 2013

Powered by FUDForum. Page generated in 0.01927 seconds