| edit generated java model [message #989622] |
Thu, 06 December 2012 20:25  |
Emiliano Galitiello Messages: 2 Registered: December 2012 |
Junior Member |
|
|
Hello
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.
|
|
|
|
| Re: edit generated java model [message #989670 is a reply to message #989659] |
Fri, 07 December 2012 04:15   |
Hugo Bruneliere Messages: 470 Registered: July 2009 |
Senior Member |
|
|
Hello,
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.
Best regards,
Hugo
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
|
| Re: edit generated java model [message #989962 is a reply to message #989828] |
Mon, 10 December 2012 04:36  |
Hugo Bruneliere Messages: 470 Registered: July 2009 |
Senior Member |
|
|
Hello,
Independently from MoDisco and as for any EMF model, you have two main ways of handling your Java model programmatically:
- Use the API automatically generated from the Java metamodel in Ecore (provided in this case by the org.eclipse.gmt.modisco.java plugin);
- Use the EMF reflective (dynamic) API (cf. this article for instance).
I hope this help.
Best regards,
Hugo
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
Powered by
FUDForum. Page generated in 0.07210 seconds