|JFace tree - saving tree state while refreshing [message #323186]
||Thu, 13 December 2007 10:26
Originally posted by: dudu.amar.intel.com|
I have a JFace TreeViewer. When I need to refresh the tree, I'm using the setInput method to set a new input (because i don't know how to determine if the input indeed changed), so the object are always different after refreshing, but their content is the same (and I've overrided the 'equals' method to reflect that).
My problem is I can't figure out how to save the tree state (which nodes are expanded and which node is selected). I tried to call getExpanded and getSelection before the setInput, and after it to call setExpanded and setSelection, but it won't works.
Many thanks to the helpers :)
Powered by FUDForum
. Page generated in 0.02680 seconds