Package ghidra.app.events

# Class ProgramVisibilityChangePluginEvent

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

public class ProgramVisibilityChangePluginEvent extends PluginEvent
Event for telling a tool to open a program.

- ## Field Summary

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

  `EXTERNAL_SOURCE_NAME`

- ## Constructor Summary

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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Program`
  `getProgram()`
  Return the program on this event.
  `boolean`
  `isProgramVisible()`
  Returns true if program is currently in a visible state.

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

  - ### ProgramVisibilityChangePluginEvent

    public ProgramVisibilityChangePluginEvent(String source, Program p, boolean isVisible)
    Construct a new plugin event.
    Parameters:
      `source` - name of the plugin that created this event
      `p` - the program associated with this event
      `isVisible` - true if visible

- ## Method Details

  - ### getProgram

    public Program getProgram()
    Return the program on this event.
    Returns:
      null if the event if for a program closing.

  - ### isProgramVisible

    public boolean isProgramVisible()
    Returns true if program is currently in a visible state.
    Returns:
      true if program is currently in a visible state.