Skip to main content



      Home
Home » Eclipse Projects » Sirius » Passing variables from odesign to Java Service
Passing variables from odesign to Java Service [message #1740203] Wed, 10 August 2016 08:09 Go to next message
Eclipse UserFriend
Hello,

At first I apologize for the new topic, but I have the feeling that I won't get any following answer to this topic: https://www.eclipse.org/forums/index.php/m/1739976/#msg_1739976

So I formulate the question again.

How can I pass the parameters from odesign to my Java Service?

I can access the variables element, elementView and containerView, but I need the variables DDiagram, IGraphicalEditPart and Node.

Or is there any Service or Helper class to get these variables ?

Thanks in advance,

Frank
Re: Passing variables from odesign to Java Service [message #1740212 is a reply to message #1740203] Wed, 10 August 2016 09:46 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Sirius does not provide variable to access to EditPart or GMF nodes. The "view" variables correspond to Sirius metamodel elements and the "element" variable corresponds to an element of your semantic metamodel.

You have some API in org.eclipse.sirius.diagram.ui.business.api.view.SiriusGMFHelper to get the corresponding "GMF element" from a DDiagramElement (Sirius metamodel element).
You can also look at org.eclipse.sirius.diagram.ui.business.internal.dialect.DiagramDialectUIServices.getEditPart(DDiagramElement, EditPartViewer, Session) in which we retrieved an EditPart from the DDiagramElement.

Hope this help,

Laurent
Re: Passing variables from odesign to Java Service [message #1740916 is a reply to message #1740212] Fri, 19 August 2016 13:57 Go to previous message
Eclipse UserFriend
Hello Laurent,

it helped a lot. Thank you very much Smile
Previous Topic:Start from scratch
Next Topic:Empty viewpoint.getOwnedRepresentations() list in e4 application
Goto Forum:
  


Current Time: Wed Mar 26 11:48:25 EDT 2025

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

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

Back to the top