Class EclipseProgressObserver.MyProgressMonitor
- java.lang.Object
-
- net.ssehub.easy.producer.eclipse.observer.EclipseProgressObserver.MyProgressMonitor
-
- All Implemented Interfaces:
BasicProgressObserver.IProgressMonitor
- Enclosing class:
- EclipseProgressObserver
private static class EclipseProgressObserver.MyProgressMonitor extends java.lang.Object implements BasicProgressObserver.IProgressMonitor
Wraps the eclipse progress monitor to the basic progress observer interface.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.core.runtime.IProgressMonitormonitor
-
Constructor Summary
Constructors Modifier Constructor Description privateMyProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)Creates a wrapping instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginTask(java.lang.String name, int max)Begins the task with the given name.private org.eclipse.core.runtime.IProgressMonitorgetMonitor()Returns the monitor instance.voidsetTaskName(java.lang.String name)Sets the name of the current main task.voidsubTask(java.lang.String name)Informs about executing a sub-task.voidworked(int step)Informs that the given step within the maximum number of steps of the actual task has been completed.
-
-
-
Method Detail
-
getMonitor
private org.eclipse.core.runtime.IProgressMonitor getMonitor()
Returns the monitor instance.- Returns:
- the instance
-
setTaskName
public void setTaskName(java.lang.String name)
Description copied from interface:BasicProgressObserver.IProgressMonitorSets the name of the current main task.- Specified by:
setTaskNamein interfaceBasicProgressObserver.IProgressMonitor- Parameters:
name- the name
-
beginTask
public void beginTask(java.lang.String name, int max)Description copied from interface:BasicProgressObserver.IProgressMonitorBegins the task with the given name.- Specified by:
beginTaskin interfaceBasicProgressObserver.IProgressMonitor- Parameters:
name- the namemax- the maximum number of steps
-
worked
public void worked(int step)
Description copied from interface:BasicProgressObserver.IProgressMonitorInforms that the given step within the maximum number of steps of the actual task has been completed.- Specified by:
workedin interfaceBasicProgressObserver.IProgressMonitor- Parameters:
step- the step number
-
subTask
public void subTask(java.lang.String name)
Description copied from interface:BasicProgressObserver.IProgressMonitorInforms about executing a sub-task.- Specified by:
subTaskin interfaceBasicProgressObserver.IProgressMonitor- Parameters:
name- the name of the sub-task
-
-