Package ghidra.framework.plugintool
Class PluginEvent
java.lang.Object
ghidra.framework.plugintool.PluginEvent
- Direct Known Subclasses:
CloseProgramPluginEvent
,ExternalProgramLocationPluginEvent
,ExternalProgramSelectionPluginEvent
,ExternalReferencePluginEvent
,FirstTimeAnalyzedPluginEvent
,OpenProgramPluginEvent
,ProgramActivatedPluginEvent
,ProgramClosedPluginEvent
,ProgramHighlightPluginEvent
,ProgramLocationPluginEvent
,ProgramOpenedPluginEvent
,ProgramPostActivatedPluginEvent
,ProgramSelectionPluginEvent
,ProgramVisibilityChangePluginEvent
,ProjectPluginEvent
,TreeSelectionPluginEvent
,ViewChangedPluginEvent
Event generated by a plugin.
A PluginEvent should be annotate with a ToolEventName
if it may be
passed between multiple tools via a ToolConnection
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Name of event source when plugin event is passed to another tool as cross-tool event. -
Constructor Summary
ModifierConstructorDescriptionprotected
PluginEvent
(String sourceName, String eventName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected String
final String
Get the plugin event name.final String
Returns the name of the plugin immediately responsible for firing this event.final String
Get the optional cross-tool event name which has been established via aToolEventName
annotation which makes it available for passing as an external tool via aToolConnection
.boolean
Determine if this event has been annotated with aToolEventName
which makes it available for passing to another tool via aToolConnection
.static String
lookupToolEventName
(Class<?> pluginEventClass) Returns the tool event name corresponding to the given pluginEventClass.void
void
setTriggerEvent
(PluginEvent triggerEvent) toString()
-
Field Details
-
EXTERNAL_SOURCE_NAME
Name of event source when plugin event is passed to another tool as cross-tool event.- See Also:
-
-
Constructor Details
-
PluginEvent
Constructor- Parameters:
sourceName
- source name of the eventeventName
- name of event
-
-
Method Details
-
lookupToolEventName
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 aToolEventName
which makes it available for passing to another tool via aToolConnection
.- Returns:
- true if event can be utilized as a cross-tool event
-
getToolEventName
Get the optional cross-tool event name which has been established via aToolEventName
annotation 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
Get the plugin event name. -
getSourceName
Returns the name of the plugin immediately responsible for firing this event. -
setSourceName
-
setTriggerEvent
-
getTriggerEvent
-
toString
-
getDetails
-