Package ghidra.framework.plugintool
Class PluginEvent
- java.lang.Object
 - 
- ghidra.framework.plugintool.PluginEvent
 
 
- 
- Direct Known Subclasses:
 CloseProgramPluginEvent,DualProgramLocationPluginEvent,ExternalProgramLocationPluginEvent,ExternalProgramSelectionPluginEvent,ExternalReferencePluginEvent,OpenProgramPluginEvent,ProgramActivatedPluginEvent,ProgramClosedPluginEvent,ProgramHighlightPluginEvent,ProgramLocationPluginEvent,ProgramOpenedPluginEvent,ProgramSelectionPluginEvent,ProgramVisibilityChangePluginEvent,TreeSelectionPluginEvent,ViewChangedPluginEvent
public abstract class PluginEvent extends java.lang.ObjectEvent generated by a plugin.A PluginEvent should be annotate with a
ToolEventNameif it may be passed between multiple tools via aToolConnection. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEXTERNAL_SOURCE_NAMEName of event source when plugin event is passed to another tool as cross-tool event. 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedPluginEvent(java.lang.String sourceName, java.lang.String eventName)Constructor 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetDetails()java.lang.StringgetEventName()Get the plugin event name.java.lang.StringgetSourceName()Returns the name of the plugin immediately responsible for firing this event.java.lang.StringgetToolEventName()Get the optional cross-tool event name which has been established via aToolEventNameannotation which makes it available for passing as an external tool via aToolConnection.PluginEventgetTriggerEvent()booleanisToolEvent()Determine if this event has been annotated with aToolEventNamewhich makes it available for passing to another tool via aToolConnection.static java.lang.StringlookupToolEventName(java.lang.Class<?> pluginEventClass)Returns the tool event name corresponding to the given pluginEventClass.voidsetSourceName(java.lang.String s)voidsetTriggerEvent(PluginEvent triggerEvent)java.lang.StringtoString() 
 - 
 
- 
- 
Field Detail
- 
EXTERNAL_SOURCE_NAME
public static final java.lang.String EXTERNAL_SOURCE_NAME
Name of event source when plugin event is passed to another tool as cross-tool event.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
lookupToolEventName
public static java.lang.String lookupToolEventName(java.lang.Class<?> pluginEventClass)
Returns the tool event name corresponding to the given pluginEventClass. If no corresponding tool event exists, null will be returned. 
- 
isToolEvent
public boolean isToolEvent()
Determine if this event has been annotated with aToolEventNamewhich makes it available for passing to another tool via aToolConnection.- Returns:
 - true if event can be utilized as a cross-tool event
 
 
- 
getToolEventName
public final java.lang.String getToolEventName()
Get the optional cross-tool event name which has been established via aToolEventNameannotation which makes it available for passing as an external tool via aToolConnection. This name may differ from thegetEventName().s- Returns:
 - tool event name or null if not permitted as a cross-tool event
 
 
- 
getEventName
public final java.lang.String getEventName()
Get the plugin event name. 
- 
getSourceName
public final java.lang.String getSourceName()
Returns the name of the plugin immediately responsible for firing this event. 
- 
setSourceName
public void setSourceName(java.lang.String s)
 
- 
setTriggerEvent
public void setTriggerEvent(PluginEvent triggerEvent)
 
- 
getTriggerEvent
public PluginEvent getTriggerEvent()
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
getDetails
protected java.lang.String getDetails()
 
 - 
 
 -