Community
Participate
Working Groups
After investigating Bug# 50963, I came across the CheckBoxTreeViewer class. I noticed that when tree items need to be checked, the checking methods in that class create the tree items that have not been created (through an "internalExpand" method), even if their parents have not been expanded yet. It would be more efficient to store their checked state, and check the items as they become visible. I am using M8.
Excuse my spelling!! Here is the title again! Correctly spelled. "[Viewers] CheckBoxTreeViewer class should not create the roots' children that are not visible"
We will investigate in 3.1.
Reopening now that 3.0 has shipped
Seems to me that CheckboxTreeViewer still does not completely support lazy/VIRTUAL.
(In reply to comment #4) > Seems to me that CheckboxTreeViewer still does not completely support > lazy/VIRTUAL. Yes. It could be made to work using ICheckStateProvider (new API in 3.5). See also http://wiki.eclipse.org/Platform_UI/How_to_Contribute
Hitesh is now responsible for watching bugs in the [Viewers] component area.
Just tried this with Eclipse Oxygen 4.7 on 2017-07-06: This problem still exists today. :-( Luckily the solution mentioned in the other bug 340488 report works for me, too. https://bugs.eclipse.org/bugs/show_bug.cgi?id=340488 How is that possible that two bugs with same message remain open for 13 resp. 6 years? No one is responsible for them?
*** Bug 340488 has been marked as a duplicate of this bug. ***
(In reply to Guido Schnepp from comment #7) > > How is that possible that two bugs with same message remain open for 13 > resp. 6 years? No one is responsible for them? If this problem that important for you, please consider to contribute a fix, https://wiki.eclipse.org/Platform_UI/How_to_Contribute
I'm sorry, I was able to commit a javadoc update only. Since its the first time I'm trying to contribute here I hope it makes it thru the chain. While I was able to track down the problem to a recursion in standard implementation of CheckboxTreeViewer.preservingSelection(...) I don't understand the problem in detail actually. Why is this recursion necessary? It's on you, the masters of Eclipse code, now. Many thanks in advance!
To help analyzing this: Just exchange the standard TreeViewer in Snippet047VirtualLazyTreeViewer.java by a CheckboxTreeViewer and you'll be hit by the problem - until you've added your own ICheckStateProvider like mentioned in bug 340488!