Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 06:21 Go to next message
David Sun is currently offline David SunFriend
Messages: 12
Registered: July 2020
Junior Member
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 06:58 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 544
Registered: July 2009
Senior Member
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.


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: How cant I get DSemanticDiagram object by DNodeSpec object? [message #1830949 is a reply to message #1830943] Fri, 07 August 2020 07:55 Go to previous message
David Sun is currently offline David SunFriend
Messages: 12
Registered: July 2020
Junior Member
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: Thu Oct 22 01:07:32 GMT 2020

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

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

Back to the top