public class SafeSubMonitor extends BasicMonitor.Delegating implements Monitor
Monitor that can be safely passed to clients because it will ignore calls to
worked(int) and done() 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.monitor| Constructor and Description |
|---|
SafeSubMonitor(Monitor monitor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
done() |
void |
worked(int work) |
beginTask, clearBlocked, internalWorked, isCanceled, setBlocked, setCanceled, setTaskName, subTaskclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeginTask, clearBlocked, internalWorked, isCanceled, setBlocked, setCanceled, setTaskName, subTaskpublic SafeSubMonitor(Monitor monitor)
monitor - The wrapped monitor.public void worked(int work)
worked in interface Monitorworked in class BasicMonitor.Delegatingpublic void done()
done in interface Monitordone in class BasicMonitor.Delegating
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.