edit generated java model [message #989622] |
Thu, 06 December 2012 20:25  |
Eclipse User |
|
|
|
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 #989962 is a reply to message #989828] |
Mon, 10 December 2012 04:36  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.06618 seconds