Skip to main content


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 15:21
Natasha D'Silva is currently offline Natasha D'SilvaFriend
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 15:21]

Report message to a moderator

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


Current Time: Fri Apr 19 22:49:11 GMT 2024

Powered by FUDForum. Page generated in 0.03262 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top