"element" bug in Reconnect Edge [message #1821295] |
Mon, 10 February 2020 14:26 |
Avi Shaked Messages: 131 Registered: October 2019 |
Senior Member |
|
|
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 14:37] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02996 seconds