Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » On Save Action
On Save Action [message #987761] Tue, 27 November 2012 23:11 Go to next message
Nick Collier is currently offline Nick Collier
Messages: 20
Registered: July 2009
Junior Member
I'm generating code from my diagram and I'd like to run the generation workflow whenever the diagram is saved. What's the appropriate way to do this? I assume I should add some code to whatever runs the save but I'm not sure where this is, or even if that's the appropriate way.

thanks,

Nick

[Updated on: Tue, 27 November 2012 23:11]

Report message to a moderator

Re: On Save Action [message #987799 is a reply to message #987761] Wed, 28 November 2012 08:46 Go to previous message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

in you xxxDiagramEditor you can override doSave(IProgressMonitor progressMonitor) this will do the jog. If you generation takes a lot of resources you could do it when Eclipse does an automatic build.

Ralph
Previous Topic:Canvas and Top node customization
Next Topic:Custom ModelAssistant Popup Names and Icons
Goto Forum:
  


Current Time: Sun Oct 26 08:50:37 GMT 2014

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

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