Bug 24024 [Viewers] Error in Javadoc for AbstractTreeViewer::setAutoExpandLevel()
from Javadoc for AbstractTreeViewer::setAutoExpandLevel() : * Sets the auto-expand level. * The value 0 means that the root's children are not visible; * 1 means that the root is expanded so that its children are visible, * but the root's grandchildren are not; and so on. That's off by one. 0 means auto-expand is off. 1 means that roots are not expanded. 2 means that children of the roots are expanded, but not grandchildren; etc. * The value <code>EXPAND_ALL</code> means that all subtrees should be * expanded. The constant should read ALL_LEVELS Note that some other expansion-methods need these comment updates too.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
}
/**
 * Expands all nodes of the viewer's tree, starting with the root.
 * This method is equivalent to <code>expandToLevel(ALL_LEVELS)</code>.
 */
public void expandAll() {
	expandToLevel(ALL_LEVELS);
}
/**
 * Expands the root of the viewer's tree to the given level.
 *
 * @param level non-negative level, or <code>ALL_LEVELS</code> to expand
 *  all levels of the tree
 */
public void expandToLevel(int level) {
	expandToLevel(getRoot(), level);
}
/**
 * Expands all ancestors of the given element so that the given element
 * becomes visible in this viewer's tree control, and then expands the
 * subtree rooted at the given element to the given level.
 *
 * @param element the element
 * @param level non-negative level, or <code>ALL_LEVELS</code> to expand
 *  all levels of the tree
 */
public void expandToLevel(Object element, int level) {
	Widget w = internalExpand(element, true);
	if (w != null)
		internalExpandToLevel(w, level);