First I'm sorry if this question has been posted before, I read the previous questions and none seems to fit my question.
We need to edit the generated model, for example, change the type on a field declaration.
As there are model, edit and editor plugins for emf models, we wonder what is the needed plugin to edit the java model.
If there is not such plugin, what is the better way to edit the generated model?
Thanks a lot in advance for your time.
For editing single elements of an ecore model instance, you can use the sample reflective model editor. To open this editor, select your generated model file -> right click -> open with -> sample reflective model editor. If you need to apply the same change many times, you should have a look at ATL.
As useful complementary information: MoDisco provides the generic MoDisco Model Browser, which is particularly dedicated to the navigation through large & complex models (such as the Java ones you can obtain using the MoDisco Java Model Discoverer).
Actually, if you have MoDisco installed (which is the case I guess as you are talking about Java models), this should be the default editor for EMF models (i.e. XMI files).
In addition to all the proposed advanced navigation features, it also provides the main base editing capabilities that you will find in the EMF sample reflective model editor.
I encourage you to take a deeper look into the MoDisco Reference Documentation to get more details on this component.
Andreas, Hugo: Thanks for your quick response and help.
Maybe I was not clear enough. We need to edit a java model programatically. We generate the model programatically (using modisco), and then we need to change some properties of the objects in this model (i.e. a type in a field declaration). Since that, in an EMF model, is done via the edit plugin, we were wondering what is the best way to do it in Modisco
Thanks in advance!