Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320997 - [All Diagrams][All links] Diagram becomes inconsistent when we retarget a link which is many times on the diagram
Summary: [All Diagrams][All links] Diagram becomes inconsistent when we retarget a lin...
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-27 07:45 EDT by Vincent Lorenzo CLA
Modified: 2017-09-08 09:45 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.