Package org.eclipse.emf.common.util
Class BasicMonitor.Delegating
java.lang.Object
org.eclipse.emf.common.util.BasicMonitor.Delegating
- All Implemented Interfaces:
Monitor
- Enclosing class:
- BasicMonitor
A simple monitor that delegates to another monitor.
-
Field Summary
Fields -
Constructor Summary
Constructors -
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
-
monitor
-
-
Constructor Details
-
Delegating
-
-
Method Details
-
isCanceled
public boolean isCanceled()Description copied from interface:MonitorReturns whether the activity has been canceled.- Specified by:
isCanceledin interfaceMonitor
-
setCanceled
public void setCanceled(boolean value) Description copied from interface:MonitorSets whether the active should be canceled.- Specified by:
setCanceledin interfaceMonitor
-
setBlocked
Description copied from interface:MonitorSets the reason for the activity being blocked.- Specified by:
setBlockedin interfaceMonitor
-
clearBlocked
public void clearBlocked()Description copied from interface:MonitorClears the reason for the activity being blocked.- Specified by:
clearBlockedin interfaceMonitor
-
beginTask
Description copied from interface:MonitorCalled once per instance to indicate the name of the task and its expected duration. -
setTaskName
Description copied from interface:MonitorUpdate the task name.- Specified by:
setTaskNamein interfaceMonitor
-
subTask
Description copied from interface:MonitorSets the current subtask of the overall task. -
worked
public void worked(int work) Description copied from interface:MonitorCalled to indicate the amount or progress on the task. -
internalWorked
public void internalWorked(double work) Description copied from interface:MonitorCalled by subprogress monitors to do fractional work.- Specified by:
internalWorkedin interfaceMonitor
-
done
public void done()Description copied from interface:MonitorCalled to indicate the task is complete.
-