Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » preserving expansion in DeferredTreeContentManager(is this possible?)
preserving expansion in DeferredTreeContentManager [message #556503] Wed, 01 September 2010 11:21
Natasha D'Silva is currently offline Natasha D'Silva
Messages: 25
Registered: July 2009
Junior Member
I have tried to do this by creating my own subclass of the DeferredTreeContentManager, and after the children are added to the tree, I try to restore expansion, but I can only get one level deep - the problem is that I can only get expansion to one level deep when I use TreeViewer#setExpandedState.
If I have a tree path of depth 4 and I want to expand to the 3rd element, only the root of the tree is expanded because the retrieval of the other children is not immediate and on a job - the attempt to preserve expansion shows only the placeholder element as a child and cannot expand further.
Is there a reliable way to do preserve expansion state when using deferred content provider?

[Updated on: Wed, 01 September 2010 11:21]

Report message to a moderator

Previous Topic:Resource refresh listener?
Next Topic:Delete Action
Goto Forum:
  


Current Time: Fri Aug 29 22:28:33 EDT 2014

Powered by FUDForum. Page generated in 0.01526 seconds