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

Bug 497398

Summary: Compartment layout problem when addition of semantic elements involved a refresh of a diagram
Product: [Modeling] Sirius Reporter: Laurent Redor <laurent.redor>
Component: CoreAssignee: Laurent Redor <laurent.redor>
Status: CLOSED FIXED QA Contact: Julien Dupont <julien.dupont>
Severity: normal    
Priority: P3 CC: julien.dupont
Version: 3.1.0Keywords: triaged
Target Milestone: 3.1.6   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/76737
https://git.eclipse.org/r/76736
https://git.eclipse.org/r/76738
https://git.eclipse.org/r/76741
https://git.eclipse.org/r/76743
https://git.eclipse.org/r/76742
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=0f47cab1ed5098deb41754d2cd00227995d806c5
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=fa0779ce4069169716ab41e735d986c1171ef8c9
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=322f7e4eaf85638feb8243f13eb71594b805944e
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=3b2488e0431ace464eac0efde9730f887e7b9035
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=d624200ad8b832cb4ddfcc2195e941f3de7e4c7a
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=67a8af4dbbe4217098ce083293b8fe5e0be5e39a
Whiteboard:
Bug Depends on: 495707, 499831    
Bug Blocks: 492607    

Description Laurent Redor CLA 2016-07-06 11:18:36 EDT
+++ This bug was initially created as a clone of Bug #495707 +++

There is a compartment layout problem when addition of semantic elements involved a refresh of a diagram.

Steps to reproduce:
* Import the project CompartimentsLayoutProblem from attached archive file
* Open the diagram "HStackDiag"
* Open the file My.ecore with the "Sample Ecore Model Editor"
* Copy the package "P1" in package "root" and rename it to "P2"
* Save the ecore file
* The diagram "HStackDiag" is refreshed:
** The new package P2 is created: OK
** The existing package P1 is auto-sized: KO. There is also a bug in the size of the container "P1" or its region "Left_class1" (the bug 495046 corresponds to this other problem).

If you do the same with the diagram "HStackDiagPinned" there is no problem. The difference between the 2 diagrams is that the package P1 is pinned in "HStackDiagPinned".
Comment 1 Eclipse Genie CLA 2016-07-06 12:59:48 EDT
New Gerrit change created: https://git.eclipse.org/r/76737
Comment 2 Eclipse Genie CLA 2016-07-06 12:59:50 EDT
New Gerrit change created: https://git.eclipse.org/r/76736
Comment 3 Eclipse Genie CLA 2016-07-06 12:59:51 EDT
New Gerrit change created: https://git.eclipse.org/r/76738
Comment 4 Eclipse Genie CLA 2016-07-06 12:59:52 EDT
New Gerrit change created: https://git.eclipse.org/r/76741
Comment 5 Eclipse Genie CLA 2016-07-06 12:59:56 EDT
New Gerrit change created: https://git.eclipse.org/r/76743
Comment 6 Eclipse Genie CLA 2016-07-06 12:59:57 EDT
New Gerrit change created: https://git.eclipse.org/r/76742
Comment 13 Pierre-Charles David CLA 2016-10-11 04:39:02 EDT
Available in Sirius 3.1.6.