Package ghidra.framework.task

# Interface GTask

public interface GTask
Interface for tasks to be run by `GTaskManager`.

See Also:
  - `GTaskGroup`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getName()`
  Returns the name of this task.
  `void`
  `run(UndoableDomainObject domainObject, TaskMonitor monitor)`
  the run method where work can be performed on the given domain object.

- ## Method Details

  - ### getName

    String getName()
    Returns the name of this task.
    Returns:
      the name of this task.

  - ### run

    void run(UndoableDomainObject domainObject, TaskMonitor monitor) throws CancelledException
    the run method where work can be performed on the given domain object.
    Parameters:
      `domainObject` - the object to affect.
      `monitor` - the taskMonitor to be used to cancel and report progress.
    Throws:
      `CancelledException` - if the user cancelled the task.