|
Re: When delete edge [message #1768983 is a reply to message #1768950] |
Tue, 25 July 2017 08:19   |
Eclipse User |
|
|
|
Hello,
If I understood correctly the confusion here is between org.eclipse.sirius.viewpoint.DSemanticDecorator.getTarget() and org.eclipse.sirius.diagram.DEdge.getTargetNode().
- DSemanticDecorator.getTarget() represents the reference between a graphical element (DNode, DNodeContainer, DEdge) and a semantic element.
- DEdge.getTargetNode() represents the reference between an edge and the target Node.
However, in your case using DEdge.getTargetNode() would work only if your diagram is unsynchronized. What your delete tool should unset, is not the graphical element, but the semantic element. Therefore, you should not use the elementView, but the element variable and then unset the reference you are looking for (targetBusinessConcept?).
Regards,
Steve
|
|
|
|
|
|
Re: When delete edge [message #1769272 is a reply to message #1769222] |
Fri, 28 July 2017 09:30  |
Eclipse User |
|
|
|
It does not work because the element variable is a semantic element, not a DEdge. Furthermore, what you want to unset is in the semantic model, not the DEdge.targetNode reference. If you do unset the targetNode reference but not the reference in the semantic model, the refresh will recreate the reference in the graphical model (synchronization).
Regards,
Steve
|
|
|
Powered by
FUDForum. Page generated in 0.04657 seconds