Package org.eclipse.compare.internal
Class Worker
java.lang.Object
org.eclipse.compare.internal.Worker
- All Implemented Interfaces:
- IRunnableWithProgress
A worker performs a set of tasks in order and accumulates any errors
 that may have occurred. If the same task is queued multiple times,
 the last occurrence will be run. If a task is queued while it is
 running, the running task will be canceled and the task added
 to the end of the work queue.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidprotected StringbooleanhasWork()booleanvoidrun(IProgressMonitor monitor) Runs this operation.
- 
Constructor Details- 
Worker
 
- 
- 
Method Details- 
runDescription copied from interface:IRunnableWithProgressRuns this operation. Progress should be reported to the given progress monitor. This method is usually invoked by anIRunnableContext'srunmethod, which supplies the progress monitor. A request to cancel the operation should be honored and acknowledged by throwingInterruptedException.- Specified by:
- runin interface- IRunnableWithProgress
- Parameters:
- monitor- the progress monitor to use to display progress and receive requests for cancelation
- See Also:
 
- 
getErrors
- 
getTaskName
- 
add
- 
isWorkingpublic boolean isWorking()
- 
hasWorkpublic boolean hasWork()
 
-