Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » itemProviderAdapterFactories
itemProviderAdapterFactories [message #636333] Sun, 31 October 2010 00:58 Go to next message
Michael Spertus is currently offline Michael SpertusFriend
Messages: 78
Registered: July 2009
Member
I have a model with 5 packages, but when I generate the edit plugin, only two of them contribute org.eclipse.emf.edit.itemProviderAdapterFactories extensions. I don't know of any differences between the packages and would like them all to contribute to the extension point. Any idea what is going on here?

Thanks,

Mike
Re: itemProviderAdapterFactories [message #636344 is a reply to message #636333] Sun, 31 October 2010 09:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Mike,

Do they all contain EClasses? Do some generate the
XyzItemProviderAdapterFactory but not the registration for them in the
plugin.xml? Note that the plugin.xml doesn't regenerate once it exists,
so you'd need to delete it to regenerate it.


Michael Spertus wrote:
> I have a model with 5 packages, but when I generate the edit plugin,
> only two of them contribute
> org.eclipse.emf.edit.itemProviderAdapterFactories extensions. I don't
> know of any differences between the packages and would like them all
> to contribute to the extension point. Any idea what is going on here?
>
> Thanks,
>
> Mike


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: itemProviderAdapterFactories [message #636359 is a reply to message #636344] Sun, 31 October 2010 12:10 Go to previous messageGo to next message
Michael Spertus is currently offline Michael SpertusFriend
Messages: 78
Registered: July 2009
Member
Thanks for the response, Ed. Following your advice, I was able to fix the problem by deleting plugin.xml and regenerating. Do I only need to delete and regenerate the xxx.edit plugin.xml when I add packages to my model, or should I delete all of them?

Unfortunately, I customize the generated plugin.xml, so deleting, regenerating, and recustomizing is painful. Is there a recommended way of handling this?

Thanks again,

Mike
Re: itemProviderAdapterFactories [message #636386 is a reply to message #636359] Sun, 31 October 2010 22:36 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Mike,

Unfortunately we don't yet support merging of the plugin.xml so either
you add things manually, or you delete it and regenerate it. Of course
if you have things under source code control. (how could you not?) you
should be able to merge in your own changes quite painlessly...


Michael Spertus wrote:
> Thanks for the response, Ed. Following your advice, I was able to fix
> the problem by deleting plugin.xml and regenerating. Do I only need to
> delete and regenerate the xxx.edit plugin.xml when I add packages to
> my model, or should I delete all of them?
>
> Unfortunately, I customize the generated plugin.xml, so deleting,
> regenerating, and recustomizing is painful. Is there a recommended
> way of handling this?
>
> Thanks again,
>
> Mike


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Error while generating model
Next Topic:Problem instantiating model
Goto Forum:
  


Current Time: Fri Apr 19 15:47:10 GMT 2024

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

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

Back to the top