selection of multiple nodes [message #203393] |
Mon, 21 November 2005 20:16 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03402 seconds