Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Setting the checked nodes in a CheckboxTreeViewer
Setting the checked nodes in a CheckboxTreeViewer [message #116529] Tue, 26 August 2003 05:27
Eclipse UserFriend
Hi,

Can anyone advise me how to set the initial state of a
"CheckboxTreeViewer" (i.e. which nodes should be checked)? There seems to
be no method to do this on the "CheckBoxTreeViewer" itself, so the
approach I have taken is to grab the TreeViewer, and call the
"setCheckedElements" method. In the context of a class that extends
CheckboxTreeViewer, this looks like:

((CheckboxTreeViewer)this.getTreeViewer()).setCheckedElement s(allFilters);

This only seems to work when the "allFilters" references an Object
matching the root node. Could this be a bug?

Thanks.

James
Previous Topic:sharing jars..
Next Topic:PDE build of non-library jar (like the way org.eclipse.pde.build project builds its ant lib)
Goto Forum:
  


Current Time: Wed May 07 15:48:20 EDT 2025

Powered by FUDForum. Page generated in 0.03580 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top