Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » get treeviewer from item
get treeviewer from item [message #539433] Thu, 10 June 2010 13:22 Go to next message
Lidder is currently offline Lidder
Messages: 46
Registered: July 2009

Is it possible to get a treeviewer given one of it's children? I have attached a selectionChanged listener to a jface treeViewer. When the user selects an item in the tree, I can get the actual element selection from the SelectionChangedEvent. How do I get the treeViewer from this selection?

Re: get treeviewer from item [message #539503 is a reply to message #539433] Fri, 11 June 2010 01:36 Go to previous message
Vijay Raj
Messages: 608
Registered: July 2009
Senior Member
There is a getter method for selection provider in SelectionChangedEvent,which is nothing but the viewer....

why, mr. Anderson, why, why do you persist?
Because I Choose To.
Previous Topic:Can't make JFace TreeViewer larger
Next Topic:How to trigger JFace Databinding validation
Goto Forum:

Current Time: Wed Aug 20 14:48:43 EDT 2014

Powered by FUDForum. Page generated in 0.03014 seconds