Package ghidra.app.decompiler.component
Class DualDecompilerActionContext
java.lang.Object
docking.DefaultActionContext
ghidra.app.util.viewer.util.CodeComparisonActionContext
ghidra.app.decompiler.component.DualDecompilerActionContext
- All Implemented Interfaces:
ActionContext,RestrictedAddressSetContext,CodeComparisonPanelActionContext
public class DualDecompilerActionContext
extends CodeComparisonActionContext
implements RestrictedAddressSetContext
Action context for a dual decompiler panel.
-
Constructor Summary
ConstructorsConstructorDescriptionDualDecompilerActionContext(ComponentProvider provider, CDisplayPanel cPanel, Component source) Creates an action context for a dual decompiler panel. -
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
-
DualDecompilerActionContext
public DualDecompilerActionContext(ComponentProvider provider, CDisplayPanel cPanel, Component source) Creates an action context for a dual decompiler panel.- Parameters:
provider- the provider for this contextcPanel- the decompiler panel associated with this contextsource- the source of the action
-
-
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.- Specified by:
getCodeComparisonPanelin interfaceCodeComparisonPanelActionContext- 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
-