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
import org.eclipse.core.runtime.Platform;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.BusyIndicator;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.events.TreeEvent;
import org.eclipse.swt.events.TreeListener;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Item;
import org.eclipse.swt.widgets.Widget;
import org.eclipse.jface.util.Assert;
import org.eclipse.jface.util.ListenerList;
import org.eclipse.jface.util.SafeRunnable;
/**
 * Abstract base implementation for tree-structure-oriented viewers
 * (trees and table trees).
 * <p>
 * Nodes in the tree can be in either an expanded or a collapsed state,
 * depending on whether the children on a node are visible. This class
 * introduces public methods for controlling the expanding and collapsing
 * of nodes.
 * </p>
 * <p>
 * Content providers for abstract tree viewers must implement the <code>ITreeContentProvider</code>
 * interface.
 * </p>
 * 
 * @see TreeViewer
 * @see TableTreeViewer
 */
public abstract class AbstractTreeViewer extends StructuredViewer {