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.
|
Object[] |
getElements(Object inputElement)
Returns the elements to display in the viewer
when its input is set to the given element.
|
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.
|
dispose, inputChanged
Object[] getElements(Object inputElement)
NOTE: The returned array must not contain the given
inputElement
, since this leads to recursion issues in
AbstractTreeViewer
(see
bug 9262).
getElements
in interface IStructuredContentProvider
inputElement
- the input elementObject[] 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 element
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.