Community
Participate
Working Groups
Build Identifier: 20110301-1815 When an ILazyTreeContentProvider reports an increased number of children from updateChildCount(Object,int) in response to a viewer refresh, the new items sometimes remain uninitialized: - The label provider is not called to retrieve their labels. - If using an OwnerDrawLabelProvider, its paint(..) method is called with element==null - The items are drawn as empty Calling TreeViewer.refresh() a second time seems to solve the problem. Reproducible: Always Steps to Reproduce: 1. Run the attached code 2. Click the button until the problem appears. The problem occurs on most, but not all, click. However it seems to follow a consistent pattern depending on the number of children - in the attached code it occurs consistently on the second click. 3. Uncommenting the second call to refresh() fixes the problem.
Created attachment 206079 [details] Code reproducing the problem.
Created attachment 206080 [details] screenshot
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. If the bug is still relevant, please remove the "stalebug" whiteboard tag.