INPUT
- The type of input (root of the tree)public abstract class TreeContentProvider<INPUT> extends StructuredContentProvider<INPUT> implements org.eclipse.jface.viewers.ITreeContentProvider
Modifier and Type | Class and Description |
---|---|
static class |
TreeContentProvider.ErrorElement |
static class |
TreeContentProvider.SlowElement |
static class |
TreeContentProvider.SyntheticElement |
Constructor and Description |
---|
TreeContentProvider() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
fillChildren(Object parent,
InternalChildrenList childrenList) |
protected void |
fillChildrenDetectError(Object parent,
InternalChildrenList childrenList) |
Object[] |
getChildren(Object parent) |
protected InternalChildrenList |
getChildrenList(Object parent) |
Object[] |
getElements(Object parent) |
Object |
getParent(Object child) |
org.eclipse.jface.viewers.TreeViewer |
getViewer() |
boolean |
hasChildren(Object parent) |
protected boolean |
isSlow(Object parent) |
static void |
refresh(org.eclipse.jface.viewers.TreeViewer viewer,
Object... objects) |
void |
refreshViewer(boolean isStructuralChange,
Object... objects) |
static void |
update(org.eclipse.jface.viewers.TreeViewer viewer,
Object... objects) |
connectInput, disconnectInput, dispose, getInput, inputChanged, refreshViewer
public org.eclipse.jface.viewers.TreeViewer getViewer()
getViewer
in class StructuredContentProvider<INPUT>
public final Object[] getElements(Object parent)
getElements
in interface org.eclipse.jface.viewers.IStructuredContentProvider
getElements
in interface org.eclipse.jface.viewers.ITreeContentProvider
public final boolean hasChildren(Object parent)
hasChildren
in interface org.eclipse.jface.viewers.ITreeContentProvider
public final Object[] getChildren(Object parent)
getChildren
in interface org.eclipse.jface.viewers.ITreeContentProvider
public final Object getParent(Object child)
getParent
in interface org.eclipse.jface.viewers.ITreeContentProvider
public final void refreshViewer(boolean isStructuralChange, Object... objects)
protected boolean isSlow(Object parent)
protected InternalChildrenList getChildrenList(Object parent)
protected void fillChildrenDetectError(Object parent, InternalChildrenList childrenList)
protected abstract void fillChildren(Object parent, InternalChildrenList childrenList)
public static void refresh(org.eclipse.jface.viewers.TreeViewer viewer, Object... objects)
public static void update(org.eclipse.jface.viewers.TreeViewer viewer, Object... objects)
Copyright © 2016. All rights reserved.