Class CodeComparisonActionContext
java.lang.Object
docking.DefaultActionContext
ghidra.features.base.codecompare.panel.CodeComparisonActionContext
- All Implemented Interfaces:
ActionContext
,CodeComparisonPanelActionContext
- Direct Known Subclasses:
ListingComparisonActionContext
public abstract class CodeComparisonActionContext
extends DefaultActionContext
implements CodeComparisonPanelActionContext
-
Constructor Summary
ConstructorDescriptionCodeComparisonActionContext
(ComponentProvider provider, CodeComparisonPanel panel, Component component) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the function that is the source of the info being applied.Returns the function that is the target of the info being applied.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 ghidra.features.base.codecompare.panel.CodeComparisonPanelActionContext
getCodeComparisonPanel
-
Constructor Details
-
CodeComparisonActionContext
public CodeComparisonActionContext(ComponentProvider provider, CodeComparisonPanel panel, Component component) Constructor- Parameters:
provider
- the ComponentProvider containing the code comparison panelpanel
- the CodeComparisonPanel that generated this contextcomponent
- the focusable component for associated with the comparison panel
-
-
Method Details
-
getSourceFunction
Returns 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.- Returns:
- the function to get information from
-
getTargetFunction
Returns the function that is the target of the info being applied. This will be whichever side of the function diff window that is active.- Returns:
- the function to apply information to
-