Skip to main content



      Home
Home » Modeling » EMF » itemProviderAdapterFactories
itemProviderAdapterFactories [message #636333] Sat, 30 October 2010 20:58 Go to next message
Eclipse UserFriend
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 05:00 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: itemProviderAdapterFactories [message #636359 is a reply to message #636344] Sun, 31 October 2010 08:10 Go to previous messageGo to next message
Eclipse UserFriend
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 18:36 Go to previous message
Eclipse UserFriend
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
Previous Topic:Error while generating model
Next Topic:Problem instantiating model
Goto Forum:
  


Current Time: Sat Jul 05 10:38:38 EDT 2025

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

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

Back to the top