Class VTFunctionAssociationCompareContext
java.lang.Object
docking.DefaultActionContext
ghidra.app.context.ProgramActionContext
ghidra.app.context.ProgramLocationActionContext
ghidra.app.context.NavigatableActionContext
ghidra.app.context.ListingActionContext
ghidra.feature.vt.gui.duallisting.VTListingContext
ghidra.feature.vt.gui.provider.functionassociation.VTFunctionAssociationCompareContext
- All Implemented Interfaces:
docking.ActionContext
,ghidra.app.context.FunctionSupplierContext
,ghidra.app.context.NavigationActionContext
,FunctionAssociationContext
,ghidra.features.base.codecompare.panel.CodeComparisonPanelActionContext
public class VTFunctionAssociationCompareContext
extends VTListingContext
implements FunctionAssociationContext
A context for the function association provider's code comparison panel that
will also allow function association table actions.
-
Field Summary
Fields inherited from class ghidra.app.context.ProgramActionContext
program
-
Constructor Summary
ConstructorDescriptionVTFunctionAssociationCompareContext
(docking.ComponentProvider provider, ghidra.app.nav.Navigatable navigatable, 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's code comparison panel that will also allow function association table actions. -
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 tableMethods inherited from class ghidra.feature.vt.gui.duallisting.VTListingContext
getCodeComparisonPanel, setCodeComparisonPanel
Methods inherited from class ghidra.app.context.NavigatableActionContext
getNavigatable
Methods inherited from class ghidra.app.context.ProgramLocationActionContext
getAddress, getCodeUnit, getFunctions, getHighlight, getLocation, getSelection, hasFunctions, hasHighlight, hasSelection
Methods inherited from class ghidra.app.context.ProgramActionContext
getProgram
Methods inherited from class docking.DefaultActionContext
getComponentProvider, getContextObject, getEventClickModifiers, getMouseEvent, getSourceComponent, getSourceObject, hasAnyEventClickModifiers, setContextObject, setEventClickModifiers, setMouseEvent, setSourceComponent, setSourceObject, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface docking.ActionContext
getComponentProvider, getContextObject, getEventClickModifiers, getMouseEvent, getSourceComponent, getSourceObject, hasAnyEventClickModifiers, setContextObject, setEventClickModifiers, setMouseEvent, setSourceComponent, setSourceObject
-
Constructor Details
-
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.
-