Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » automatic diagram migration
automatic diagram migration [message #172681] Fri, 15 February 2008 17:41 Go to next message
Eclipse UserFriend
Originally posted by: jacob.barde.swri.org

The application I am building has some very possible long-term use, and
one of the things I have already come across, particularly in this early
development phase, are significant semantic model changes. I don't
foresee this changing much even after a production release.

I keep my semantic model URIs 'versioned' in the following fashion.
http://www.foo.com/ns/20070701/foo
http://www.foo.com/ns/20080201/foo
So when there's a significant change to the model, I update the URI.

I essentially want to do an automatic "Migration" (like some of the gmf
files had a popup menu entry to 'Migrate to GMV v2.0') when opening
older files in the editor.

So if I were to create a mechanism for changing a diagram that uses the
20070701 foo model into a diagram using the 20080201 foo model, whether
by xslt, or Resource, where would be the best place to put this logic?

Ideally, before the opening editor goes and complains with the error
dialog, I'd like to give the opportunity to the user on whether to
update the diagram, and then proceed from there.

Regards,

Jay
Re: automatic diagram migration [message #172814 is a reply to message #172681] Mon, 18 February 2008 15:53 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Jacob,

I think you can place corresponding code into doSetInput() method of your
diagram editor.

-----------------
Alex Shatalin
Previous Topic:Double clicking on a compartment doesn't work
Next Topic:Reading from the memory
Goto Forum:
  


Current Time: Wed Sep 25 00:36:52 GMT 2024

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

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

Back to the top