Obtain Selection of a JFace Viewer within a wizard [message #190582] |
Mon, 29 January 2007 17:23 |
Eclipse User |
|
|
|
Originally posted by: newsgroup.weyands.net
Hello Newsgroup,
i'm working on a little Plugin. The Data is presented with a TreeViewer.
To add new Objects to my tree im working on a wizard right now, but
could not figure out how i can get the item that's selected when i fire
my action (item -> contextMenu -> wizardaction).
The ISelectionListener seems to be for View-View interaction only - any
hint on how i can obtain the selectedObject in my wizard?
Any Help is appreciated!
-Chris
|
|
|
Re: Obtain Selection of a JFace Viewer within a wizard [message #190598 is a reply to message #190582] |
Mon, 29 January 2007 18:34 |
Eclipse User |
|
|
|
Originally posted by: wayne.beaton._NOSPAM_eclipse.org
Christian Weyand wrote:
> Hello Newsgroup,
>
> i'm working on a little Plugin. The Data is presented with a TreeViewer.
> To add new Objects to my tree im working on a wizard right now, but
> could not figure out how i can get the item that's selected when i fire
> my action (item -> contextMenu -> wizardaction).
>
> The ISelectionListener seems to be for View-View interaction only - any
> hint on how i can obtain the selectedObject in my wizard?
>
> Any Help is appreciated!
>
> -Chris
Ask the selection service for the current selection.
http://www.eclipse.org/articles/Article-WorkbenchSelections/ article.html
HTH,
Wayne
|
|
|
Powered by
FUDForum. Page generated in 0.08996 seconds