Changing Model [message #206083] |
Thu, 18 September 2008 18:35 |
Eclipse User |
|
|
|
Originally posted by: nuclearpsyche.gmail.com
Hello,
I decided to use GMF and EMF for my project. Since I made a lot of
modifications to my code I don't use the code generation features
anymore. I pretty much just generated the code once and have been
modifying it directly.
Now I need to change the model and I was wondering if I'm going to have
to use the "generate code" feature or if I can make the change manually.
If I do it manually what would be required?
For example if I have an object A that contains an object B but I decide
that now object A should contain a *list* of B objects.
How hard would it be to implement this change?
Any pointers would be greatly appreciated.
Best regards,
t
|
|
|
|
Re: Changing Model [message #206659 is a reply to message #206083] |
Tue, 23 September 2008 23:03 |
Eclipse User |
|
|
|
Originally posted by: Sam.sam.org
true, thats a problem.
try to centralize your code in custom packages
you can reference custom classes in *.gmfmap
make use of @generated NOT to prevent overwriting
make a backup, since the reconciling and rebuilding might nevertheless
overwrite your custom code
"Tamer" <nuclearpsyche@gmail.com> schrieb im Newsbeitrag
news:gau717$ug$1@build.eclipse.org...
> Hello,
> I decided to use GMF and EMF for my project. Since I made a lot of
> modifications to my code I don't use the code generation features anymore.
> I pretty much just generated the code once and have been modifying it
> directly.
> Now I need to change the model and I was wondering if I'm going to have to
> use the "generate code" feature or if I can make the change manually.
> If I do it manually what would be required?
> For example if I have an object A that contains an object B but I decide
> that now object A should contain a *list* of B objects.
> How hard would it be to implement this change?
> Any pointers would be greatly appreciated.
> Best regards,
>
> t
|
|
|
Powered by
FUDForum. Page generated in 0.03366 seconds