Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Obtain Selection of a JFace Viewer within a wizard
Obtain Selection of a JFace Viewer within a wizard [message #190582] Mon, 29 January 2007 17:23 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:MANIFEST.MF?
Next Topic:Dynamically setting plugin classpath!
Goto Forum:
  


Current Time: Fri Apr 26 04:01:09 GMT 2024

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

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

Back to the top