Class CodeComparisonViewState
java.lang.Object
ghidra.features.base.codecompare.panel.CodeComparisonViewState
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSaveState(Class<? extends CodeComparisonView> clazz) voidreadConfigState(SaveState saveState) Called by the tool to load saved state for the comparison providersvoidwriteConfigState(SaveState saveState) Called by the tool to write the panels' saved states into the tools save state
-
Constructor Details
-
CodeComparisonViewState
public CodeComparisonViewState()
-
-
Method Details
-
getSaveState
-
writeConfigState
Called by the tool to write the panels' saved states into the tools save state- Parameters:
saveState- the tool's save state
-
readConfigState
Called by the tool to load saved state for the comparison providers- Parameters:
saveState- the tool's state
-