|
|
|
Re: Navigate from Diagram to DSL [message #1729852 is a reply to message #1729781] |
Tue, 19 April 2016 14:04 |
|
Le 19/04/2016 07:08, Rahul Bhogavkar a écrit :
> Yeah, It is specific need but I'm not getting from which point I have to
> start up.
> and If you could help me by sending relevant code for the same then it
> is making sense to me ..
> Thank You.
In your VSM you need to specify a "Double Click Tool" associated to the
mapping of the source element on you Sirius diagram (see the
documentation referenced by Laurent for details). There is no predefined
"open my DSL editor for the element I clicked on" operation defined in
Sirius, so you'll need to create a Java method to do that, and invoke it
from inside the tool's definition (see the documentation for "Java
service" referenced by Laurent).
When your Java method will be invoked by Sirius, it will be passed the
semantic model element you double-clicked on. After that it's up to you
to know how to open your editor, but basically you can use all the
normal Eclipse APIs like IWorkbenchPage.openEditor().
Regards,
Pierre-Charles
--
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03982 seconds