Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320997

Summary: [All Diagrams][All links] Diagram becomes inconsistent when we retarget a link which is many times on the diagram
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: papyrus-bugs
Version: 0.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Vincent Lorenzo CLA 2010-07-27 07:45:12 EDT
If a link is represented many times on a diagram, when we retarget one of its representation, we retarget the semantic element, 
but the other representations are not retargeted (or deleted).

Step to reproduce : 
In ClassDiagram for example : 
 - Create 3 classes : Class0, Class1 and Class2
 - Create a Generalization between Class0 (source) and Class1(target)
 - Drop the Generalization from the Model Explorer to the Diagram in order to have 2 representations of the same Generalization
 - Retarget one of the link, replace the source(Class0), by Class2
 
 Now in the semantic Element for Generalization, you have Class2 for the source and Class1 for the target (it's correct), 
 but your diagram is inconsistent, because 2 incompatible representations are drawn on the diagram.
Comment 1 Vincent Lorenzo CLA 2013-03-13 09:39:29 EDT
I confirm this bug on Papyrus 0.10.
Comment 2 Toni Siljamäki CLA 2013-10-09 10:18:19 EDT
In line with Bug 316278, it should not! be possible to represent the
same thing twice in a diagram. Instead, when drag-and-dropping an
already existing link/association/whatever into a diagram,
nothing should happen.

Also see Bug 409484 and the mess you get when
drag-and-dropping an Activity Diagram.