Interface OptionsChangeListener
- All Known Implementing Classes:
ghidra.app.plugin.core.hover.AbstractConfigurableHover, ghidra.app.plugin.core.hover.AbstractReferenceHover, ghidra.app.plugin.core.hover.AbstractScalarOperandHover, AutoOptionsListener, BrowserCodeUnitFormatOptions, ConsoleTextPane, DataTypeDecompilerHover, DefaultGraphDisplayOptions, FormatManager, FrontEndTool, FunctionSignatureDecompilerHover, GraphDisplayOptions, JythonPlugin, ListingCodeComparisonView, OptionsManager, ProgramBigListingModel, ProgramGraphDisplayOptions, ReferenceDecompilerHover, ScalarValueDecompilerHover, SharedStubKeyBindingAction, SymbolInspector, TestFrontEndTool
public interface OptionsChangeListener
Interface for notifying listeners when options change.
Register with ToolOptions.addOptionsChangeListener(OptionsChangeListener).
-
Method Summary
Modifier and TypeMethodDescriptionvoidoptionsChanged(ToolOptions options, String optionName, Object oldValue, Object newValue) Notification that an option changed.
-
Method Details
-
optionsChanged
void optionsChanged(ToolOptions options, String optionName, Object oldValue, Object newValue) throws OptionsVetoException Notification that an option changed.Note: to reject an options change, you can throw a
OptionsVetoException.- Parameters:
options- options object containing the property that changedoptionName- name of option that changedoldValue- old value of the optionnewValue- new value of the option- Throws:
OptionsVetoException- if a change is rejected
-