|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.ui.util.RemoteTreeContentManager
public class RemoteTreeContentManager
A remote content manager that merges content into a tree rather then replacing
its children with a "pending" node, and then the real children when they are available.
This avoids collapsing the viewer when a refresh is performed. This implementation is
currently tied to the RemoteTreeViewer
.
Nested Class Summary | |
---|---|
class |
RemoteTreeContentManager.Collector
Element collector |
Constructor Summary | |
---|---|
RemoteTreeContentManager(org.eclipse.jface.viewers.ITreeContentProvider provider,
RemoteTreeViewer viewer,
org.eclipse.ui.IWorkbenchPartSite site)
Contructs a new content manager. |
Method Summary | |
---|---|
void |
cancel()
Cancels any content this provider is currently fetching. |
java.lang.Object[] |
getChildren(java.lang.Object parent)
Returns the child elements of the given element, or in the case of a deferred element, returns a placeholder. |
boolean |
mayHaveChildren(java.lang.Object element)
Provides an optimized lookup for determining if an element has children. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteTreeContentManager(org.eclipse.jface.viewers.ITreeContentProvider provider, RemoteTreeViewer viewer, org.eclipse.ui.IWorkbenchPartSite site)
provider
- content providerviewer
- viewersite
- part siteMethod Detail |
---|
public java.lang.Object[] getChildren(java.lang.Object parent)
parent
- The parent object.
null
if parent is not an instance of
IDeferredWorkbenchAdapter.public boolean mayHaveChildren(java.lang.Object element)
getChildren
just to determine the potential for
children. Throw an AssertionFailedException if element is null.
element
- The Object being tested. This should not be
null
.
true
if there are potentially children.
java.lang.RuntimeException
- if the element is null.public void cancel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |