Package ghidra.framework.options
Class AutoOptionsListener<R>
java.lang.Object
ghidra.framework.options.AutoOptionsListener<R>
- All Implemented Interfaces:
OptionsChangeListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classprotected static interfaceprotected static enumprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AutoOptionsListener.ReceiverProfile<R> protected static final Map<Class<?>, AutoOptionsListener.ReceiverProfile<?>> protected final Rprotected static final Map<Class<?>, Set<AutoOptionsListener.OptionSetter<?>>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <R> Set<AutoOptionsListener.OptionSetter<R>> collectSettersByReceiver(Class<R> cls, Plugin plugin) voidvoidoptionsChanged(ToolOptions options, String optionName, Object oldValue, Object newValue) Notification that an option changed.
-
Field Details
-
SETTERS_BY_RECEIVER_CLASS
protected static final Map<Class<?>,Set<AutoOptionsListener.OptionSetter<?>>> SETTERS_BY_RECEIVER_CLASS -
PROFILES_BY_RECEIVER_CLASS
protected static final Map<Class<?>,AutoOptionsListener.ReceiverProfile<?>> PROFILES_BY_RECEIVER_CLASS -
receiver
-
profile
-
-
Constructor Details
-
AutoOptionsListener
-
-
Method Details
-
collectSettersByReceiver
protected static <R> Set<AutoOptionsListener.OptionSetter<R>> collectSettersByReceiver(Class<R> cls, Plugin plugin) -
optionsChanged
public void optionsChanged(ToolOptions options, String optionName, Object oldValue, Object newValue) Description copied from interface:OptionsChangeListenerNotification that an option changed.Note: to reject an options change, you can throw a
OptionsVetoException.- Specified by:
optionsChangedin interfaceOptionsChangeListener- Parameters:
options- options object containing the property that changedoptionName- name of option that changedoldValue- old value of the optionnewValue- new value of the option
-
notifyCurrentValues
-
getCategories
-