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_LABEL
Fields inherited from interface org.eclipse.core.runtime.IProgressMonitor
UNKNOWN
-
Constructor Summary
ConstructorDescriptionExecutionTimeLoggingProgressMonitor
(IProgressMonitor monitor, int ticks) Instantiates a new execution time logging progress monitor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Begin task.void
done()
Done.void
internalWorked
(double work) Internal worked.boolean
Checks if is canceled.void
setCanceled
(boolean value) Sets the canceled.void
setTaskName
(String name) Sets the task name.void
Sub task.void
worked
(int work) Worked.Methods inherited from class org.eclipse.core.runtime.ProgressMonitorWrapper
clearBlocked, getWrappedProgressMonitor, setBlocked
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
beginTask
in interfaceIProgressMonitor
- Overrides:
beginTask
in classSubProgressMonitor
- Parameters:
name
- the nametotalWork
- the total work- See Also:
-
done
public void done()Done. TODO Check whethertaskName
should be mandatory- Specified by:
done
in interfaceIProgressMonitor
- Overrides:
done
in classSubProgressMonitor
- See Also:
-
internalWorked
public void internalWorked(double work) Internal worked.- Specified by:
internalWorked
in interfaceIProgressMonitor
- Overrides:
internalWorked
in classSubProgressMonitor
- Parameters:
work
- the work- See Also:
-
isCanceled
public boolean isCanceled()Checks if is canceled.- Specified by:
isCanceled
in interfaceIProgressMonitor
- Overrides:
isCanceled
in classProgressMonitorWrapper
- Returns:
- true, if is canceled
- See Also:
-
setCanceled
public void setCanceled(boolean value) Sets the canceled.- Specified by:
setCanceled
in interfaceIProgressMonitor
- Overrides:
setCanceled
in classProgressMonitorWrapper
- Parameters:
value
- the new canceled- See Also:
-
setTaskName
Sets the task name.- Specified by:
setTaskName
in interfaceIProgressMonitor
- Overrides:
setTaskName
in classProgressMonitorWrapper
- Parameters:
name
- the new task name- See Also:
-
subTask
Sub task.- Specified by:
subTask
in interfaceIProgressMonitor
- Overrides:
subTask
in classSubProgressMonitor
- Parameters:
name
- the name- See Also:
-
worked
public void worked(int work) Worked.- Specified by:
worked
in interfaceIProgressMonitor
- Overrides:
worked
in classSubProgressMonitor
- Parameters:
work
- the work- See Also:
-