Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » CheckboxTreeViewer don't show expand node icon
CheckboxTreeViewer don't show expand node icon [message #1148889] Mon, 21 October 2013 20:23
Phil H is currently offline Phil HFriend
Messages: 267
Registered: November 2012
Senior Member
Hi,

I recently implemented a CheckboxTreeViewer in my own Dialog. This works fine so far except that the tree don't allow me to expand nodes by default. It only works when I check the checkbox, as you can see in the following images:

This is by default. As you can see, it's not pissble to expand the node, though it has childrens:
index.php/fa/16511/0/

After cheking the check box, it works:
index.php/fa/16512/0/

I alrady tried to use setExpandPreCheckFilters , but with no succes:

Composite container = (Composite) super.createDialogArea(parent);
	tv = new CheckboxTreeViewer(container, SWT.MULTI | SWT.H_SCROLL| SWT.V_SCROLL);
	GridData gridData = new GridData(GridData.FILL_BOTH);
	tv.getTree().setLayoutData(gridData);
	tv.setContentProvider(new FeaturePropertyDialogContentProvider());
	tv.setLabelProvider(new FeaturePropertyDialogLabelProvider());
	tv.setAutoExpandLevel(2);
	tv.setExpandPreCheckFilters(true);
........


Any ideas?
Previous Topic:NPE at editor opening from toolbar
Next Topic: How change node background color of a disabled Tree-Viewer.
Goto Forum:
  


Current Time: Thu Sep 26 07:43:57 GMT 2024

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

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

Back to the top