Class DualListingActionContext
java.lang.Object
docking.DefaultActionContext
ghidra.app.util.viewer.util.CodeComparisonActionContext
ghidra.app.util.viewer.listingpanel.DualListingActionContext
- All Implemented Interfaces:
ActionContext,CodeComparisonPanelActionContext
Action context for a ListingCodeComparisonPanel.
-
Constructor Summary
ConstructorsConstructorDescriptionDualListingActionContext(ComponentProvider provider) Constructor for a dual listing's action context. -
Method Summary
Modifier and TypeMethodDescriptionCodeComparisonPanel<? extends FieldPanelCoordinator>Gets the CodeComparisonPanel associated with this context.Returns the function that is the source of the info being applied.Returns the function that is the target of the info being applied.voidsetCodeComparisonPanel(CodeComparisonPanel<? extends FieldPanelCoordinator> codeComparisonPanel) Sets the CodeComparisonPanel associated with this context.Methods inherited from class docking.DefaultActionContext
getComponentProvider, getContextObject, getEventClickModifiers, getMouseEvent, getSourceComponent, getSourceObject, hasAnyEventClickModifiers, setContextObject, setEventClickModifiers, setMouseEvent, setSourceObject, toString
-
Constructor Details
-
DualListingActionContext
Constructor for a dual listing's action context.- Parameters:
provider- the provider that uses this action context.
-
-
Method Details
-
setCodeComparisonPanel
public void setCodeComparisonPanel(CodeComparisonPanel<? extends FieldPanelCoordinator> codeComparisonPanel) Sets the CodeComparisonPanel associated with this context.- Parameters:
codeComparisonPanel- the code comparison panel
-
getCodeComparisonPanel
Description copied from interface:CodeComparisonPanelActionContextGets the CodeComparisonPanel associated with this context.- Returns:
- the code comparison panel.
-
getSourceFunction
Description copied from class:CodeComparisonActionContextReturns the function that is the source of the info being applied. This will be whichever side of the function diff window that isn't active.- Specified by:
getSourceFunctionin classCodeComparisonActionContext- Returns:
- the function to get information from
-
getTargetFunction
Description copied from class:CodeComparisonActionContextReturns the function that is the target of the info being applied. This will be whichever side of the function diff window that is active.- Specified by:
getTargetFunctionin classCodeComparisonActionContext- Returns:
- the function to apply information to
-