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 16:23
Phil H is currently offline Phil H
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:JFace Treviewer: How to handle a "Post"-Collapse/-Expand in TreeViewer
Next Topic:Export TableViewer data to a file
Goto Forum:
  


Current Time: Wed Jul 30 09:24:31 EDT 2014

Powered by FUDForum. Page generated in 0.02867 seconds