Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Version for GMF Editors
Version for GMF Editors [message #184772] Wed, 30 April 2008 08:45 Go to next message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

Hi,

I'm wondering if it is possible to set versions for graphical editors. My
editor is finished now and will be used. So if in future I have to change
the ecore model for example I need to recognize "old" models, and maybe
provide a way how o migrate from the old verion to the new one.

Is there a feature in GMF that may be used? Or do you have other ideas how
I easily may do this, or more prepare this to be able to upgrade versions
easily in future?

Thank you for your help,
Marsha
Re: Version for GMF Editors [message #185265 is a reply to message #184772] Mon, 05 May 2008 06:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

Hi,

How do you do it for the Ecore Editor? Is the "Migrate to GMF 2.0" the way
how to do it?

If yes can you tell me more about how I have to proceed?

Thanks,
Marsha
Re: Version for GMF Editors [message #185497 is a reply to message #185265] Mon, 05 May 2008 17:55 Go to previous messageGo to next message
Jacques LESCOT is currently offline Jacques LESCOTFriend
Messages: 247
Registered: July 2009
Senior Member
If your metamodel changes, you should probably changes the nsURI
property of your EPackage : this is how it is done in the UML2 project
when the UML metamodel changes. Depending on the changes you made, new
models may be compliant with old one (easier case), in this case your
graphical editor should be just regenerated to handle your changes. In
other cases, where the metamodel have lot of changes and that your old
models won't be compliant with the new metamodeln, you will probably
need to provide a converter (using ATL for example from the M2M project)
and change your graphical editor.

Hope it helps.

Marsha a écrit :
> Hi,
>
> How do you do it for the Ecore Editor? Is the "Migrate to GMF 2.0" the
> way how to do it?
>
> If yes can you tell me more about how I have to proceed?
>
> Thanks,
> Marsha
>
Re: Version for GMF Editors [message #185521 is a reply to message #185497] Tue, 06 May 2008 06:45 Go to previous message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

Hi Jacques,

Thank you for your answer.

Greets
Marsha
Previous Topic:Creating a notation style
Next Topic:Diagram background image
Goto Forum:
  


Current Time: Thu Mar 28 16:59:12 GMT 2024

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

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

Back to the top