Package ghidra.app.events

# Class ProgramActivatedPluginEvent

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

public class ProgramActivatedPluginEvent 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
  `ProgramActivatedPluginEvent(String source, Program activeProgram)`
  Construct a new plugin event.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Program`
  `getActiveProgram()`
  Returns the `Program` that has is being activated.

  ### 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

  - ### ProgramActivatedPluginEvent

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

- ## Method Details

  - ### getActiveProgram

    public Program getActiveProgram()
    Returns the `Program` that has is being activated. This method can return null, but it is unlikely. It will only return null if the program has been closed and is no longer in use.
    Returns:
      the `Program` that has just been analyzed for the first time.