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

Bug 205122

Summary: [Viewers] The CheckboxTreeViewer.setAllChecked(true) just checks the parent (node) and not the child
Product: [Eclipse Project] Platform Reporter: Inocencio Richiez <irichiez>
Component: UIAssignee: Boris Bokowski <bokowski>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: caniszczyk, remy.suen, Tod_Creasey, tom.schindl
Version: 3.2.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Inocencio Richiez CLA 2007-10-01 16:41:29 EDT
Build ID: Build id: M20070212-1330

Steps To Reproduce:
1.Unless the viewer has been expanded the children do not get checked.
2.
3.


More information:
Initially my tree is collapsed. It shows the parent node as checked. If I expand them, their childs are not checked. If I expand one or many of the parent and leave the tree and come back to it, then those parent AND children are checked. Is there a workaround for gettting this to work?
Right now instead of just making the setAllChecked(true) one call, I' actually iterating through each parent retrieving their children and setting them checked. Very expensive way specially when the tree is large like in my case.
Comment 1 Chris Aniszczyk CLA 2007-10-01 16:50:58 EDT
moving to JFace
Comment 2 Tod Creasey CLA 2007-10-10 10:31:43 EDT
It actually only checks visible items. See Bug 205923

*** This bug has been marked as a duplicate of bug 205923 ***