Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDouble edges are created
https://www.eclipse.org/forums/index.php/mv/msg/63145/199082/#msg_199082
I try to create a Usage link between a Class and an Interface, but the
editor will create two edges. After switching from the editor (reloading
Eclipse, for instance), the extra link is removed and the editor marks
the diagram that it should be saved.
The link is stored in the same attribute as other TopNodes in the container.
If I create an InterfaceRealization link (stored in the source element,
not in the container), it works well.
Has anybody run into this problem?
Thanks,
Lucian Lazar]]>Lazar Codrut-Lucian2008-07-28T04:07:49-00:00Re: Double edges are created
https://www.eclipse.org/forums/index.php/mv/msg/63145/199137/#msg_199137
Currently all the links are created in GMF in two steps: 1. Create domain
link representation in a domain model. 2. Create notation element for this
link (actually visible on diagram).
It looks like additional link will be created by intermediate update executed
after step 1. and before step 2. In normal situation this update should be
executed only at the end of link creation (after step 2.) and will not create
extra link on a diagram. You can try to debug this situation to see why corresponding
update is executed in the inproper place. You can start debugging by placing
breakpoint into ???CanonicalEditPolicy.refreshSemantic() method.
-----------------
Alex Shatalin]]>Alexander Shatalin2008-07-28T10:33:57-00:00