Package ghidra.util.task
Class UnknownProgressWrappingTaskMonitor
java.lang.Object
ghidra.util.task.TaskMonitorAdapter
ghidra.util.task.UnknownProgressWrappingTaskMonitor
- All Implemented Interfaces:
TaskMonitor
A class that is meant to wrap a
TaskMonitor when you do not know the maximum value
of the progress.-
Field Summary
Fields inherited from class ghidra.util.task.TaskMonitorAdapter
DUMMY_MONITORFields inherited from interface ghidra.util.task.TaskMonitor
DUMMY, NO_PROGRESS_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck to see if this monitor has been cancelledvoidincrementProgress(long incrementAmount) A convenience method to increment the current progress by the given valuebooleanReturns true if the user has cancelled the operationvoidsetMessage(String message) Sets the message displayed on the task monitorvoidsetProgress(long value) Sets the current progress valueMethods inherited from class ghidra.util.task.TaskMonitorAdapter
addCancelledListener, cancel, checkCanceled, clearCanceled, getMaximum, getMessage, getMinimum, getProgress, initialize, isCancelEnabled, isIndeterminate, notifyChangeListeners, removeCancelledListener, setCancelEnabled, setIndeterminate, setMaximum, setMinimum, setShowProgressValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.util.task.TaskMonitor
clearCancelled
-
Constructor Details
-
UnknownProgressWrappingTaskMonitor
-
-
Method Details
-
setMessage
Description copied from interface:TaskMonitorSets the message displayed on the task monitor- Specified by:
setMessagein interfaceTaskMonitor- Overrides:
setMessagein classTaskMonitorAdapter- Parameters:
message- the message to display
-
setProgress
public void setProgress(long value) Description copied from interface:TaskMonitorSets the current progress value- Specified by:
setProgressin interfaceTaskMonitor- Overrides:
setProgressin classTaskMonitorAdapter- Parameters:
value- progress value
-
incrementProgress
public void incrementProgress(long incrementAmount) Description copied from interface:TaskMonitorA convenience method to increment the current progress by the given value- Specified by:
incrementProgressin interfaceTaskMonitor- Overrides:
incrementProgressin classTaskMonitorAdapter- Parameters:
incrementAmount- The amount by which to increment the progress
-
isCancelled
public boolean isCancelled()Description copied from interface:TaskMonitorReturns true if the user has cancelled the operation- Specified by:
isCancelledin interfaceTaskMonitor- Overrides:
isCancelledin classTaskMonitorAdapter- Returns:
- true if the user has cancelled the operation
-
checkCancelled
Description copied from interface:TaskMonitorCheck to see if this monitor has been cancelled- Throws:
CancelledException- if monitor has been cancelled
-