Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333862 - [CompositeDiagram] Inconsistency when moving a port from one property to another
Summary: [CompositeDiagram] Inconsistency when moving a port from one property to another
Status: CLOSED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.10.0   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Ansgar Radermacher CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-10 08:10 EST by saadia dhouib CLA
Modified: 2018-12-21 08:07 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description saadia dhouib CLA 2011-01-10 08:10:34 EST
Steps to reproduce:
1. create 3 classes class1, class2, class3
2. drop class1 into a composite diagram
3. create property p1 (resp. p2) of type class2 (resp. class3) inside class1
4. create a port on property p1
5. try to move the port from p1 to p2, you are not allowed to do it
6. Go to the model explorer, go to class2 and move the port of class2 inside class3
7. Drop the port from the model explorer to the diagram (it will appear as a port of property p2)
8. Now we will see that the port is graphically attached to p1 and p2 (inconsistency) !!!
9. Try to hide the port on p1 (it will work, but the hide functionality is not supposed to work on a UML element that does not exist anymore!!).
Comment 1 Jeremie Tatibouet CLA 2017-07-17 12:03:22 EDT
Agreed. This bug is still valid in the context of Papyrus 3.0.

1] It shall be possible to move a port displayed on a port to another part. The impact of this operation is that the port shall now be owned by the type of the target part. If that part has no type then it shall not be allowed to drop the port onto the target part.

2] If the port owner gets changed (e.g., thanks to a drag and drop performed through the model explorer) then any displayed part typed by the Type owning that port shall be updated (i.e., the port representation shall be destroyed).
Comment 2 Eclipse Genie CLA 2017-07-21 03:34:01 EDT
New Gerrit change created: https://git.eclipse.org/r/101699