Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311224

Summary: [Viewers] DeferredContentManager cannot handle expansion of tree
Product: [Eclipse Project] Platform Reporter: Tod Creasey <Tod_Creasey>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: bokowski, pwebster
Version: 3.4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
Source code for an example to work around the issue none

Description Tod Creasey CLA 2010-04-30 14:14:45 EDT
Created attachment 166656 [details]
Source code for an example to work around the issue

If I expand a node in a TreeViewer that uses a DeferredContentManager I will end up with nothing happening as the widgets are created after the update. This is particularly a problem when you wish to expand all levels.

I am attaching a plug-in that shows one way to implement expanding all but I had to subclass DeferredTreeContentManager to expand the elements I had been waiting for. 

This isn't great code  so I wouldn't consider it a solution to the problem but it is a place to start looking at it. If I make a more robust example I will include it.
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:06:36 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 2 Eclipse Genie CLA 2021-10-03 19:55:13 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.