public interface ITreePathContentProvider extends IStructuredContentProvider
AbstractTreeViewer
Modifier and Type | Method and Description |
---|---|
Object[] |
getChildren(TreePath parentPath)
Returns the child elements of the last element in the given path.
|
TreePath[] |
getParents(Object element)
Return the possible parent paths for the given element.
|
boolean |
hasChildren(TreePath path)
Returns whether the last element of the given path has children.
|
getElements
dispose, inputChanged
Object[] getChildren(TreePath parentPath)
The provided path is relative to the input. The root elements must
be obtained by calling
IStructuredContentProvider.getElements(Object)
.
parentPath
- the path of the parent elementboolean hasChildren(TreePath path)
Intended as an optimization for when the viewer does not need the actual
children. Clients may be able to implement this more efficiently than
getChildren
.
path
- the pathtrue
if the lat element of the path has children,
and false
if it has no childrenTreePath[] getParents(Object element)
element
- the elementGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.