Skip to main content



      Home
Home » Eclipse Projects » Sirius » How cant I get DSemanticDiagram object by DNodeSpec object?
How cant I get DSemanticDiagram object by DNodeSpec object? [message #1830941] Fri, 07 August 2020 02:21 Go to next message
Eclipse UserFriend
I wan to get x and y of DSemanticDiagram object in representations.aird.
I can get DNodeSpec objects .
How cant I get DSemanticDiagram object by DNodeSpec object?
Re: How cant I get DSemanticDiagram object by DNodeSpec object? [message #1830943 is a reply to message #1830941] Fri, 07 August 2020 02:58 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

You can use:

new org.eclipse.sirius.business.api.query.DRepresentationElementQuery(myDNodeSpec).getParentRepresentation()
.

and then cast the result (if non-null) into a DSemanticDiagram.
Re: How cant I get DSemanticDiagram object by DNodeSpec object? [message #1830949 is a reply to message #1830943] Fri, 07 August 2020 03:55 Go to previous message
Eclipse UserFriend
It worked!
Thank you!
Previous Topic:Ho can I get x and y in layoutConstraint in representations.aird from a session?
Next Topic:Using a single representation file for multiple diagrams representation
Goto Forum:
  


Current Time: Sun Jun 15 17:30:26 EDT 2025

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

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

Back to the top