Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Question about Feature Seq Initializer
Question about Feature Seq Initializer [message #107521] Wed, 28 February 2007 05:35 Go to next message
Eclipse UserFriend
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 #107616 is a reply to message #107521] Wed, 28 February 2007 06:19 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Question about Feature Seq Initializer [message #107705 is a reply to message #107616] Wed, 28 February 2007 07:51 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:issue with "duplicate" feature and compartments
Next Topic:conditional display patterns?
Goto Forum:
  


Current Time: Sat Jul 19 12:22:03 EDT 2025

Powered by FUDForum. Page generated in 0.25096 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top