|get element in treeviewer given treeitem [message #1028648]
||Thu, 28 March 2013 14:51
| Mokhtar Abdu
Registered: November 2011
i have a multicolumn tree with a treeviewer. At some point i need to get the model object given a TreeItem. How can I do this? as it is easier with tableviewer using tableviewer.getElementAt(index). I think i have to use treeviewer.getVisibleExpandedElements() but how?
EDIT: and yes i select the leave node which is not retrieved by treeviewer#getVisibleExpandedElements() . I need the model object of the selected leave node
appreciate any help.
[Updated on: Thu, 28 March 2013 15:24]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01644 seconds