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
public class ExecutionTimeLoggingProgressMonitor extends SubProgressMonitor
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
Constructors Constructor Description ExecutionTimeLoggingProgressMonitor(IProgressMonitor monitor, int ticks)
Instantiates a new execution time logging progress monitor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginTask(String name, int totalWork)
Begin task.void
done()
Done.void
internalWorked(double work)
Internal worked.boolean
isCanceled()
Checks if is canceled.void
setCanceled(boolean value)
Sets the canceled.void
setTaskName(String name)
Sets the task name.void
subTask(String name)
Sub task.void
worked(int work)
Worked.-
Methods inherited from class org.eclipse.core.runtime.ProgressMonitorWrapper
clearBlocked, getWrappedProgressMonitor, setBlocked
-
-
-
-
Constructor Detail
-
ExecutionTimeLoggingProgressMonitor
public ExecutionTimeLoggingProgressMonitor(IProgressMonitor monitor, int ticks)
Instantiates a new execution time logging progress monitor.- Parameters:
monitor
- the monitorticks
- the ticks
-
-
Method Detail
-
beginTask
public void beginTask(String name, int totalWork)
Begin task.- Specified by:
beginTask
in interfaceIProgressMonitor
- Overrides:
beginTask
in classSubProgressMonitor
- Parameters:
name
- the nametotalWork
- the total work- See Also:
IProgressMonitor.beginTask(java.lang.String, int)
-
done
public void done()
Done. TODO Check whethertaskName
should be mandatory- Specified by:
done
in interfaceIProgressMonitor
- Overrides:
done
in classSubProgressMonitor
- See Also:
IProgressMonitor.done()
-
internalWorked
public void internalWorked(double work)
Internal worked.- Specified by:
internalWorked
in interfaceIProgressMonitor
- Overrides:
internalWorked
in classSubProgressMonitor
- Parameters:
work
- the work- See Also:
IProgressMonitor.internalWorked(double)
-
isCanceled
public boolean isCanceled()
Checks if is canceled.- Specified by:
isCanceled
in interfaceIProgressMonitor
- Overrides:
isCanceled
in classProgressMonitorWrapper
- Returns:
- true, if is canceled
- See Also:
IProgressMonitor.isCanceled()
-
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:
IProgressMonitor.setCanceled(boolean)
-
setTaskName
public void setTaskName(String name)
Sets the task name.- Specified by:
setTaskName
in interfaceIProgressMonitor
- Overrides:
setTaskName
in classProgressMonitorWrapper
- Parameters:
name
- the new task name- See Also:
IProgressMonitor.setTaskName(java.lang.String)
-
subTask
public void subTask(String name)
Sub task.- Specified by:
subTask
in interfaceIProgressMonitor
- Overrides:
subTask
in classSubProgressMonitor
- Parameters:
name
- the name- See Also:
IProgressMonitor.subTask(java.lang.String)
-
worked
public void worked(int work)
Worked.- Specified by:
worked
in interfaceIProgressMonitor
- Overrides:
worked
in classSubProgressMonitor
- Parameters:
work
- the work- See Also:
IProgressMonitor.worked(int)
-
-