com.ibm.jdg2e.view.files.ui
Class FileContentProvider.AddToViewer

java.lang.Object
  extended byorg.eclipse.core.runtime.PlatformObject
      extended byorg.eclipse.core.internal.jobs.InternalJob
          extended byorg.eclipse.core.runtime.jobs.Job
              extended byorg.eclipse.ui.progress.UIJob
                  extended byorg.eclipse.ui.progress.WorkbenchJob
                      extended bycom.ibm.jdg2e.view.files.ui.FileContentProvider.AddToViewer
All Implemented Interfaces:
java.lang.Comparable, org.eclipse.core.runtime.IAdaptable
Enclosing class:
FileContentProvider

final class FileContentProvider.AddToViewer
extends org.eclipse.ui.progress.WorkbenchJob

This job is used to deliver content to the viewer. The files found by the IResourceProxyVisitor are sent off to the viewer in batches. Instances of this job are used to deliver the adds to the viewer which must be made on the UI thread. Job also support a family relationship so that all pending jobs can be cancled.


Field Summary
 
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
 
Fields inherited from class org.eclipse.core.internal.jobs.InternalJob
 
Method Summary
 boolean belongsTo(java.lang.Object family)
          All jobs of this type are in one family; this supports a family level cancel request.
 org.eclipse.core.runtime.IStatus runInUIThread(org.eclipse.core.runtime.IProgressMonitor monitor)
          Add the files passed to the job to the viewer.
 
Methods inherited from class org.eclipse.ui.progress.WorkbenchJob
performDone, shouldRun, shouldSchedule
 
Methods inherited from class org.eclipse.ui.progress.UIJob
errorStatus, getDisplay, run, setDisplay
 
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, cancel, done, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, sleep, wakeUp, wakeUp
 
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo, toString
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

belongsTo

public boolean belongsTo(java.lang.Object family)
All jobs of this type are in one family; this supports a family level cancel request.

See Also:
Job.belongsTo(java.lang.Object)

runInUIThread

public org.eclipse.core.runtime.IStatus runInUIThread(org.eclipse.core.runtime.IProgressMonitor monitor)
Add the files passed to the job to the viewer. Check for cancellation just in case.

See Also:
UIJob.runInUIThread(org.eclipse.core.runtime.IProgressMonitor)