Package ghidra.app.util.task

# Class OpenProgramRequest

java.lang.Object
ghidra.app.util.task.OpenProgramRequest

public class OpenProgramRequest extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OpenProgramRequest(Program program, ghidra.app.plugin.core.progmgr.ProgramLocator locator, Object consumer)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ghidra.app.plugin.core.progmgr.ProgramLocator`
  `getLocator()`
  `Program`
  `getProgram()`
  Get the open Program instance which corresponds to this open request.
  `void`
  `release()`
  Release opened program.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### OpenProgramRequest

    public OpenProgramRequest(Program program, ghidra.app.plugin.core.progmgr.ProgramLocator locator, Object consumer)

- ## Method Details

  - ### getProgram

    public Program getProgram()
    Get the open Program instance which corresponds to this open request.
    Returns:
      program instance or null if never opened.

  - ### release

    public void release()
    Release opened program. This must be done once, and only once, on a successful open request. If handing ownership off to another consumer, they should be added as a program consumer prior to invoking this method. Releasing the last consumer will close the program instance.

  - ### getLocator

    public ghidra.app.plugin.core.progmgr.ProgramLocator getLocator()