Class CallHierarchyContentProvider
java.lang.Object
org.eclipse.handly.ui.viewer.DeferredTreeContentProvider
org.eclipse.handly.ui.callhierarchy.CallHierarchyContentProvider
- All Implemented Interfaces:
org.eclipse.jface.viewers.IContentProvider
,org.eclipse.jface.viewers.IStructuredContentProvider
,org.eclipse.jface.viewers.ITreeContentProvider
Default implementation of a tree content provider for a call hierarchy.
Supports asynchronous fetching of children.
-
Constructor Summary
ConstructorDescriptionConstructs a call hierarchy content provider for the given call hierarchy view. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
fetchDeferredChildren
(Object parentElement, org.eclipse.ui.progress.IElementCollector collector, org.eclipse.core.runtime.IProgressMonitor monitor) Called by a job to fetch the child elements of the given parent element.Object[]
getChildren
(Object parentElement) Object[]
getElements
(Object inputElement) boolean
hasChildren
(Object element) Methods inherited from class org.eclipse.handly.ui.viewer.DeferredTreeContentProvider
getDeferredTreeContentManager, getLabel, getRule, inputChanged
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.IContentProvider
dispose
-
Constructor Details
-
CallHierarchyContentProvider
Constructs a call hierarchy content provider for the given call hierarchy view.- Parameters:
viewPart
- notnull
-
-
Method Details
-
getElements
-
getChildren
-
getParent
-
hasChildren
-
fetchDeferredChildren
protected void fetchDeferredChildren(Object parentElement, org.eclipse.ui.progress.IElementCollector collector, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from class:DeferredTreeContentProvider
Called by a job to fetch the child elements of the given parent element. This method should report the fetched elements via the given collector.- Specified by:
fetchDeferredChildren
in classDeferredTreeContentProvider
- Parameters:
parentElement
- the parent elementcollector
- the element collector (nevernull
)monitor
- a progress monitor to support reporting and cancellation (nevernull
)
-