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 17:22 Go to next message
Lidder is currently offline LidderFriend
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 05:36 Go to previous message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
There is a getter method for selection provider in SelectionChangedEvent,which is nothing but the viewer....
Previous Topic:Can't make JFace TreeViewer larger
Next Topic:How to trigger JFace Databinding validation
Goto Forum:

Current Time: Sun Oct 23 14:24:00 GMT 2016

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

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