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

Bug 334510

Summary: GMF group doesn't work correctly when move an element
Product: [Modeling] GMF-Runtime Reporter: Marc <mgil>
Component: GeneralAssignee: Project Inbox <gmf-runtime-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: mgil
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
3 pictures showing the group none

Description Marc CLA 2011-01-17 07:22:49 EST
Build Identifier: 20090619-0625

When there are several grouped elements into a GMF group, when you try to move the whole group it works fine, but if you try to move only one element of the group, the behaviour is not correct: the element is not moved correctly.

I have implemented a new behavior that looks nicer and works properly. I have an editor that it's an Sketcher, so the group of elements is very important. We have an element in the metamodel representing a WidgetGroup, that can group several Widgets. When an element of any group is selected, the other elements of the group are highlighted, placing every Widget into a blue colored rectangle. When you move this element, all the elements of the group are moved too; if you move this element pressing SHIFT key, only this selected element is moved.

I attach you a picture showing results of this Group, I think a similar implementation for the GMF group should be a great idea.

Reproducible: Always

Steps to Reproduce:
1. Group several Nodes.
2. Try to move one grouped Node
Comment 1 Marc CLA 2011-01-17 07:30:21 EST
Created attachment 186901 [details]
3 pictures showing the group

There are 3 pictures:
- One without selecting any Widget.
- One selecting the 'Code' Label, that automatically highlight the 2 TextBoxes grouped with this label.
- One selecting the 'Name' Label, that automatically highlight the TextBox grouped with this label.