Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » duplicate link just it is created(When I create a link between two elements,are created two identical link hand that only one.)
icon4.gif  duplicate link just it is created [message #495778] Fri, 06 November 2009 03:29 Go to next message
marco  is currently offline marco Friend
Messages: 82
Registered: September 2009
Member

hello world

I have the following problem.
in my model I have an abstract class link with three subclasses link:Sabinding,Sachannel and Sarelationship.

when I create a link(for example SAbinding) between two elements it is created correctly.
http://img59.imageshack.us/img59/728/link3d.jpg

When I have an Element that has inside it two elements (for example Element A and Element B), if I create a link between these two elements, the link is duplicated.
http://img413.imageshack.us/img413/272/linkn.jpg

If I create an Element in the editor,the the link copy does not disappears...but only when I create another link (for example to the Element C) the link copy disappears and remains the only real link. Of course, the new link I just created from Element to Element C will be duplicated.
http://img200.imageshack.us/img200/8141/link2r.jpg


SOMEONE CAN TELL ME HOW TO SOLVE THIS PROBLEM?

thank you very much

marco

[Updated on: Sat, 14 November 2009 01:33]

Report message to a moderator

Re: DUPLICATE LINK IS JUST CREATED [message #498203 is a reply to message #495778] Sun, 15 November 2009 20:50 Go to previous message
Alex Shatalin is currently offline Alex ShatalinFriend
Messages: 141
Registered: July 2009
Senior Member
Hello marco,

Second diagram link will be created by automatic update triggered after link
creation inside domain model.
You can debug ???DiagramUpdater class to check why automatic update was called
there and disable it - then you create link from a diagram corresponding
visual model element (diagram link) will be created by specific command executed
after one creating link in a domain model.

-----------------
Alex Shatalin
Previous Topic:ElementTypeRegistry and OSGi
Next Topic:DEFINE TWO DIFFERENT SIZED COMPARTMENT IN THE SAME ELEMENT
Goto Forum:
  


Current Time: Fri Apr 19 22:36:36 GMT 2024

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

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

Back to the top