Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Listener on saving papyrus diagrams
Listener on saving papyrus diagrams [message #909655] Fri, 07 September 2012 10:03 Go to next message
Marc Z is currently offline Marc Z
Messages: 19
Registered: July 2012
Junior Member
Hi all,

is it possible to wirtte a listener which is activated, when a papyrus diagram is saved?
Which extention point can be used for such a purpose?

Best regards,

Re: Listener on saving papyrus diagrams [message #917778 is a reply to message #909655] Thu, 20 September 2012 08:29 Go to previous message
Goood Guy is currently offline Goood Guy
Messages: 126
Registered: September 2011
Senior Member
Maybe you could register a resource via the extension point
	</extension> looks like this:

public class MyResource extends AbstractBaseModel implements IModel{

	public void loadModel(IPath fullPathWithoutExtension) {
		// do nothing

	public void createModel(IPath fullPath) {
          //do nothing

	public void saveModel() throws IOException {
           //do your stuff here

Previous Topic:Register for Mailing List
Next Topic:Wrapped rather than Truncated Text for Use Case Names in Use Case Diagrams
Goto Forum:

Current Time: Thu Aug 21 08:22:42 EDT 2014

Powered by FUDForum. Page generated in 0.07765 seconds