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
}
/**
 * Fires a tree collapsed event.
 * Only listeners registered at the time this method is called are notified.
 *
 * @param event the tree expansion event
 *
 * @see ITreeViewerListener#treeCollapsed
 */
protected void fireTreeCollapsed(final TreeExpansionEvent event) {
	Object[] listeners = treeListeners.getListeners();
	for (int i = 0; i < listeners.length; ++i) {
		final ITreeViewerListener l = (ITreeViewerListener)listeners[i];
		Platform.run(new SafeRunnable() {
			public void run() {
				l.treeCollapsed(event);
			}
			public void handleException(Throwable e) {
				super.handleException(e);
				
				
				removeTreeListener(l);
			}
		});	
	}
}
/**
 * Fires a tree expanded event.
 * Only listeners registered at the time this method is called are notified.
 *