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
* Removes all items from the given control.
 *
 * @param control the control
 */
protected abstract void removeAll(Control control);
/**
 * Removes a listener for expand and collapse events in this viewer.
 * Has no affect if an identical listener is not registered.
 *
 * @param listener a tree viewer listener
 */
public void removeTreeListener(ITreeViewerListener listener) {
	treeListeners.remove(listener);
}
/*
 * Non-Javadoc.
 * Method defined on StructuredViewer.
 */
public void reveal(Object element) {
	Widget w = internalExpand(element, true);
	if (w instanceof Item)
		showItem((Item) w);
}
/**
 * Returns the rightmost visible descendent of the given item.
 * Returns the item itself if it has no children.
 *
 * @param item the item to compute the descendent of
 * @return the rightmost visible descendent or the item iself
 *  if it has no children