I'm looking for a method to select the children of a selected editPart programmatically [message #238559] |
Thu, 20 September 2007 04:59  |
Eclipse User |
|
|
|
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  |
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
|
|
|
Powered by
FUDForum. Page generated in 0.24433 seconds