Skip to main content

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 CollierFriend
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.



[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 GerbigFriend
Messages: 702
Registered: November 2009
Senior Member

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.

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

Current Time: Fri May 25 01:40:01 GMT 2018

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

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

Back to the top