Ecore model replacement [message #882330] |
Wed, 06 June 2012 05:05  |
Eclipse User |
|
|
|
we have an Eclipse GMF Editor which is based on an Ecore model that was hand-coded from a specification document.
Now, we have written a tool which automatically transforms the specification into an Ecore model.
My task now is to replace the hand-coded Ecore model with the generated one. At this, the GMF Editor should work with the new Ecore. The generated Ecore and the hand-coded Ecore differ in some ways (different names of attributes, classes, a few more classes).
My question now is:
How should I, or how easy is it to get the GMF Editor working. I am sure I could reuse the Tooling Model and the Graphical Model. My idea was to simply adapt the mapping model. However, when I replace the Ecore model, all the @generated NOT stuff will be lost.
How would you do the Ecore exchange ?!
|
|
|
|
|
|
|
|
|
|
Re: Ecore model replacement [message #884742 is a reply to message #882478] |
Mon, 11 June 2012 14:07   |
Eclipse User |
|
|
|
Aurelien Pupier wrote on Wed, 06 June 2012 10:29Matthias N wrote on Wed, 06 June 2012 15:12Aurelien Pupier wrote on Wed, 06 June 2012 05:11Hi,
that's why modified @Generated Not is a bad practice (from my POV)
See the 5th slide of my talk: url...
Unfortunately, I'm not sure to understand your use case to answer with more details :s
Regards,
How would you use the "@generated NOT"? Sorry but here at work they don't allow slideshare (so stupid).
I'm using the generated code only as a sandbox, to test quickly new features. Code is regenerated at each build.
You can use GMF-Tooling model, extension points and generation templates to make your customizations.
Regards,
Hi Aurelien, can you provide me more information about how and which "generation templates" you use ?
thank you very much
|
|
|
|
Powered by
FUDForum. Page generated in 0.05553 seconds