Class VTFunctionAssociationContext
java.lang.Object
docking.DefaultActionContext
ghidra.feature.vt.gui.provider.functionassociation.VTFunctionAssociationContext
- All Implemented Interfaces:
docking.ActionContext
,FunctionAssociationContext
public class VTFunctionAssociationContext
extends docking.DefaultActionContext
implements FunctionAssociationContext
-
Constructor Summary
ConstructorDescriptionVTFunctionAssociationContext
(ghidra.framework.plugintool.PluginTool tool, ghidra.program.model.listing.Function selectedSourceFunction, ghidra.program.model.listing.Function selectedDestinationFunction, VTMatch existingMatch) Constructs a context for the function association provider. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if a function match can be created for the selected source and destination.Gets the match for the source and destination functions if it exists.ghidra.program.model.listing.Function
Gets the source function selected in the tableghidra.program.model.listing.Function
Gets the destination function selected in the tableghidra.framework.plugintool.PluginTool
getTool()
Methods inherited from class docking.DefaultActionContext
getComponentProvider, getContextObject, getEventClickModifiers, getMouseEvent, getSourceComponent, getSourceObject, hasAnyEventClickModifiers, setContextObject, setEventClickModifiers, setMouseEvent, setSourceComponent, setSourceObject, toString
-
Constructor Details
-
VTFunctionAssociationContext
public VTFunctionAssociationContext(ghidra.framework.plugintool.PluginTool tool, ghidra.program.model.listing.Function selectedSourceFunction, ghidra.program.model.listing.Function selectedDestinationFunction, VTMatch existingMatch) Constructs a context for the function association provider.- Parameters:
tool
- the tool containing the provider.selectedSourceFunction
- the source function currently selected in the table or null.selectedDestinationFunction
- the destination function currently selected in the table or null.existingMatch
- the match for the indicated source and destination functions.
-
-
Method Details
-
getSelectedSourceFunction
public ghidra.program.model.listing.Function getSelectedSourceFunction()Description copied from interface:FunctionAssociationContext
Gets the source function selected in the table- Specified by:
getSelectedSourceFunction
in interfaceFunctionAssociationContext
- Returns:
- the selected source function or null
-
getSelectionDestinationFunction
public ghidra.program.model.listing.Function getSelectionDestinationFunction()Description copied from interface:FunctionAssociationContext
Gets the destination function selected in the table- Specified by:
getSelectionDestinationFunction
in interfaceFunctionAssociationContext
- Returns:
- the selected destination function or null
-
getExistingMatch
Description copied from interface:FunctionAssociationContext
Gets the match for the source and destination functions if it exists.- Specified by:
getExistingMatch
in interfaceFunctionAssociationContext
- Returns:
- the match or null if there isn't a match.
-
canCreateMatch
public boolean canCreateMatch()Description copied from interface:FunctionAssociationContext
Determines if a function match can be created for the selected source and destination.- Specified by:
canCreateMatch
in interfaceFunctionAssociationContext
- Returns:
- true if the indicated match doesn't currently exist and can be created.
-
getTool
public ghidra.framework.plugintool.PluginTool getTool()- Returns:
- the tool containing the function associations provider.
-