Package ghidra.util.task
Class CompoundTask
java.lang.Object
ghidra.util.task.Task
ghidra.util.task.CompoundTask
- All Implemented Interfaces:
MonitoredRunnable
Combines multiple Tasks into a single task. All tasks should have the same cancel, progress, and modality.
-
Field Summary
Fields inherited from class ghidra.util.task.Task
taskMonitor, waitForTaskCompleted
-
Constructor Summary
ConstructorDescriptionCompoundTask
(Task[] tasks, String title) Create a CompoundTask from an array of tasks. -
Method Summary
Methods inherited from class ghidra.util.task.Task
addTaskListener, canCancel, cancel, getStatusTextAlignment, getTaskTitle, getWaitForTaskCompleted, hasProgress, isCancelled, isModal, monitoredRun, notifyTaskListeners, setHasProgress
-
Constructor Details
-
CompoundTask
Create a CompoundTask from an array of tasks.- Parameters:
tasks
- the array of tasks.title
- the title for this task.
-
-
Method Details
-
run
The task run method- Specified by:
run
in classTask
- Parameters:
monitor
- The TaskMonitor that will monitor the executing Task- Throws:
CancelledException
- if any task is cancelled
-