Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Double edges are created
Double edges are created [message #199082] Mon, 28 July 2008 00:07 Go to next message
Eclipse UserFriend
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?

Thanks,
Lucian Lazar
Re: Double edges are created [message #199137 is a reply to message #199082] Mon, 28 July 2008 06:33 Go to previous message
Eclipse UserFriend
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: Sat Jun 07 10:20:36 EDT 2025

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

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

Back to the top