Java org.eclipse.jface.viewers AbstractTreeViewer fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jface.viewers AbstractTreeViewer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jface.viewers AbstractTreeViewer.

The text is from its open source code.

Subclass

org.eclipse.jface.viewers.AbstractTreeViewer has subclasses.
Click this link to see all its subclasses.

Field

intALL_LEVELS
Constant indicating that all levels of the tree should be expanded or collapsed.
intexpandToLevel
The level to which the tree is automatically expanded each time the viewer's input is changed (that is, by setInput).

Method

voidadd(Object parentElementOrTreePath, Object... childElements)
Adds the given child elements to this viewer as children of the given parent element.
voidadd(Object parentElementOrTreePath, Object childElement)
Adds the given child element to this viewer as a child of the given parent element.
voidcollapseAll()
Collapses all nodes of the viewer's tree, starting with the root.
voidcollapseToLevel(Object elementOrTreePath, int level)
Collapses the subtree rooted at the given element or tree path to the given level.
voidexpandAll()
Expands all nodes of the viewer's tree, starting with the root.
Object[]getExpandedElements()
Returns a list of elements corresponding to expanded nodes in this viewer's tree, including currently hidden ones that are marked as expanded but are under a collapsed ancestor.
booleangetExpandedState(Object elementOrTreePath)
Returns whether the node corresponding to the given element or tree path is expanded or collapsed.
ISelectiongetSelection()
The AbstractTreeViewer implementation of this method returns the result as an ITreeSelection.
voidremove(final Object... elementsOrTreePaths)
Removes the given elements from this viewer.
voidremove(Object elementsOrTreePaths)
Removes the given element from the viewer.
voidremove(final Object parent, final Object... elements)
Removes the given elements from this viewer whenever they appear as children of the given parent element.
voidreveal(Object elementOrTreePath)
This implementation of reveal() reveals the given element or tree path.
voidsetContentProvider(IContentProvider provider)
Sets the content provider used by this AbstractTreeViewer.
voidsetExpandedElements(Object... elements)
Sets which nodes are expanded in this viewer's tree.
voidsetExpandedState(Object elementOrTreePath, boolean expanded)
Sets whether the node corresponding to the given element or tree path is expanded or collapsed.
voidsetSelection(List items)
Sets the selection to the given list of items.