|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITreePathContentProvider
An interface to content providers for tree-structure-oriented viewers that provides content based on the path of elements in the tree viewer.
AbstractTreeViewer
Method Summary | |
---|---|
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. NOTE: The returned array must not contain the given inputElement , since this leads to recursion issues in
AbstractTreeViewer (see
bug 9262). |
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. |
Methods inherited from interface org.eclipse.jface.viewers.IContentProvider |
---|
dispose, inputChanged |
Method Detail |
---|
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 element
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 element
boolean 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 path
true
if the lat element of the path has children,
and false
if it has no childrenTreePath[] getParents(Object element)
element
- the element
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.