Package ghidra.framework.plugintool

# Class ProjectPluginEvent

java.lang.Object
ghidra.framework.plugintool.PluginEvent
ghidra.framework.plugintool.ProjectPluginEvent

public class ProjectPluginEvent extends PluginEvent
Plugin event for notifying when a project is opened or closed. Note this is only applicable for FrontEndTool plugins.

- ## Field Summary

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

  `EXTERNAL_SOURCE_NAME`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ProjectPluginEvent(String sourceName, Project project)`
  Constructor

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Project`
  `getProject()`
  Returns the project that was opened or null if the project was closed.

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

  - ### ProjectPluginEvent

    public ProjectPluginEvent(String sourceName, Project project)
    Constructor
    Parameters:
      `sourceName` - the name of source of the event
      `project` - if non-null, the project that was opened; otherwise the current was closed.

- ## Method Details

  - ### getProject

    public Project getProject()
    Returns the project that was opened or null if the project was closed.
    Returns:
      the project that was opened or null if the project was closed.