Package ghidra.framework.task
Class GTaskListenerAdapter
- java.lang.Object
-
- ghidra.framework.task.GTaskListenerAdapter
-
- All Implemented Interfaces:
GTaskListener
public class GTaskListenerAdapter extends java.lang.Object implements GTaskListener
A Dummy implementation to that listeners can subclass this and not have to fill in methods they don't need.
-
-
Constructor Summary
Constructors Constructor Description GTaskListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize()Called when a task listener is added so that the listener can get all the initial state of the taskManger while the taskManager is in a locked state where nothing will change.voidsuspendedStateChanged(boolean suspended)Notification that the GTaskManager has been suspended or resumed.voidtaskCompleted(GScheduledTask task, GTaskResult result)Notification that a task is no longer running regardless of whether it completed normally, was cancelled, or threw an unhandled exception.voidtaskGroupCompleted(GTaskGroup taskGroup)Notification that the GTaskGroup has completed running.voidtaskGroupScheduled(GTaskGroup group)Notification that a GTaskGroup has been scheduled.voidtaskGroupStarted(GTaskGroup taskGroup)Notification that a new GTaskGroup has started to run.voidtaskScheduled(GScheduledTask scheduledTask)Notification that a new GTask has been scheduled to run.voidtaskStarted(GScheduledTask task)Notification that a task is starting to run
-
-
-
Method Detail
-
taskCompleted
public void taskCompleted(GScheduledTask task, GTaskResult result)
Description copied from interface:GTaskListenerNotification that a task is no longer running regardless of whether it completed normally, was cancelled, or threw an unhandled exception.- Specified by:
taskCompletedin interfaceGTaskListener- Parameters:
task- the ScheduledTask that was running.result- the result state for the task.
-
taskGroupScheduled
public void taskGroupScheduled(GTaskGroup group)
Description copied from interface:GTaskListenerNotification that a GTaskGroup has been scheduled.- Specified by:
taskGroupScheduledin interfaceGTaskListener- Parameters:
group- the GTaskGroup that has been scheduled to run.
-
taskScheduled
public void taskScheduled(GScheduledTask scheduledTask)
Description copied from interface:GTaskListenerNotification that a new GTask has been scheduled to run.- Specified by:
taskScheduledin interfaceGTaskListener- Parameters:
scheduledTask- the GScheduledTask that wraps the GTask with scheduling information.
-
taskGroupStarted
public void taskGroupStarted(GTaskGroup taskGroup)
Description copied from interface:GTaskListenerNotification that a new GTaskGroup has started to run.- Specified by:
taskGroupStartedin interfaceGTaskListener- Parameters:
taskGroup- the new GTaskGroup that is running.
-
taskStarted
public void taskStarted(GScheduledTask task)
Description copied from interface:GTaskListenerNotification that a task is starting to run- Specified by:
taskStartedin interfaceGTaskListener- Parameters:
task- the GTask that is starting to run
-
initialize
public void initialize()
Description copied from interface:GTaskListenerCalled when a task listener is added so that the listener can get all the initial state of the taskManger while the taskManager is in a locked state where nothing will change.- Specified by:
initializein interfaceGTaskListener
-
taskGroupCompleted
public void taskGroupCompleted(GTaskGroup taskGroup)
Description copied from interface:GTaskListenerNotification that the GTaskGroup has completed running.- Specified by:
taskGroupCompletedin interfaceGTaskListener- Parameters:
taskGroup- the GTaskGroup that has completed running.
-
suspendedStateChanged
public void suspendedStateChanged(boolean suspended)
Description copied from interface:GTaskListenerNotification that the GTaskManager has been suspended or resumed.- Specified by:
suspendedStateChangedin interfaceGTaskListener- Parameters:
suspended- true if the GTaskManger has been suspended, or false if it has been resumed.
-
-