Bug 21357 [Viewers] TreeViewer(Composite parent,int style) javadoc error
The javadoc explains what style-bits are set, but it's obviously a copy'n'paste error: Creates a tree viewer on a newly-created tree control under the given parent. The tree control is created using the given SWT style bits. The viewer has no input, no content provider, a default label provider, no sorter, and no filters. The tree control has the MULTI, H_SCROLL, V_SCROLL and BORDER style bits set.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java
this(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
}
/**
 * Creates a tree viewer on a newly-created tree control under the given parent.
 * The tree control is created using the given SWT style bits.
 * The viewer has no input, no content provider, a default label provider, 
 * no sorter, and no filters.
 * The tree control has the MULTI, H_SCROLL, V_SCROLL and BORDER style bits set.
 *
 * @param parent the parent control
 * @param style the SWT style bits
 */
public TreeViewer(Composite parent, int style) {
	this(new Tree(parent, style));
}
/**
 * Creates a tree viewer on the given tree control.
 * The viewer has no input, no content provider, a default label provider, 
 * no sorter, and no filters.
 *
 * @param tree the tree control
 */
public TreeViewer(Tree tree) {
	super();
	this.tree = tree;
	hookControl(tree);
}
/* (non-Javadoc)
 * Method declared in AbstractTreeViewer.
 */