Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Get eobject from link
Get eobject from link [message #1796356] Thu, 11 October 2018 14:25 Go to next message
David CHARLET is currently offline David CHARLETFriend
Messages: 12
Registered: January 2018
Junior Member

I created an element based edge. I want to change his color if some conditions are met.

So I created a Conditionnal Style however when I use '' view.sourceNode" and "view.targetNode" I can't figure out a way to get an EObject.

I need to get the eobject the nodes are pointing to in order to check his attribute in my condition

Does any one have a clue ?
Re: Get eobject from link [message #1796413 is a reply to message #1796356] Fri, 12 October 2018 14:05 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 500
Registered: July 2009
Location: Nantes, France
Senior Member
Hi David,

In an AQL expression, view.sourceNode and view.TargetNode will be the source diagram element and the target diagram element of your current edge.
They are elements of the internal Sirius model. They are also instance of DSemanticDecorator and have a reference "target" which is the link to the semantic model.

Semantic element of the edge:

Semantic element of the source:

Semantic element of the target:


Maxime Porhel - Obeo

Need training or professional services for Sirius?

[Updated on: Fri, 12 October 2018 15:02]

Report message to a moderator

Previous Topic:Table Navigation
Next Topic:Sirius at EclipseCon EU 2018
Goto Forum:

Current Time: Sun Jan 17 20:18:43 GMT 2021

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

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

Back to the top