[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: Incremental GMF code generation not working reliably
|
Hello,
I use the trace plugin, but observe similar problems. It's not the
visual IDs what causes troubles. It is the code generation itself. For
example if I delete a generated file, instead of regenerating it the GMF
generator complains that it is missing. If I delete some of its
contents, those contents are not regenerated too. Sometimes if I delete
a definite set of source files and the contents of some files I am able
to force the code generator to regenerate the contents. Obviously that
code generator is not working reliably. I want to force full
regeneration each time and only the @generated NOT methods to be left
untouched. We're going to write a script which will extract the
@generated NOT methods, delete everything, regenerate the sources and
apply the modified methods after that which solves the problems. I still
believe there is some option or plugin which can help stabilize the code
generation or am I wrong?
Regards,
Kalin
Alex Shatalin wrote:
> Hello Armin,
>
> Try using org.eclipse.gmf.bridge.trace plugin (a part of SDK
> Experimental ). This plugin should be installed together with GMF. It
> was designed to preserve visual id of the elements from generation to
> generation. You can try following:
>
> 1. Transform .gmfmap to .gmfgen -> .trace file will be created together
> with the .gmfgen model
> 2. Modify mapping and re-transform model -> visualID + code structure
> should not be changed so ugly.
>
> -----------------
> Alex Shatalin
>
>