Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Hook to run arbitrary code on diagram load
Hook to run arbitrary code on diagram load [message #1696998] Sat, 30 May 2015 15:56 Go to next message
Jim S. is currently offline Jim S.Friend
Messages: 17
Registered: October 2014
Junior Member
Hi,

I need to run some Java code when my diagram is being opened, becasue I need to register an EPackage so that Acceleo can find it.
Is there an extension point in Sirius that allows this or some other means that allows this?

Best regards, Jim
Re: Hook to run arbitrary code on diagram load [message #1697068 is a reply to message #1696998] Mon, 01 June 2015 10:54 Go to previous message
Bailey Trenton is currently offline Bailey TrentonFriend
Messages: 31
Registered: May 2015
Member
Jim,
I had to do something similar and I was able to do it with a SessionManagerListener.
There is an extension point to register one (org.eclipse.sirius.sessionManagerListener).

This worked for me but I was creating the session and diagram programmatically so if you are doing it differently it may not be the best fit for you.

Bailey
Previous Topic:Limit the number of nodes in container
Next Topic:a node label cannot be saved when using Node Creation from a Palette.
Goto Forum:
  


Current Time: Mon Jan 25 01:38:54 GMT 2021

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

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

Back to the top