Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » selection of multiple nodes
selection of multiple nodes [message #203393] Mon, 21 November 2005 20:16 Go to next message
Eclipse UserFriend
Originally posted by: hochrainerj.utanet.at

Hi!

I want to select a path (multiple nodes) in my diagram and need afterwads a
list of all selected items. Does GEF provide a special EditPolicy for this
task or are there other techniques?

Regards,

Johannes
Re: selection of multiple nodes [message #203425 is a reply to message #203393] Tue, 22 November 2005 00:48 Go to previous message
Eclipse UserFriend
Originally posted by: bashar.infromatik.uni-bonn.de

If you need selection feedback install an instance of type
"SelectionEditPolicy", see the type hierarchy, choose the one appropriate

there are several ways to retrive the selected editparts -

1. if an action should do something with selected editparts - @see
org.eclipse.gef.SelectionAction. In order to get the selection update from
the editor, the action must be present in the list
GraphicalEditor#getSelectionActions().

2. if an editpart wants to monitor other editparts selection state, may be
GraphicalEditor#getSelectedEditparts() is a way.

3. I think it's also possible to use IWorkbenchPart#getSelectedObjects(), in
this case we need to filter out the editparts from the selections.


"Johannes Hochrainer" <hochrainerj@utanet.at> wrote in message
news:dlt9uq$9sn$1@news.eclipse.org...
> Hi!
>
> I want to select a path (multiple nodes) in my diagram and need afterwads
> a
> list of all selected items. Does GEF provide a special EditPolicy for this
> task or are there other techniques?
>
> Regards,
>
> Johannes
>
>
Previous Topic:Convert accelerator to KeyStroke?
Next Topic:Laying out Help
Goto Forum:
  


Current Time: Fri Apr 26 22:41:53 GMT 2024

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

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

Back to the top