Package de.uka.ipd.sdq.workflow
Class ExecutionTimeLoggingProgressMonitor
java.lang.Object
org.eclipse.core.runtime.ProgressMonitorWrapper
org.eclipse.core.runtime.SubProgressMonitor
de.uka.ipd.sdq.workflow.ExecutionTimeLoggingProgressMonitor
- All Implemented Interfaces:
IProgressMonitor,IProgressMonitorWithBlocking
The Class ExecutionTimeLoggingProgressMonitor.
-
Field Summary
Fields inherited from class org.eclipse.core.runtime.SubProgressMonitor
PREPEND_MAIN_LABEL_TO_SUBTASK, SUPPRESS_SUBTASK_LABELFields inherited from interface org.eclipse.core.runtime.IProgressMonitor
UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionExecutionTimeLoggingProgressMonitor(IProgressMonitor monitor, int ticks) Instantiates a new execution time logging progress monitor. -
Method Summary
Modifier and TypeMethodDescriptionvoidBegin task.voiddone()Done.voidinternalWorked(double work) Internal worked.booleanChecks if is canceled.voidsetCanceled(boolean value) Sets the canceled.voidsetTaskName(String name) Sets the task name.voidSub task.voidworked(int work) Worked.Methods inherited from class org.eclipse.core.runtime.ProgressMonitorWrapper
clearBlocked, getWrappedProgressMonitor, setBlockedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IProgressMonitor
slice
-
Constructor Details
-
ExecutionTimeLoggingProgressMonitor
Instantiates a new execution time logging progress monitor.- Parameters:
monitor- the monitorticks- the ticks
-
-
Method Details
-
beginTask
Begin task.- Specified by:
beginTaskin interfaceIProgressMonitor- Overrides:
beginTaskin classSubProgressMonitor- Parameters:
name- the nametotalWork- the total work- See Also:
-
done
public void done()Done. TODO Check whethertaskNameshould be mandatory- Specified by:
donein interfaceIProgressMonitor- Overrides:
donein classSubProgressMonitor- See Also:
-
internalWorked
public void internalWorked(double work) Internal worked.- Specified by:
internalWorkedin interfaceIProgressMonitor- Overrides:
internalWorkedin classSubProgressMonitor- Parameters:
work- the work- See Also:
-
isCanceled
public boolean isCanceled()Checks if is canceled.- Specified by:
isCanceledin interfaceIProgressMonitor- Overrides:
isCanceledin classProgressMonitorWrapper- Returns:
- true, if is canceled
- See Also:
-
setCanceled
public void setCanceled(boolean value) Sets the canceled.- Specified by:
setCanceledin interfaceIProgressMonitor- Overrides:
setCanceledin classProgressMonitorWrapper- Parameters:
value- the new canceled- See Also:
-
setTaskName
Sets the task name.- Specified by:
setTaskNamein interfaceIProgressMonitor- Overrides:
setTaskNamein classProgressMonitorWrapper- Parameters:
name- the new task name- See Also:
-
subTask
Sub task.- Specified by:
subTaskin interfaceIProgressMonitor- Overrides:
subTaskin classSubProgressMonitor- Parameters:
name- the name- See Also:
-
worked
public void worked(int work) Worked.- Specified by:
workedin interfaceIProgressMonitor- Overrides:
workedin classSubProgressMonitor- Parameters:
work- the work- See Also:
-