Question about Feature Seq Initializer [message #107521] |
Wed, 28 February 2007 05:35  |
Eclipse User |
|
|
|
Hy there,
I want to get the creation of a child node, if the parent node will be
created. In the Feature Value Spec of the parent node there is the
ability to create a java body. Can I only put the name of the method
there? And then if the code of .gmfgen is generated, I have to put the
implementation for the method in the ElementInitializer.java of the
generated code for the .diagram? I also checked the way to overwrite
the doDefaultElementCreation() of the parent node.
The both results are perfect.
The only problem I have, is that everytime I regenerate the diagram with
..gmfgen, the code is away.
Is there an ability to get the code locked or to implement the code
somewhere in the .gmfmap or .gmfgen?
Greetings
Jens
|
|
|
|
Re: Question about Feature Seq Initializer [message #107705 is a reply to message #107616] |
Wed, 28 February 2007 07:51  |
Eclipse User |
|
|
|
Hello,
oh yeah thanks! Now I can see that the hint was already in the generated
source code. :(
Greetings
Jens
Alex Shatalin schrieb:
> Hello Jens,
>
>> The only problem I have, is that everytime I regenerate the diagram
>> with .gmfgen, the code is away.
>
> Specify "@generated NOT" javadoc comment (or remove "@generated" tag) to
> save custom method on next regeneration.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.25096 seconds