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

Bug 348542

Summary: [All Diagrams] Re-target a comment or constraint link does not remove inconsistent occurrence
Product: [Modeling] Papyrus Reporter: Yann Tanguy <yann.tanguy>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 0.8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Yann Tanguy CLA 2011-06-07 08:07:35 EDT
Such link cannot be created twice, meaning that if the element is already in the feature list (ex: annotated elements) the link cannot be created, but with re-orient it is possible to obtain a situation where several occurrence exists (it should be possible due to multi-diagram anyway).

In such a case, destroy the link, re-orienting, or modifying the related feature in preferences should result in the destruction of all inconsistent links.
Comment 1 Ansgar Radermacher CLA 2013-03-27 11:25:15 EDT
It is still possible to create inconsistencies between graphic and model in current 0.10.X version. Behavior is not specific to SysML and can be produced with a class diagram as well.

Steps to reproduce
- Create a comment and two classes. Add a link from the comment to each class => annotated elements list contains both classes
- Now re-target one of the links to the first class => annotated elements list contains only the first class
- Now undo the re-target the targeting one of the links to the 2nd class again => diagram shows two links, but annotated elements list contains only the 2nd class.