- All Superinterfaces:
- All Known Subinterfaces:
public interface IPipelinedTreeContentProvider extends ICommonContentProvider
To correctly implement pipelining you should implement
IPipelinedTreeContentProvider2which provides the additional
ITreeContentProvider.hasChildren(Object)method. This allows the calculation of hasChildren to match what will be provided in calculating the children. If you don't implement the hasChildren, you may get "false positive" hasChildrens which will result in a "+" indication in the tree in the event that the pipelined children calculation. The only reason these are two separate interfaces is historical.
Method SummaryModifier and TypeMethodDescription
(Object aParent, Set theCurrentChildren)Intercept the children that would be contributed to the viewer and determine how to change the shape of those children.
(Object anInput, Set theCurrentElements)Intercept the elements that would be contributed to the root of the viewer and determine how to change the shape of those children.
(Object anObject, Object aSuggestedParent)Intercept requests for a parent of the given object.
(PipelinedShapeModification anAddModification)Intercept attempts to add elements directly to the viewer.
(PipelinedViewerUpdate aRefreshSynchronization)Intercept calls to viewer
(PipelinedShapeModification aRemoveModification)Intercept attempts to remove elements directly from the viewer.
(PipelinedViewerUpdate anUpdateSynchronization)Intercept calls to viewer
Methods inherited from interface org.eclipse.ui.navigator.ICommonContentProvider
Methods inherited from interface org.eclipse.jface.viewers.IContentProvider
Methods inherited from interface org.eclipse.ui.navigator.IMementoAware
Methods inherited from interface org.eclipse.jface.viewers.ITreeContentProvider
getChildren, getElements, getParent, hasChildren
getPipelinedChildrenIntercept the children that would be contributed to the viewer and determine how to change the shape of those children. The set of children should be modified to contain the correct children to return to the viewer.
aParent- A parent from the viewer
theCurrentChildren- The set of children contributed thus far from upstream content providers.
getPipelinedElementsIntercept the elements that would be contributed to the root of the viewer and determine how to change the shape of those children. The given set of elements should be modified to contain the correct elements to return to the viewer.
anInput- An input from the viewer
theCurrentElements- The set of children contributed thus far from upstream content providers.
getPipelinedParentIntercept requests for a parent of the given object.
anObject- The object being queried for a parent.
aSuggestedParent- The parent already suggested from upstream extensions.
- The intended parent from this pipelined content provider. If you wish to not influence the parent, then return the aSuggestedParent value.