public class TreeCompositeContentProvider
extends java.lang.Object
implements org.eclipse.jface.viewers.ILazyTreeContentProvider
Constructor and Description |
---|
TreeCompositeContentProvider(TreeCompositeViewer treeCompositeViewer,
java.util.Map<Component,TreeComposite> parentMap)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
java.lang.Object |
getParent(java.lang.Object element)
This operation returns the parent of a given TreeComposite or a Component
that is a child data node of a TreeComposite.
|
void |
inputChanged(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object oldInput,
java.lang.Object newInput) |
void |
updateChildCount(java.lang.Object element,
int currentChildCount)
Updates the number of children for a particular element in the tree.
|
void |
updateElement(java.lang.Object parent,
int index)
Updates the element at the specified index in the parent element's list
of children.
|
public TreeCompositeContentProvider(TreeCompositeViewer treeCompositeViewer, java.util.Map<Component,TreeComposite> parentMap)
treeCompositeViewer
- The TreeCompositeViewer that contains the TreeViewer managed
by this ILazyTreeContentProvider.parentMap
- A meta data collection mapping all data nodes to their parent
TreeComposites in the TreeViewer.public void inputChanged(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object oldInput, java.lang.Object newInput)
inputChanged
in interface org.eclipse.jface.viewers.IContentProvider
public java.lang.Object getParent(java.lang.Object element)
getParent
in interface org.eclipse.jface.viewers.ILazyTreeContentProvider
public void updateElement(java.lang.Object parent, int index)
Updates the element at the specified index in the parent element's list of children.
A TreeComposite's children are listed and ordered in the TreeViewer like
so:
"ICE Object"
) are not included.
This method needs to call TreeViewer.replace(Object, int, Object)
and TreeViewer.setChildCount(Object, int)
for the child at the
specified index.
updateElement
in interface org.eclipse.jface.viewers.ILazyTreeContentProvider
public void updateChildCount(java.lang.Object element, int currentChildCount)
TreeViewer.setChildCount(Object, int)
if the current child count for the specified element changes.updateChildCount
in interface org.eclipse.jface.viewers.ILazyTreeContentProvider
public void dispose()
dispose
in interface org.eclipse.jface.viewers.IContentProvider