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, subTask
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginTask, clearBlocked, internalWorked, isCanceled, setBlocked, setCanceled, setTaskName, subTask
public SafeSubMonitor(Monitor monitor)
monitor
- The wrapped monitor.public void worked(int work)
worked
in interface Monitor
worked
in class BasicMonitor.Delegating
public void done()
done
in interface Monitor
done
in class BasicMonitor.Delegating
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.