Home » Modeling » GMF (Graphical Modeling Framework) » Select many elements, but only one is "activated"
Select many elements, but only one is "activated" [message #648490] |
Thu, 13 January 2011 08:07 |
|
Hello,
I want to implement a mechanism to allow a graphical group in order to move many elements at the same time without the need to select all of them. I can group several of these elements, and when I select one of them graphically, automatically I want to highlight the other ones, and when I move one of them, the others be moved too, but in the Properties View I only see the attributes of the first selected one.
I think I must to do is to change the PrimaryDragEditPolicy of all affected EditPart, but I can't get it work...
Any suggestions?
Thanks anybody,
Marc
|
|
| |
Re: Select many elements, but only one is "activated" [message #648526 is a reply to message #648525] |
Thu, 13 January 2011 11:58 |
|
Helo Romain,
There's a problem doing it through the GraphicalViewer, setting the selection, due to ALL the elements will be activated. I mean, I want to really select one element, but graphically select all the other grouped elements, for example highlighting them with a border.
Thanks
|
|
| | | | |
Re: Select many elements, but only one is "activated" [message #648706 is a reply to message #648619] |
Fri, 14 January 2011 07:31 |
|
Hi Mariot,
I know about the Group Action in GMF to group several Nodes in the diagram, but at least in Galileo, the version I'm working with, the group behaviour is not well implemented when try to move one Node contained in the group: the location of the destination is not well calculed. Although, when you first select an element contained into a group, the properties that are shown in the Properties View are the ones from the Node, not the ones of the selected Element.
If you're interested, I can attach a capture to show you the behaviour.
Thanks!
Marc
|
|
|
Re: Select many elements, but only one is "activated" [message #648775 is a reply to message #648706] |
Fri, 14 January 2011 13:47 |
Mariot Chauvin Messages: 174 Registered: July 2009 |
Senior Member |
|
|
Le 14/01/2011 08:31, Marc a écrit :
> Hi Mariot,
>
> I know about the Group Action in GMF to group several Nodes in the
> diagram, but at least in Galileo, the version I'm working with, the
> group behaviour is not well implemented when try to move one Node
> contained in the group: the location of the destination is not well
> calculed. Although, when you first select an element contained into a
> group, the properties that are shown in the Properties View are the ones
> from the Node, not the ones of the selected Element.
>
> If you're interested, I can attach a capture to show you the behaviour.
>
> Thanks!
> Marc
Hi Marc,
Please do not hesitate to open a bugzilla issue on this with the capture
to show the behavior you have and describe the one you expect.
I am interested in.
Thanks,
Mariot
--
Mariot Chauvin @ Obeo
http://www.obeo.fr
http://mariot-thoughts.blogspot.com
http://fr.linkedin.com/in/mariotchauvin
|
|
|
Re: Select many elements, but only one is "activated" [message #648780 is a reply to message #648775] |
Fri, 14 January 2011 13:54 |
|
OK Mariot, Monday I'll open a bugzilla and comment it. First I'll try it in Helios if I can... Sincerely, I like what I've implemented more than the group of GMF, although my solution uses an element of my metamodel, I think it's possible to do something similar with the GMF group.
Thanks,
Marc
|
|
| |
Goto Forum:
Current Time: Thu Apr 25 15:46:03 GMT 2024
Powered by FUDForum. Page generated in 0.03211 seconds
|