Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » I'm looking for a method to select the children of a selected editPart programmatically
I'm looking for a method to select the children of a selected editPart programmatically [message #238559] Thu, 20 September 2007 04:59 Go to next message
Alexander Haag is currently offline Alexander Haag
Messages: 114
Registered: July 2009
Senior Member
Hi folks,

I've got a graphical editor using gef (ScrollingGraphicalViewer) with
emf-model.

As for user-convenience I want to have something like recursive
selection of child-elements when a user selects a figure in the canvas.

for example the user selects a switch-figure, I want to select all
corresponding case-figures including the figures in the cases.

Is there a way to achieve this?
If so, where would be the best place to do this?, the
selectionChanged-Method in the editor maybe?


FYI I need to have this because I want to show the user what is going to
be cut/copied/pasted/moved if he decides to invoke the action on the
selection he made.

Thanks for any help, hints

Greets Alex
Re: I'm looking for a method to select the children of a selected editPart programmatically [message #238736 is a reply to message #238559] Thu, 27 September 2007 17:53 Go to previous message
Eclipse User
Originally posted by: aczerwonka.3esi.com

loop through and set their selection

"Alex Haag" <Alexander.haag@esg.de> wrote in message
news:fctcps$ttu$1@build.eclipse.org...
> Hi folks,
>
> I've got a graphical editor using gef (ScrollingGraphicalViewer) with
> emf-model.
>
> As for user-convenience I want to have something like recursive selection
> of child-elements when a user selects a figure in the canvas.
>
> for example the user selects a switch-figure, I want to select all
> corresponding case-figures including the figures in the cases.
>
> Is there a way to achieve this?
> If so, where would be the best place to do this?, the
> selectionChanged-Method in the editor maybe?
>
>
> FYI I need to have this because I want to show the user what is going to
> be cut/copied/pasted/moved if he decides to invoke the action on the
> selection he made.
>
> Thanks for any help, hints
>
> Greets Alex
Previous Topic:numeric characters in Arabic os
Next Topic:zoom in/out with mouse drag on GraphicalViewer
Goto Forum:
  


Current Time: Sat Aug 30 02:26:16 EDT 2014

Powered by FUDForum. Page generated in 0.03162 seconds