Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Saving GMF Editor programmatically
Saving GMF Editor programmatically [message #772000] Wed, 28 December 2011 19:06 Go to next message
Snakebyte Missing name is currently offline Snakebyte Missing nameFriend
Messages: 130
Registered: November 2011
Senior Member
Hello,

im using some bidirectional references in my GMF Programm.
This means i want to save my resource when this link is changed.

I think about two ways to save this changes.
One way is to save it directly when the Reference changes. Whats the right way to do this ?

The other idea is to save it when the tab in eclipse is changed.
How can i do this ?

How can i call the eclipse save operation ?
Which method is called when the editor is changed ?


Greetings
Snakebyte

[Updated on: Wed, 28 December 2011 19:13]

Report message to a moderator

Re: Saving GMF Editor programmatically [message #772042 is a reply to message #772000] Wed, 28 December 2011 21:42 Go to previous messageGo to next message
Snakebyte Missing name is currently offline Snakebyte Missing nameFriend
Messages: 130
Registered: November 2011
Senior Member
For now i think the best solution would be when the actual Editor would be saved when the tab is switched.

But i want to get the same save action as when i use the save button from eclipse.
This means the star that shows an unsaved modified tab, should also disappear.

Any suggestions ?
Re: Saving GMF Editor programmatically [message #772403 is a reply to message #772042] Thu, 29 December 2011 17:38 Go to previous messageGo to next message
Snakebyte Missing name is currently offline Snakebyte Missing nameFriend
Messages: 130
Registered: November 2011
Senior Member
is this not a gmf related question?
Or is my question not clear ?

Re: Saving GMF Editor programmatically [message #772623 is a reply to message #772403] Fri, 30 December 2011 08:13 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

calling commands and action of Eclipse is not GMF related. However, this should be helpful: http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html . To get notified if a tab changes you might be able to register a listener in the eclipse workbench. I think this can be better answered in the Eclipse Plug-In development related newsgrpups.

Ralph
Previous Topic:[GMF] Cannot open input element
Next Topic:Restrict referencable objects
Goto Forum:
  


Current Time: Thu Apr 18 00:33:37 GMT 2024

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

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

Back to the top