Change behavior without modifying generated code [message #1803311] |
Tue, 26 February 2019 11:02  |
Eclipse User |
|
|
|
Hi,
I would like to modify the behavior of the label provider without changing the generated code.
(The general idea is deescribed here: https://nirmalsasidharan.wordpress.com/2011/05/18/extending-emf-itemproviders-using-google-guice-i/ but then without the guice.)
I thought I could do that by extending the corresponding generated ItemProviders. For my ItemProviders to be used, I also had to extend the generated ItemProviderAdapterFactory. In order for that one to be used I had to modify the plugin.xml of the edit plugin. It registers the generated AdapterFactory and I changed that into MyAdapterFactory.
However, the emf generator generates a new extension each time I changed it into my AdapterFactory.
Is there a way to suppress generation of the extension in the plugin.xml by the emf generator? Or is there a better way to modify the behavior of the label providers without changing any generated code?
Greetings,
Wilbert.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10179 seconds