Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to select all node elements on GMF editor without selecting compartments
How to select all node elements on GMF editor without selecting compartments [message #126853] Wed, 16 May 2007 13:05 Go to next message
Eclipse UserFriend
Originally posted by: haisudarshan.gmail.com

Dear GMF Gurus,

Iam a newbie to GMF. I have a requirement wherein I have to select all
the nodes in the editor but should not select the compartment inside them.
Then i have to collapse or expand all the compartments inside the nodes.
The "Select All" action selects nodes, connections and compartments. Is
there a way to select only the nodes in the editor or should i write my
own selection mechanism. If yes, how do i go about ?

Thanks in advance.

Sudarshan.
Re: How to select all node elements on GMF editor without selecting compartments [message #126864 is a reply to message #126853] Wed, 16 May 2007 19:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: khai.n.situvista.com

Which version of GMF are you using?

I'm using 1.0.1 and 'Select All' does not select compartment or
LabelEditPart.

If you have a simple diagram with only one node (xxxEditPart) that has a
name and a SubElementCompartment executing 'Select All' will only select
xxxEditPart.

Isn't this what you want?
Or have I misunderstood your question?


BTW, how are you checking to see what is 'selected'... through code? or
just by looking at the selection in the editor?


-- Khai --



Sudarshan wrote:
> Dear GMF Gurus,
>
> Iam a newbie to GMF. I have a requirement wherein I have to select all
> the nodes in the editor but should not select the compartment inside
> them. Then i have to collapse or expand all the compartments inside the
> nodes. The "Select All" action selects nodes, connections and
> compartments. Is there a way to select only the nodes in the editor or
> should i write my own selection mechanism. If yes, how do i go about ?
>
> Thanks in advance.
>
> Sudarshan.
>
Re: How to select all node elements on GMF editor without selecting compartments [message #127196 is a reply to message #126864] Thu, 17 May 2007 13:27 Go to previous message
Eclipse UserFriend
Originally posted by: haisudarshan.gmail.com

Thank you. I had not set the collapsible option to true in gmfgraph, hence
was not able to select only the outer node in my editor. Now iam able to
solve the problem. Thanks once again !
Previous Topic:How to import a GMF diagram into another one?
Next Topic:Connection Index Number display as prefix on label
Goto Forum:
  


Current Time: Wed Jul 30 13:30:20 EDT 2025

Powered by FUDForum. Page generated in 0.24263 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top