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
protected abstract int getItemCount(Item item);
/**
 * Returns the child items of the given SWT item.
 *
 * @param item the item
 * @return the child items
 */
protected abstract Item[] getItems(Item item);
/**
 * Returns the item after the given item in the tree, or
 * <code>null</code> if there is no next item.
 *
 * @param item the item
 * @param includeChildren <code>true</code> if the children are 
 *  considered in determining which item is next, and <code>false</code>
 *  if subtrees are ignored
 * @return the next item, or <code>null</code> if none
 */
protected Item getNextItem(Item item, boolean includeChildren) {
	if (item == null) {
		return null;
	}
	if (includeChildren && getExpanded(item)) {
		Item[] children = getItems(item);
		if (children != null && children.length > 0) {
			return children[0];
		}
	}