Class SafeSubMonitor
- java.lang.Object
-
- org.eclipse.emf.common.util.BasicMonitor.Delegating
-
- org.eclipse.emf.compare.internal.utils.SafeSubMonitor
-
- All Implemented Interfaces:
Monitor
public class SafeSubMonitor extends BasicMonitor.Delegating implements Monitor
An EMFMonitorthat can be safely passed to clients because it will ignore calls toworked(int)anddone()to allow the caller to master the number of ticks consumed, whatever the clients do with the monitor. Such a monitor allows clients to cancel an operation while preventing them to negatively (or positively alas) impact the progress report.
-
-
Field Summary
-
Fields inherited from class org.eclipse.emf.common.util.BasicMonitor.Delegating
monitor
-
-
Constructor Summary
Constructors Constructor Description SafeSubMonitor(Monitor monitor)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddone()voidworked(int work)-
Methods inherited from class org.eclipse.emf.common.util.BasicMonitor.Delegating
beginTask, clearBlocked, internalWorked, isCanceled, setBlocked, setCanceled, setTaskName, subTask
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.emf.common.util.Monitor
beginTask, clearBlocked, internalWorked, isCanceled, setBlocked, setCanceled, setTaskName, subTask
-
-
-
-
Constructor Detail
-
SafeSubMonitor
public SafeSubMonitor(Monitor monitor)
Constructor.- Parameters:
monitor- The wrapped monitor.
-
-
Method Detail
-
worked
public void worked(int work)
- Specified by:
workedin interfaceMonitor- Overrides:
workedin classBasicMonitor.Delegating
-
done
public void done()
- Specified by:
donein interfaceMonitor- Overrides:
donein classBasicMonitor.Delegating
-
-