Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Double edges are created
Double edges are created [message #199082] Mon, 28 July 2008 04:07 Go to next message
Lazar Codrut-Lucian is currently offline Lazar Codrut-LucianFriend
Messages: 91
Registered: July 2009
I am creating a diagram based on the UML model.
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?

Lucian Lazar
Re: Double edges are created [message #199137 is a reply to message #199082] Mon, 28 July 2008 10:33 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Lazar Codrut-Lucian,

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
Previous Topic:Open generated XML (from EMF/GMF) again
Next Topic:about getPrimaryDragEditPolicy()
Goto Forum:

Current Time: Thu May 06 13:22:13 GMT 2021

Powered by FUDForum. Page generated in 0.02096 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top