Class CodeComparisonViewState

java.lang.Object
ghidra.features.base.codecompare.panel.CodeComparisonViewState

public class CodeComparisonViewState extends Object
A state object to save settings each type of comparison view known by the system. This class is meant to be used to allow user settings to be applied to each new comparison widget that is created. Also, the class allows the tool to save those settings when the tool is saved.

When a comparison provider updates its save state object, it should call PluginTool.setConfigChanged(boolean) so that tool knows there are settings to be saved.

  • Constructor Details

    • CodeComparisonViewState

      public CodeComparisonViewState()
  • Method Details

    • getSaveState

      public SaveState getSaveState(Class<? extends CodeComparisonView> clazz)
    • writeConfigState

      public void writeConfigState(SaveState saveState)
      Called by the tool to write the panels' saved states into the tools save state
      Parameters:
      saveState - the tool's save state
    • readConfigState

      public void readConfigState(SaveState saveState)
      Called by the tool to load saved state for the comparison providers
      Parameters:
      saveState - the tool's state