"element" bug in Reconnect Edge [message #1821295] |
Mon, 10 February 2020 09:26  |
Eclipse User |
|
|
|
Hi,
According to https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html:
>>
source: the semantic element which is pointed before the reconnect.
target: the semantic element which is pointed after the reconnect.
...
element: the semantic element of the current edge.
<<<
When I access the source.name and target.name I get the name of the correct elements. However, when I try to access element.name (an attribute which exists for the element represented by the edge) it appears blank.
Is this a bug or am I doing something wrong?
A bit about the use case: my edge is an element based edge, which points to the source (element.source) and destination (element.dest). I want to allow the user to change the element.source to a new source by using the "reconnect edge" tool - moving the source from source1 to source2 (so that if element.source was "source1" it will become "source2" instead).
I manage to do it successfully, but if I use an "open dialog" and use element.name it returns an empty string as opposed to source.name and target.name.
Thank you,
Avi
[Updated on: Mon, 10 February 2020 09:37] by Moderator
|
|
|
|
|
|
Re: "element" bug in Reconnect Edge [message #1821349 is a reply to message #1821311] |
Tue, 11 February 2020 06:29  |
Eclipse User |
|
|
|
Quote: set the title expression of the "open dialog" operation as "aql:element.name" and the name was properly displayed in the Dialog title area. Where did you placed this expression?
I actually placed it someplace else, but now tried it in the title area (like to suggested), and the title remains blank (unlike when using source.name or target.name). I am using Obeo 11.1.2.
Thanks anyway for attempting to solve this. It is not crucial for me. Since you cannot reproduce it, I will not open a bug.
Regards,
Avi
|
|
|
Powered by
FUDForum. Page generated in 0.05812 seconds