Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334510 - GMF group doesn't work correctly when move an element
Summary: GMF group doesn't work correctly when move an element
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 07:22 EST by Marc CLA
Modified: 2011-01-17 07:37 EST (History)
1 user (show)

See Also:


Attachments
3 pictures showing the group (9.16 KB, application/x-gzip)
2011-01-17 07:30 EST, Marc CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.