Class CodeComparisonActionContext
java.lang.Object
docking.DefaultActionContext
ghidra.features.base.codecompare.panel.CodeComparisonActionContext
- All Implemented Interfaces:
ActionContext,CodeComparisonViewActionContext
- Direct Known Subclasses:
ListingComparisonActionContext
public abstract class CodeComparisonActionContext
extends DefaultActionContext
implements CodeComparisonViewActionContext
-
Constructor Summary
ConstructorsConstructorDescriptionCodeComparisonActionContext(ComponentProvider provider, CodeComparisonView comparisonProvider, 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ghidra.features.base.codecompare.panel.CodeComparisonViewActionContext
getCodeComparisonView
-
Constructor Details
-
CodeComparisonActionContext
public CodeComparisonActionContext(ComponentProvider provider, CodeComparisonView comparisonProvider, Component component) Constructor- Parameters:
provider- the ComponentProvider containing the code comparison panelcomparisonProvider- the provider 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
-