Package ghidra.app.events

# Class ProgramClosedPluginEvent

java.lang.Object
ghidra.framework.plugintool.PluginEvent
ghidra.app.events.ProgramClosedPluginEvent

public class ProgramClosedPluginEvent extends PluginEvent
Plugin event class for notification of programs being created, opened, or closed.

- ## Field Summary

  ### Fields inherited from class ghidra.framework.plugintool.PluginEvent

  `EXTERNAL_SOURCE_NAME`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ProgramClosedPluginEvent(String source, Program p)`
  Construct a new plugin event.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Program`
  `getProgram()`
  Returns the `Program` that has just been opened.

  ### Methods inherited from class ghidra.framework.plugintool.PluginEvent

  `getDetails, getEventName, getSourceName, getToolEventName, getTriggerEvent, isToolEvent, lookupToolEventName, setSourceName, setTriggerEvent, toString`

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

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

- ## Constructor Details

  - ### ProgramClosedPluginEvent

    public ProgramClosedPluginEvent(String source, Program p)
    Construct a new plugin event.
    Parameters:
      `source` - name of the plugin that created this event
      `p` - the program associated with this event

- ## Method Details

  - ### getProgram

    public Program getProgram()
    Returns the `Program` that has just been opened. This method can return null, but only if the method is called some time after the original event notification.
    Returns:
      the `Program` that has just been analyzed for the first time.