RSE
Release 3.3

org.eclipse.rse.ui.operations
Class SystemDeferredTreeContentManager

java.lang.Object
  extended by org.eclipse.ui.progress.DeferredTreeContentManager
      extended by org.eclipse.rse.ui.operations.SystemDeferredTreeContentManager

public class SystemDeferredTreeContentManager
extends DeferredTreeContentManager


Constructor Summary
SystemDeferredTreeContentManager(ITreeContentProvider provider, AbstractTreeViewer viewer)
           
 
Method Summary
protected  void addChildren(Object parent, Object[] children, IProgressMonitor monitor)
           
protected  IDeferredWorkbenchAdapter getAdapter(Object element)
           
 Object[] getChildren(Object parent, Viewer viewer)
          Returns the child elements of the given element, or in the case of a deferred element, returns a placeholder.
 
Methods inherited from class org.eclipse.ui.progress.DeferredTreeContentManager
addUpdateCompleteListener, cancel, createElementCollector, createPendingUpdateAdapter, getChildren, getFetchJobName, isDeferredAdapter, mayHaveChildren, removeUpdateCompleteListener, runClearPlaceholderJob, startFetchingDeferredChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemDeferredTreeContentManager

public SystemDeferredTreeContentManager(ITreeContentProvider provider,
                                        AbstractTreeViewer viewer)
Method Detail

getAdapter

protected IDeferredWorkbenchAdapter getAdapter(Object element)
Overrides:
getAdapter in class DeferredTreeContentManager

getChildren

public Object[] getChildren(Object parent,
                            Viewer viewer)
Returns the child elements of the given element, or in the case of a deferred element, returns a placeholder. If a deferred element is used, a job is created to fetch the children in the background. When the job for fetching the children is finished and the placeholder removed, the original selection is restored.

Parameters:
parent - The parent object.
viewer - The viewer
Returns:
Object[] or null if parent is not an instance of IDeferredWorkbenchAdapter.

addChildren

protected void addChildren(Object parent,
                           Object[] children,
                           IProgressMonitor monitor)
Overrides:
addChildren in class DeferredTreeContentManager

RSE
Release 3.3

Copyright (c) IBM Corporation and others 2000, 2011. All Rights Reserved.