Community
Participate
Working Groups
I'm using a TreeViewer and I've noticed that the expansion state doen't seem to be preserved correctly when model objects are inserted or removed. If I have the following tree, where A,B, and D are expanded. [-] A [-] B [+] C [-] D Then I add an X object into my model before B ... which triggers a viewer.refresh(). Now A, X and C are expanded. [-] A [-] X [+] B [-] C [+] D There appears to be a bug in the AbstractTreeViewer code (likely in the updateChildren() method) such that the item.getData() information is not being respected when attempting to preserve expansion state. The result (as shown above) is that the expansion state is associated with the wrong tree items.
*** Bug 15562 has been marked as a duplicate of this bug. ***
*** Bug 14959 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 3840 ***