Example usage for Java org.eclipse.jface.viewers AbstractTreeViewer fields, constructors, methods, implement or subclass
The text is from its open source code.
int | ALL_LEVELS Constant indicating that all levels of the tree should be expanded or collapsed. |
int | expandToLevel The level to which the tree is automatically expanded each time the viewer's input is changed (that is, by setInput ). |
void | add(Object parentElementOrTreePath, Object... childElements) Adds the given child elements to this viewer as children of the given parent element. |
void | add(Object parentElementOrTreePath, Object childElement) Adds the given child element to this viewer as a child of the given parent element. |
void | collapseAll() Collapses all nodes of the viewer's tree, starting with the root. |
void | collapseToLevel(Object elementOrTreePath, int level) Collapses the subtree rooted at the given element or tree path to the given level. |
void | expandAll() 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. |
boolean | getExpandedState(Object elementOrTreePath) Returns whether the node corresponding to the given element or tree path is expanded or collapsed. |
ISelection | getSelection() The AbstractTreeViewer implementation of this method returns the result as an ITreeSelection . |
void | remove(final Object... elementsOrTreePaths) Removes the given elements from this viewer. |
void | remove(Object elementsOrTreePaths) Removes the given element from the viewer. |
void | remove(final Object parent, final Object... elements) Removes the given elements from this viewer whenever they appear as children of the given parent element. |
void | reveal(Object elementOrTreePath) This implementation of reveal() reveals the given element or tree path. |
void | setContentProvider(IContentProvider provider) Sets the content provider used by this AbstractTreeViewer . |
void | setExpandedElements(Object... elements) Sets which nodes are expanded in this viewer's tree. |
void | setExpandedState(Object elementOrTreePath, boolean expanded) Sets whether the node corresponding to the given element or tree path is expanded or collapsed. |
void | setSelection(List Sets the selection to the given list of items. |