Interface OptionsChangeListener

All Known Implementing Classes:
ghidra.app.plugin.core.hover.AbstractConfigurableHover, ghidra.app.plugin.core.hover.AbstractReferenceHover, ghidra.app.plugin.core.hover.AbstractScalarOperandHover, BrowserCodeUnitFormatOptions, ConsoleTextPane, DataTypeDecompilerHover, DefaultGraphDisplayOptions, FormatManager, FrontEndTool, FunctionSignatureDecompilerHover, GraphDisplayOptions, JythonPlugin, ListingCodeComparisonPanel, 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 Type
    Method
    Description
    void
    optionsChanged(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 changed
      optionName - name of option that changed
      oldValue - old value of the option
      newValue - new value of the option
      Throws:
      OptionsVetoException - if a change is rejected