Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356927 - [SysML Block Definition Diagram] Association is not updated graphically according to change of end owner
Summary: [SysML Block Definition Diagram] Association is not updated graphically accor...
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.8.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Yann Tanguy CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 08:56 EDT by Alain Le Guennec CLA
Modified: 2011-10-07 04:20 EDT (History)
2 users (show)

See Also:


Attachments

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