Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to Save and Reset the Model
How to Save and Reset the Model [message #721353] Thu, 01 September 2011 14:38 Go to next message
vincent988923 is currently offline vincent988923Friend
Messages: 29
Registered: June 2011
Junior Member
Hi everyone,

I want to know how to save the whole diagram and model of GMF in order to RESET my model when necessary.

Do you have any ideas

Thanks!

Vincent
Re: How to Save and Reset the Model [message #721625 is a reply to message #721353] Fri, 02 September 2011 10:52 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi Vincent,

what exacrly do you mean by reset and save the whole diagram? Do you want to have diagram versioning? Then you could use SVN, CVS or GIT.

Ralph
Re: How to Save and Reset the Model [message #721733 is a reply to message #721625] Fri, 02 September 2011 17:22 Go to previous messageGo to next message
vincent988923 is currently offline vincent988923Friend
Messages: 29
Registered: June 2011
Junior Member
Hi,Ralph

Actually, My model will be changed in run time (the color of node, the value of attribute, etc). In case that uses want to come back to the beginning, I'd like to save the original diagram and model, and when users touch "Reset", all the diagram and model will go back.
Re: How to Save and Reset the Model [message #722295 is a reply to message #721733] Mon, 05 September 2011 09:23 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

maybe you should really try to version it with svn in the background. You could create a local repository somewhere in the workspace meta data. on each save you commit to this repository. When the user hits the reset button, you list all revisions and the user can choose which one to take or you go to the oldest revision.

Ralph
Previous Topic:Link mapping problem : Type based link between two nodes
Next Topic:Synchronized Diagram doesnt sync after restart
Goto Forum:
  


Current Time: Fri Apr 19 11:10:45 GMT 2024

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

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

Back to the top