Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMFGEN - can I put a 'generated not' entry?
GMFGEN - can I put a 'generated not' entry? [message #175959] Thu, 06 March 2008 10:53 Go to next message
Marc Mising name is currently offline Marc Mising nameFriend
Messages: 193
Registered: July 2009
Location: Valencia, Spain
Senior Member
Hi! There are many properties in the gmfgen that I would to preserve when
I regenerate the gmfgen from the gmfmap (for example, the Node Visual ID).
Are there any way to do this in the gmfgen file?

Thanks.
Marc.
Re: GMFGEN - can I put a 'generated not' entry? [message #175968 is a reply to message #175959] Thu, 06 March 2008 11:18 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Marc,

Modified .gmfgen property values should be preserved by "reconciler" sybsystem.
Concerning node visual ID property: try using org.eclipse.gmf.bridge.trace
plugin - it was designed to preserve visual id of the corresponding .gmfgen
model elements on next map -> gen transformations.

-----------------
Alex Shatalin
Re: GMFGEN - can I put a 'generated not' entry? [message #176207 is a reply to message #175968] Thu, 06 March 2008 16:07 Go to previous messageGo to next message
Marc Mising name is currently offline Marc Mising nameFriend
Messages: 193
Registered: July 2009
Location: Valencia, Spain
Senior Member
Hi Alex, thanks for your reply.

I have downloaded the 'GMF-sdk-experimental-2.0.2' and add all the plugins
to my eclipse directory. Then, I have regenered the gen, and all the ID's
have incremented 1000 units. For example, a node with an ID 2015, now has
3015.

Is there any documentation about this plugin? Or can I configurate it?

Thanks a lot.
Marc.
Re: GMFGEN - can I put a 'generated not' entry? [message #176275 is a reply to message #176207] Thu, 06 March 2008 16:48 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Marc,

I'm not sure about the documentation.
This plugin will create .trace file opn first execution and then use visual
ID values stored in this file.
So, first time all the visual IDs in your model will be changed, but then
you can manually patch .trace file to return old values back.

-----------------
Alex Shatalin
Re: GMFGEN - can I put a 'generated not' entry? [message #176378 is a reply to message #176275] Fri, 07 March 2008 08:57 Go to previous messageGo to next message
Marc Mising name is currently offline Marc Mising nameFriend
Messages: 193
Registered: July 2009
Location: Valencia, Spain
Senior Member
Hello Alex,

I have generated the gen file, but I realize that the entry 'Gen Diagram'
that represents the canvas element doesn't appears in the .trace file, so
it always changes this Visual ID if I modify it (always changes the value
to 1000).
It's a bug, or it's the expected behavior?

Thanks. Marc.
Re: GMFGEN - can I put a 'generated not' entry? [message #176391 is a reply to message #176378] Fri, 07 March 2008 10:22 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Marc,

Yes, looks like diagram visual ID was not included into the trace.. Can you
as a solution for now try to migrate completely to the new visual IDs?

-----------------
Alex Shatalin
Re: GMFGEN - can I put a 'generated not' entry? [message #176398 is a reply to message #176391] Fri, 07 March 2008 10:46 Go to previous messageGo to next message
Marc Mising name is currently offline Marc Mising nameFriend
Messages: 193
Registered: July 2009
Location: Valencia, Spain
Senior Member
Hello Alex,

I don't really understand your question. I can migrate all the new visual
IDs, and when I regenerate the gen it preserves all the IDs. But the
solution I found to preserve the diagram visual ID is to change it
manually.
Nowadays it's the only one way to preserve this ID, isn't it?

Thanks. Marc.
Re: GMFGEN - can I put a 'generated not' entry? [message #176404 is a reply to message #176398] Fri, 07 March 2008 11:37 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Marc,

> Nowadays it's the only one way to preserve this ID, isn't it?
That's right.

-----------------
Alex Shatalin
Previous Topic:Creating Elliptical Shape
Next Topic:Issue with mindmap in 2.0.1
Goto Forum:
  


Current Time: Fri Apr 26 16:37:44 GMT 2024

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

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

Back to the top