Package org.eclipse.net4j.util.ui.views
Class ContainerItemProvider<CONTAINER extends IContainer<Object>>
java.lang.Object
org.eclipse.jface.viewers.ViewerComparator
org.eclipse.jface.viewers.ViewerSorter
org.eclipse.net4j.util.ui.StructuredContentProvider<INPUT>
org.eclipse.net4j.util.ui.views.ItemProvider<CONTAINER>
org.eclipse.net4j.util.ui.views.ContainerItemProvider<CONTAINER>
- All Implemented Interfaces:
EventListener
,DelegatingStyledCellLabelProvider.IStyledLabelProvider
,IBaseLabelProvider
,IColorProvider
,IContentProvider
,IFontProvider
,ILabelProvider
,IStructuredContentProvider
,ITreeContentProvider
,IListener
- Direct Known Subclasses:
ContainerPathItemProvider
,ContainerView.ContainerViewItemProvider
,ManagedContainerItemProvider
public class ContainerItemProvider<CONTAINER extends IContainer<Object>>
extends ItemProvider<CONTAINER>
- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
class
class
class
class
class
Deprecated.class
static interface
static class
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.IListener
IListener.NotifierAware
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Image
Deprecated.As of 3.12 useUIUtil.errorImage()
.static final Color
Deprecated.As of 3.12 usependingColor()
.static final Image
Deprecated.As of 3.12 usependingImage()
.Fields inherited from class org.eclipse.net4j.util.ui.views.ItemProvider
NO_ELEMENTS
Fields inherited from class org.eclipse.jface.viewers.ViewerSorter
collator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addNode
(Object element, ContainerItemProvider.Node node) void
protected void
connectInput
(CONTAINER input) protected ContainerItemProvider<CONTAINER>.ContainerNode
createContaineNode
(ContainerItemProvider.Node parent, Object element) protected ContainerItemProvider<CONTAINER>.LeafNode
createLeafNode
(ContainerItemProvider.Node parent, Object element) protected ContainerItemProvider.Node
createNode
(ContainerItemProvider.Node parent, Object element) protected ContainerItemProvider.SlowElement
createSlowElement
(IContainer<?> container) static IContainer<Object>
createSlowInput
(String text) protected void
disconnectInput
(CONTAINER input) protected void
elementAdded
(Object element, Object parent) protected void
elementRemoved
(Object element, Object parent) protected void
executeRunnable
(Runnable runnable) void
fillContextMenu
(IMenuManager manager, ITreeSelection selection) protected boolean
filterRootElement
(Object element) Object[]
getChildren
(Object element) protected Object[]
getContainerChildren
(ContainerItemProvider<CONTAINER>.AbstractContainerNode containerNode, IContainer<?> container) protected String
getErrorText
(IContainer<Object> container) getForeground
(Object obj) protected ContainerItemProvider.Node
protected Map<Object,
ContainerItemProvider.Node> getNodes()
protected ContainerItemProvider.Node
getRoot()
protected String
getSlowText
(IContainer<Object> container) protected void
handleElementEvent
(IEvent event) protected void
boolean
hasChildren
(Object element) protected boolean
protected boolean
isSlow
(IContainer<Object> container) static Color
static Image
protected ContainerItemProvider.Node
removeNode
(Object element) Methods inherited from class org.eclipse.net4j.util.ui.views.ItemProvider
addListener, fireLabelProviderChanged, fireLabelProviderChanged, fireLabelProviderChanged, getBackground, getElements, getListeners, getStyledText, getText, isLabelProperty, removeListener
Methods inherited from class org.eclipse.net4j.util.ui.StructuredContentProvider
dispose, expandElement, getBoldFont, getDisplay, getInput, getItalicFont, getViewer, inputChanged, notifyEvent, refreshElement, refreshSynced, refreshViewer, revealElement, selectElement, updateLabels
Methods inherited from class org.eclipse.jface.viewers.ViewerSorter
getCollator
Methods inherited from class org.eclipse.jface.viewers.ViewerComparator
category, compare, getComparator, isSorterProperty, sort
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider
dispose
Methods inherited from interface org.eclipse.jface.viewers.IContentProvider
dispose, inputChanged
-
Field Details
-
PENDING_COLOR
Deprecated.As of 3.12 usependingColor()
.- Since:
- 3.5
-
PENDING_IMAGE
Deprecated.As of 3.12 usependingImage()
.- Since:
- 3.5
-
ERROR_IMAGE
Deprecated.As of 3.12 useUIUtil.errorImage()
.- Since:
- 3.5
-
-
Constructor Details
-
ContainerItemProvider
public ContainerItemProvider() -
ContainerItemProvider
-
-
Method Details
-
getRootElementFilter
-
hasChildren
- Specified by:
hasChildren
in interfaceITreeContentProvider
- Overrides:
hasChildren
in classItemProvider<CONTAINER extends IContainer<Object>>
-
getChildren
-
getParent
-
clearNodesCache
public void clearNodesCache()- Since:
- 3.4
-
connectInput
- Overrides:
connectInput
in classStructuredContentProvider<CONTAINER extends IContainer<Object>>
-
disconnectInput
- Overrides:
disconnectInput
in classStructuredContentProvider<CONTAINER extends IContainer<Object>>
-
handleInactiveElement
protected void handleInactiveElement(Iterator<ContainerItemProvider.Node> it, ContainerItemProvider.Node child) - Since:
- 2.0
-
elementAdded
-
elementRemoved
-
handleElementEvent
- Since:
- 3.3
-
getContainerChildren
protected Object[] getContainerChildren(ContainerItemProvider<CONTAINER>.AbstractContainerNode containerNode, IContainer<?> container) - Since:
- 3.5
-
getRoot
-
getNodes
-
getNode
-
createNode
-
createLeafNode
protected ContainerItemProvider<CONTAINER>.LeafNode createLeafNode(ContainerItemProvider.Node parent, Object element) -
createContaineNode
protected ContainerItemProvider<CONTAINER>.ContainerNode createContaineNode(ContainerItemProvider.Node parent, Object element) -
addNode
-
removeNode
-
filterRootElement
-
executeRunnable
- Since:
- 3.1
-
createSlowElement
- Since:
- 3.5
-
isComputeChildrenEagerly
protected boolean isComputeChildrenEagerly()- Since:
- 3.5
-
isSlow
- Since:
- 3.1
-
getSlowText
- Since:
- 3.1
-
getErrorText
- Since:
- 3.1
-
fillContextMenu
- Overrides:
fillContextMenu
in classItemProvider<CONTAINER extends IContainer<Object>>
- Since:
- 3.3
-
getFont
- Specified by:
getFont
in interfaceIFontProvider
- Overrides:
getFont
in classItemProvider<CONTAINER extends IContainer<Object>>
-
getForeground
- Specified by:
getForeground
in interfaceIColorProvider
- Overrides:
getForeground
in classItemProvider<CONTAINER extends IContainer<Object>>
-
getImage
- Specified by:
getImage
in interfaceDelegatingStyledCellLabelProvider.IStyledLabelProvider
- Specified by:
getImage
in interfaceILabelProvider
- Overrides:
getImage
in classItemProvider<CONTAINER extends IContainer<Object>>
-
pendingColor
- Since:
- 3.12
-
pendingImage
- Since:
- 3.12
-
createSlowInput
- Since:
- 3.5
-
ContainerItemProvider.SlowElement
.