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

Bug 441417

Summary: Move several border nodes at same time can cause problem
Product: [Modeling] Sirius Reporter: Laurent Redor <laurent.redor>
Component: DiagramAssignee: Laurent Redor <laurent.redor>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pierre-charles.david
Version: 0.9Keywords: triaged
Target Milestone: 2.0.0   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=437097
Whiteboard:
Attachments:
Description Flags
Project for steps to reproduce
none
cross.after.delete.design.zip (for regression of comment 4) none

Description Laurent Redor CLA 2014-08-08 07:07:31 EDT
Created attachment 245831 [details]
Project for steps to reproduce

The problem is that these border nodes have the same location in the model (same GMF location) but they are not visually at the same location. So when you move one of this border node, the other border nodes move.

Steps to  reproduce:
1. Open the representation contained in the archived project "MoveSeveralBorderNodes.zip"
2. You can observe the GMF location with the tooltip on "A", "B" or "C".
3. Select the border nodes "A", "B", and "C".
4. Move them to the bottom-right corner of "Container" (as far as possible).There is a first bug, the feedbacks overlap.
5. Launch a manual refresh to refresh the tooltips and observe GMF location in tooltip of "A", "B" or "C", they are all identical: KO
4. Move the border node that is between the 2 others to the top-left corner of "Container", one of the other border nodes, the left one, moves: KO.
Comment 1 Laurent Redor CLA 2014-08-08 08:11:19 EDT
During a move of several border nodes simultaneously, the feedbacks of these nodes are ignored for conflict detection (in DBorderItemLocator). This causes that all border nodes have the same GMF location after the move. This is not acceptable, because this can cause unexpected moves of border node later.
Comment 2 Laurent Redor CLA 2014-08-11 04:35:00 EDT
Corresponding gerrit reviews: 
* https://git.eclipse.org/r/#/c/31369
* https://git.eclipse.org/r/#/c/31262/
Comment 4 Laurent Redor CLA 2014-09-11 09:22:03 EDT
A regression has been detected since this fix.
Steps to reproduce:
* Import the project from cross.after.delete.design.zip
* Create a new representation under root package
* The new representation opens with 2 border node feedbacks at top left corner:KO
Comment 5 Laurent Redor CLA 2014-09-11 09:22:34 EDT
Created attachment 246958 [details]
cross.after.delete.design.zip (for regression of comment 4)
Comment 6 Laurent Redor CLA 2014-09-11 11:26:43 EDT
Fix for regression is available here: https://git.eclipse.org/r/33253
Comment 8 Pierre-Charles David CLA 2014-10-27 06:52:15 EDT
Available in Sirius 2.0.0.