Class SpecExtensionEditor
- java.lang.Object
-
- ghidra.app.plugin.processors.sleigh.SpecExtensionEditor
-
- All Implemented Interfaces:
OptionsEditor
,java.beans.PropertyChangeListener
,java.util.EventListener
public class SpecExtensionEditor extends java.lang.Object implements OptionsEditor, java.beans.PropertyChangeListener
-
-
Constructor Summary
Constructors Constructor Description SpecExtensionEditor(ProgramDB program)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply()
Apply the changes.void
cancel()
Cancel the changes.void
dispose()
Dispose this editorjavax.swing.JComponent
getEditorComponent(Options options, EditorStateFactory editorStateFactory)
Get the editor component.void
propertyChange(java.beans.PropertyChangeEvent evt)
void
reload()
A signal to reload the GUI widgets in the component created by this editor.void
setOptionsPropertyChangeListener(java.beans.PropertyChangeListener listener)
Sets the options change listener
-
-
-
Constructor Detail
-
SpecExtensionEditor
public SpecExtensionEditor(ProgramDB program)
-
-
Method Detail
-
apply
public void apply() throws InvalidInputException
Description copied from interface:OptionsEditor
Apply the changes.- Specified by:
apply
in interfaceOptionsEditor
- Throws:
InvalidInputException
-
cancel
public void cancel()
Description copied from interface:OptionsEditor
Cancel the changes.- Specified by:
cancel
in interfaceOptionsEditor
-
reload
public void reload()
Description copied from interface:OptionsEditor
A signal to reload the GUI widgets in the component created by this editor. This will happen when the options change out from under the editor, such as when the user restores the default options values.- Specified by:
reload
in interfaceOptionsEditor
-
setOptionsPropertyChangeListener
public void setOptionsPropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface:OptionsEditor
Sets the options change listener- Specified by:
setOptionsPropertyChangeListener
in interfaceOptionsEditor
-
getEditorComponent
public javax.swing.JComponent getEditorComponent(Options options, EditorStateFactory editorStateFactory)
Description copied from interface:OptionsEditor
Get the editor component.- Specified by:
getEditorComponent
in interfaceOptionsEditor
- Parameters:
options
- The editable options that for which a GUI component will be creatededitorStateFactory
- The factory that will provide state objects this options editor
-
dispose
public void dispose()
Description copied from interface:OptionsEditor
Dispose this editor- Specified by:
dispose
in interfaceOptionsEditor
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
-