Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Relation Based Edge: find targets by name
Relation Based Edge: find targets by name [message #1723732] Wed, 17 February 2016 12:53
Stefan Tischler is currently offline Stefan TischlerFriend
Messages: 1
Registered: February 2016
Junior Member
Hi everybody!

I am trying to connect 2 nodes (of the same type) by name.
My EObject looks as follows:
Thing : EObject {
  String name;
  String type;
  EList<String> attachment;
  EList<EObject> getAttachmentObjects()
}


attachment is a EList<String> containing the names of other Things.
getAttachmentObjects returns a EList<EObject> of corresponding Things (the targets for the edge).


To visualize it I created a representation with a Node for Thing and a Relation Based Edge with "Source Mapping" and "Target Mapping" = "thingNode".
This works as it should. If i enter a "Target Finder Expression" returning all Things it shows the connections accordingly.

My problem is using the "Target Finder Expression" to call the EOperation getAttachmentObjects of Thing.
It shows up in auto completion when i write the expression like this:
aql:self.getAttachmentObjects()

When debugging it never hits breakpoints in the method though.
If I try the same expression in the Sirius Interpreter it works (I use a Thing as self there). The breakpoints are hit and the output is correct.

So I guess the problem is my understanding of "self" in this context.


I hope someone can point out my mistake Wink

Best Regards
Previous Topic:Referencing Java Extensions defined in other plugins
Next Topic:Custom action on activating/deactivating layers
Goto Forum:
  


Current Time: Tue Jan 26 13:39:27 GMT 2021

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

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

Back to the top