Maintaining a TreeView expansion state after setInput() [message #481348] |
Thu, 20 August 2009 10:57  |
Eclipse User |
|
|
|
Hi,
I have a working TreeViewer. My problem is that whenever I call
setInput() the tree view collapses and I have to re-expand the nodes I'm
interested in.
The new input is different but has the same structure as the old input.
I'd like to maintain or reapply the existing tree expansion after the
new input has been applied.
Any hints as to how you might do this would be very much appreciated.
Thanks, Steve.
|
|
|
|
|
|
Re: Maintaining a TreeView expansion state after setInput() [message #524820 is a reply to message #481818] |
Fri, 02 April 2010 13:55  |
Eclipse User |
|
|
|
I know this is pretty old, but hopefully I get a response without having to repost a similar topic.
I'm running the above situation (more or less), but I have a large number (~2000) paths to expand. This hangs my client for a duration - is there a performance issue I'm not aware of here?
Weirdly, if I use the "Expand all" call, and then save the paths, then restore them, it takes longer to restore than the expand call did... any thoughts here?
-Ritter
|
|
|
Powered by
FUDForum. Page generated in 0.05320 seconds