propagating changes into gmfmap and gmfgen [message #61633] |
Thu, 12 October 2006 09:41  |
Eclipse User |
|
|
|
Originally posted by: tivadar.szemethy.netvisor.hu
Hello,
Maybe this is a FAQ, but I found no answer anywhere else...
I am generating an editor using the dashboard. I want to do a small
little change (e.g adjust a line decorator) in the gmfgraph model.
In order to propagate this change to the generated editor, is it always
necessary to re-generate the .gmfmap and .gmfgen, do the label
assignment and all the chores ?
I found that just editing and saving the .gmfgraph doesn't do the trick,
and regenerating those files every time I tweak the visual
representations is somewhat annoying, not mentioning loosing all the
changes I made to them this far.
TIA,
tiv
|
|
|
Re: propagating changes into gmfmap and gmfgen [message #61918 is a reply to message #61633] |
Thu, 12 October 2006 16:44   |
Eclipse User |
|
|
|
Originally posted by: rbbnjmn.yahoo.com
Hello tiv,
This all seemed opaque to me at first. Here is what I suggest.
1) Make a change to your gmfgraph model. Save it!
2) If not open, open your gmfmap model and expand the gmfgraph
reference; verify you see the same change there. (I've always
seen this work Ok, but I still tend to check the upstream model
after making changes to verify.)
3) Invoke the "Create Generator Model..." against your gmfmap.
This (I think) is a necessary step because your gmfgen model is
purely a generator model and only holds references to your ecore
and genmodel models.
4) Invoke "Generate Diagram code" against your gmfgen model.
So, your gmfgraph, gmfmap, and gmftool models will try to always be
consistent with each other.
Your gmfgen, ecore, and genmodel models will try to be consistent too.
Adding/deleting items from your gmfgraph/gmftool models can cause the
gmfmap to become a little scrambled. Not always, but sometimes. I
generally recheck the creation tool assignments there after editing.
Cheers,
Roy
"Tivadar Szemethy" <tivadar.szemethy@netvisor.hu> wrote in message
news:eglgln$qis$1@utils.eclipse.org...
> Hello,
>
> Maybe this is a FAQ, but I found no answer anywhere else...
>
> I am generating an editor using the dashboard. I want to do a small little
> change (e.g adjust a line decorator) in the gmfgraph model.
>
> In order to propagate this change to the generated editor, is it always
> necessary to re-generate the .gmfmap and .gmfgen, do the label assignment
> and all the chores ?
>
> I found that just editing and saving the .gmfgraph doesn't do the trick,
> and regenerating those files every time I tweak the visual representations
> is somewhat annoying, not mentioning loosing all the changes I made to
> them this far.
>
> TIA,
> tiv
|
|
|
Re: propagating changes into gmfmap and gmfgen [message #62028 is a reply to message #61633] |
Fri, 13 October 2006 06:46  |
Eclipse User |
|
|
|
Originally posted by: 5d5.mail.ru
Tivadar Szemethy wrote:
> I found that just editing and saving the .gmfgraph doesn't do the trick,
> and regenerating those files every time I tweak the visual
> representations is somewhat annoying, not mentioning loosing all the
> changes I made to them this far.
Generally you should not lose changes on gmfgen model and code
regeneration; if this happens please submit requests in bugzilla. When
gmfgen model is regenerated from gmfmap model special reconciler
component works to preserve customizations in gmfgen model and code
merging utility from EMF is used to preserve changes in generated code.
I've also submitted https://bugs.eclipse.org/bugs/show_bug.cgi?id=160840
to cover gmf build automation; please add your comments.
|
|
|
Powered by
FUDForum. Page generated in 0.02904 seconds