|
Re: Strategy for updating the gmfgen model after having edited the ecore/ecore_d [message #178842 is a reply to message #178680] |
Tue, 25 March 2008 08:23 |
Eclipse User |
|
|
|
Originally posted by: marsha.rohrer.swisscom.com
Hi Florian,
I am in the same situation as you are (i.e. a lot of customized code). If
I have to update the ecore model I proceed as follows:
1. update ecore diagram
2. validate it to be sure the changes are correct
3. reload genmodel (right-click on genmodel -> Reload...)
4. re-generate the code from the genmodel you need (model and edit code in
my case)
5. do the changes to gmfgraph, gmftool, gmfmap if needed.
6. validate gmfmap to be sure all changes are correct.
7. re-generate the gmfgen (right-click on gmfmap -> Generate generator
model...)
8. re-generate the diagram code from the gmfgen
In my case all customizations annotated with @generated NOT stay
persistent.
Hope that helps,
Marsha
|
|
|
Re: Strategy for updating the gmfgen model after having edited the ecore/ecore_d [message #178900 is a reply to message #178842] |
Tue, 25 March 2008 15:17 |
Eclipse User |
|
|
|
Originally posted by: 5d5.mail.ru
You may also use 'Hide @generated code' filter in Package Explorer to
quickly find customized java classes.
Marsha wrote:
> Hi Florian,
>
> I am in the same situation as you are (i.e. a lot of customized code).
> If I have to update the ecore model I proceed as follows:
> 1. update ecore diagram
> 2. validate it to be sure the changes are correct
> 3. reload genmodel (right-click on genmodel -> Reload...)
> 4. re-generate the code from the genmodel you need (model and edit code
> in my case)
> 5. do the changes to gmfgraph, gmftool, gmfmap if needed.
> 6. validate gmfmap to be sure all changes are correct.
> 7. re-generate the gmfgen (right-click on gmfmap -> Generate generator
> model...)
> 8. re-generate the diagram code from the gmfgen
>
> In my case all customizations annotated with @generated NOT stay
> persistent.
>
> Hope that helps,
> Marsha
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04268 seconds