Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » persisting diagrams and palette
persisting diagrams and palette [message #184881] Wed, 30 April 2008 14:18 Go to next message
paolo russian is currently offline paolo russianFriend
Messages: 81
Registered: July 2009
Member
hi there. I'm doing some tests with the experimental sdk in order to
achieve the visual ID preservation when adding a new widget to the ecore
model and re-generating all the rest of the models. It seems to work as
you do very little changes on gmftool or gmfgraph..
But when you add a new entire EObject to the root of the .ecore, delete
and regenerate the genmodel, add the needed tree structure portion to the
gmftool and gmfgraph... recombine alltogether, delete the .diagram, .edit
etc code folders and regenerate everything... you get a new palette with
the new component ready to work, but you lose the capability to open old
diagrams, those you've made with the previous palette version.
Instead, if I don't delete that much code, and try to modify only the tree
structures of ecore, gmftool gmfmap, gmfgraph "after" the gmfmap point of
the process... Then happens that the new widget does not appear on the
palette, but you can open old diagrams.
How can I achieve both of these features? I mean adding new components to
the palette(and modify their values in the model) without destroying the
visualIDs *and* being able to open old diagram files?
I need this feature because in our production, everytime we modify our
designer (made with gmf of course) to add a new feature all the previous
versions of the output files are no longer compatible, and we have to lose
several hours struggling on manually change the visualIDs.
Thanks in advance
Re: persisting diagrams and palette [message #184892 is a reply to message #184881] Wed, 30 April 2008 14:25 Go to previous messageGo to next message
paolo russian is currently offline paolo russianFriend
Messages: 81
Registered: July 2009
Member
I explain why I cannot simply delete
diagram
edit
editor
test
and regenerate everytime we modify... it's because we have a LOT of
"@generated not" tags in our code, and we can't afford to manually
re-enter it line by line.
Re: persisting diagrams and palette [message #184948 is a reply to message #184881] Wed, 30 April 2008 14:50 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Paolo,

Try using org.eclipse.gmf.bridge.trace plugin.

-----------------
Alex Shatalin
Previous Topic:Re-indexing nodes in a diagram
Next Topic:Contributing to the menu
Goto Forum:
  


Current Time: Thu Mar 28 16:17:19 GMT 2024

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

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

Back to the top