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 Details

    • CodeComparisonActionContext

      public CodeComparisonActionContext(ComponentProvider provider, CodeComparisonPanel panel, Component component)
      Constructor
      Parameters:
      provider - the ComponentProvider containing the code comparison panel
      panel - the CodeComparisonPanel that generated this context
      component - the focusable component for associated with the comparison panel
  • Method Details

    • getSourceFunction

      public Function 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

      public Function 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