|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |
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.IStructuredContentProvider |
---|
getElements |
Methods inherited from interface org.eclipse.jface.viewers.IContentProvider |
---|
dispose, inputChanged |
Method Detail |
public 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
public 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 childrenpublic TreePath[] getParents(Object element)
element
- the element
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.