Package org.eclipse.emf.common.util
Interface Monitor
- All Known Implementing Classes:
BasicMonitor,BasicMonitor.Delegating,BasicMonitor.EclipseSubProgress,BasicMonitor.Printing
public interface Monitor
An task monitor that provides control and feedback.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled once per instance to indicate the name of the task and its expected duration.voidClears the reason for the activity being blocked.voiddone()Called to indicate the task is complete.voidinternalWorked(double work) Called by subprogress monitors to do fractional work.booleanReturns whether the activity has been canceled.voidsetBlocked(Diagnostic reason) Sets the reason for the activity being blocked.voidsetCanceled(boolean value) Sets whether the active should be canceled.voidsetTaskName(String name) Update the task name.voidSets the current subtask of the overall task.voidworked(int work) Called to indicate the amount or progress on the task.
-
Field Details
-
UNKNOWN
static final int UNKNOWNRepresents an unknown amount or work.- See Also:
-
-
Method Details
-
isCanceled
boolean isCanceled()Returns whether the activity has been canceled. -
setCanceled
void setCanceled(boolean value) Sets whether the active should be canceled. -
setBlocked
Sets the reason for the activity being blocked. -
clearBlocked
void clearBlocked()Clears the reason for the activity being blocked. -
beginTask
Called once per instance to indicate the name of the task and its expected duration. -
setTaskName
Update the task name. -
subTask
Sets the current subtask of the overall task. -
worked
void worked(int work) Called to indicate the amount or progress on the task. -
internalWorked
void internalWorked(double work) Called by subprogress monitors to do fractional work. -
done
void done()Called to indicate the task is complete.
-