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
/** 
	 * Constant indicating that all levels of the tree should be expanded or collapsed.
	 *
	 * @see #expandToLevel
	 * @see #collapseToLevel
	 */
	public static final int ALL_LEVELS= -1;
	/**
	 * List of registered tree listeners (element type: <code>TreeListener</code>).
	 */
	private ListenerList treeListeners = new ListenerList(1);
		
	/**
	 * The level to which the tree is automatically expanded each time
	 * the viewer's input is changed (that is, by <code>setInput</code>).
	 * A value of 0 means that auto-expand is off.
	 *
	 * @see #setAutoExpandLevel
	 */
	private int expandToLevel = 0;
	
	/**
	 * The safe runnable used to call the label provider.
	 */
	private	UpdateItemSafeRunnable safeUpdateItem = new UpdateItemSafeRunnable();
	
	class UpdateItemSafeRunnable extends SafeRunnable {