kumarSaravanan
asked on
RCP: Tree Viewer- selecting a node and passing the underlying object
I have a Treeviewer with 3 levels of nodes, main,branch,leaf. If I select the leaf, the underlying leaf object should be available to me to pass on to other UI elements.
I tried the listener, addSelectionChangedListene r. The SelectionChangedEvent, brings only the text which is displayed - not the entire object.
Any insight is highly appreciated.
Thanks
I tried the listener, addSelectionChangedListene
Any insight is highly appreciated.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Open in new window
IStructuredSelection allows me to get to the underlying object.
The above code snippet illustrates that.