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

Bug 356927

Summary: [SysML Block Definition Diagram] Association is not updated graphically according to change of end owner
Product: [Modeling] Papyrus Reporter: Alain Le Guennec <alain.leguennec>
Component: CoreAssignee: Yann Tanguy <yann.tanguy>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse-bugzilla, yann.tanguy
Version: 0.8.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Alain Le Guennec CLA 2011-09-07 08:56:42 EDT
Assume you have a composition displayed on a BDD between Block1 and Block2.
Now go to the model explorer, and change the owner of the composite role (part) from Block1 to a third Block3 by D&D.
=> Nothing changes on the BDD, so the association is now graphically inconsistent (it should go out of Block3, not of Block1 anymore).
There two ways to fix this:
-Simply hide the association if one of its ends is moved to a block that is not the type of the other end (taking into account that the end could however be moved from the association itself to the other end's type without affecting the display, just changing whether the end is association-owned or classifier-owned).
-Re-target the association graphically when that happens (this might be more difficult to do automatically, choosing a default layout).
The first solution is good enough IMHO (one can still make the association appear again (with correct source & target) by D&D from the model explorer).
Comment 1 Yann Tanguy CLA 2011-10-07 04:20:39 EDT
Fixed in r5744 (0.8.X) and r5745 (trunk).

Modified association is hidden when becoming graphically inconsistent.