Class FunctionComparisonState
java.lang.Object
ghidra.features.base.codecompare.panel.FunctionComparisonState
An object to share config state between providers and all views within those providers.
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 TypeMethodDescriptionvoidaddUpdateCallback(Callback callback) Adds a callback to this state that is notified when this state changes.Returns the state object for the providerReturns the save state object for the views that live inside a providervoidreadConfigState(SaveState saveState) voidSignals to the tool that there are changes to the config state that can be saved.voidwriteConfigState(SaveState saveState)
-
Constructor Details
-
FunctionComparisonState
-
-
Method Details
-
getPanelState
Returns the state object for the provider- Returns:
- the state object for the provider
-
getViewState
Returns the save state object for the views that live inside a provider- Returns:
- the state
-
setChanged
public void setChanged()Signals to the tool that there are changes to the config state that can be saved. -
writeConfigState
-
readConfigState
-
addUpdateCallback
Adds a callback to this state that is notified when this state changes.- Parameters:
callback- the callback
-