Package ghidra.util.task
Class CompoundTask
- java.lang.Object
-
- ghidra.util.task.Task
-
- ghidra.util.task.CompoundTask
-
- All Implemented Interfaces:
MonitoredRunnable
public class CompoundTask extends Task
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
Constructors Constructor Description CompoundTask(Task[] tasks, java.lang.String title)
Create a CompoundTask from an array of tasks.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(TaskMonitor monitor)
The task run method-
Methods inherited from class ghidra.util.task.Task
addTaskListener, canCancel, cancel, getStatusTextAlignment, getTaskTitle, hasProgress, isModal, monitoredRun, notifyTaskListeners, setHasProgress
-
-
-
-
Constructor Detail
-
CompoundTask
public CompoundTask(Task[] tasks, java.lang.String title)
Create a CompoundTask from an array of tasks.- Parameters:
tasks
- the array of tasks.title
- the title for this task.
-
-
Method Detail
-
run
public void run(TaskMonitor monitor) throws CancelledException
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
-
-