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
Member
Hello,

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?

Thanks,
Upkar.
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....

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


Current Time: Sat Dec 20 05:17:27 GMT 2014

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

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