Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Contributing my own "SAVE" Action
Contributing my own "SAVE" Action [message #672203] Fri, 20 May 2011 10:20 Go to next message
Giovanni De Sossi is currently offline Giovanni De SossiFriend
Messages: 161
Registered: October 2009
Location: Rome, Italy
Senior Member

Hi all,

in my GMF Editor I'm able to contribute my own CUT/COPY/PASTE/DELETE Action, contributed by Global Action Handler Providers Extension Point; so in my [XYZ]DiagramGlobalActionHandler the getCommand method gets called every time I press CTRL+X, CTRL+C, CTRL+V and so on. This is not true for SAVE action: if I press CTRL+S my ActionHandler never gets called....someone knows why?

Thanks,

Giovanni
Re: Contributing my own "SAVE" Action [message #672218 is a reply to message #672203] Fri, 20 May 2011 11:11 Go to previous message
Giovanni De Sossi is currently offline Giovanni De SossiFriend
Messages: 161
Registered: October 2009
Location: Rome, Italy
Senior Member

Maybe this is the answer (http://wiki.eclipse.org/FAQ_How_do_I_enable_the_Save_and_Revert_actions%3F):

"Unlike most actions that are defined within an instance of IAction, the editor Save and Save As... actions are built directly into the editor part. These actions are always enabled when the editor is in a dirty state."
Previous Topic:Problem with nodes affixed to an ellipse
Next Topic:refrash underlying diagrammodel
Goto Forum:
  


Current Time: Fri Apr 26 14:07:22 GMT 2024

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

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

Back to the top