|
Re: When delete edge [message #1768983 is a reply to message #1768950] |
Tue, 25 July 2017 12:19 |
|
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
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
|
Re: When delete edge [message #1769272 is a reply to message #1769222] |
Fri, 28 July 2017 13:30 |
|
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
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03359 seconds