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

Bug 317997

Summary: [ClassDiagram] Package management ? Move ? Containment display not correct when moving a package outside an other package
Product: [Modeling] Papyrus Reporter: alanusse Mising name <agnes.lanusse>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Screen Views - Moving a Package outside an other Package none

Description alanusse Mising name CLA 2010-06-25 10:35:08 EDT
nconsistency between model and diagram when moving a Package outside its container.  Normally we expect to obtain two separate packages in the diagram.
Actually, a containment relation is displayed which is not what we want and is inconsistant with outline.
If we try to Undo operation an error occurs. 

Reproducible: Always

Steps to Reproduce:
In a ClassDiagram
1.Create two packages Package0, and Package1 within Package0.
2.Move Package1 outside Package0.
3.Try to move back Package0 outside of Package1.

Result : 
In 2. We should get two separate Packages, which is the case in the outline, but in the diagram we get a containment relation which has a different semantic.
Moreover, if we try to undo the operation we get an error.
Comment 1 alanusse Mising name CLA 2010-06-25 10:38:53 EDT
Created attachment 172761 [details]
Screen Views - Moving a Package outside an other Package
Comment 2 Yann Tanguy CLA 2010-06-25 11:03:56 EDT
Several bug are open related to the ContainmentLink behavior -> see Bug318000

*** This bug has been marked as a duplicate of bug 318000 ***