Package ghidra.app.util
Class AddEditDialog
- java.lang.Object
-
- docking.DialogComponentProvider
-
- ghidra.app.util.AddEditDialog
-
- All Implemented Interfaces:
ActionContextProvider
,StatusListener
,TaskListener
public class AddEditDialog extends DialogComponentProvider
Dialog used to a label or to edit an existing label.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AddEditDialog.NamespaceWrapper
-
Field Summary
-
Fields inherited from class docking.DialogComponentProvider
applyButton, buttonPanel, cancelButton, dismissButton, okButton, rootPanel
-
-
Constructor Summary
Constructors Constructor Description AddEditDialog(java.lang.String title, PluginTool tool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLabel(Address address, Program prog)
Invokes the dialog to add a new label in the given program at the given addressvoid
addLabel(Address address, Program targetProgram, ComponentProvider provider)
Invokes the dialog to add a new label in the given program at the given addressvoid
addLabel(Address address, Program targetProgram, java.awt.Component centeredOverComponent)
Invokes the dialog to add a new label in the given program at the given addressvoid
editLabel(Symbol targetSymbol, Program targetProgram)
Invokes the dialog to edit an existing label in the given programvoid
editLabel(Symbol targetSymbol, Program targetProgram, ComponentProvider provider)
Invokes the dialog to edit an existing label in the given programvoid
editLabel(Symbol targetSymbol, Program targetProgram, java.awt.Component centeredOverComponent)
Invokes the dialog to edit an existing label in the given programprotected void
okCallback()
The callback method for when the "OK" button is pressed.-
Methods inherited from class docking.DialogComponentProvider
addAction, addApplyButton, addButton, addCancelButton, addDismissButton, addOKButton, addWorkPanel, alertMessage, alertMessage, applyCallback, cancelCallback, cancelCurrentTask, clearScheduledTask, clearStatusText, close, dialogClosed, dialogShown, dismissCallback, dispose, doInitialize, escapeCallback, executeProgressTask, getActionContext, getActions, getBackground, getBounds, getComponent, getDefaultButton, getDefaultSize, getDialogSize, getFocusComponent, getGlassPane, getHelpLocatdion, getId, getIntialLocation, getLocationOnScreen, getParent, getPreferredSize, getRemberSize, getRememberLocation, getStatusColor, getStatusLabel, getStatusText, getTaskMonitorComponent, getTaskScheduler, getTitle, getUseSharedLocation, hideTaskMonitorComponent, isApplyEnabled, isCancelEnabled, isModal, isOKEnabled, isResizeable, isRunningTask, isShowing, isTransient, isVisible, notifyContextChanged, removeAction, removeButton, removeWorkPanel, repack, setApplyEnabled, setApplyToolTip, setBackground, setCancelButtonText, setCancelEnabled, setCancelToolTip, setCursor, setDefaultButton, setDefaultSize, setDialogSize, setDismissToolTip, setFocusComponent, setGlassPane, setHelpLocation, setInitialLocation, setMinimumSize, setMinimumSize, setOkButtonText, setOkEnabled, setOkToolTip, setPreferredSize, setRememberLocation, setRememberSize, setResizable, setStatusJustification, setStatusText, setStatusText, setStatusText, setTitle, setTransient, setUseSharedLocation, showProgressBar, showTaskMonitorComponent, stopProgressTimer, taskCancelled, taskCompleted, toFront, toString, waitForCurrentTask
-
-
-
-
Constructor Detail
-
AddEditDialog
public AddEditDialog(java.lang.String title, PluginTool tool)
-
-
Method Detail
-
addLabel
public void addLabel(Address address, Program prog)
Invokes the dialog to add a new label in the given program at the given address- Parameters:
address
- the address at which to add a new labelprog
- the program in which to add a new label
-
addLabel
public void addLabel(Address address, Program targetProgram, ComponentProvider provider)
Invokes the dialog to add a new label in the given program at the given address- Parameters:
address
- the address at which to add a new labeltargetProgram
- the program in which to add a new labelprovider
- the ComponentProvider to parent and center the dialog over.
-
addLabel
public void addLabel(Address address, Program targetProgram, java.awt.Component centeredOverComponent)
Invokes the dialog to add a new label in the given program at the given address- Parameters:
address
- the address at which to add a new labeltargetProgram
- the program in which to add a new labelcenteredOverComponent
- the component over which to center the dialog
-
editLabel
public void editLabel(Symbol targetSymbol, Program targetProgram)
Invokes the dialog to edit an existing label in the given program- Parameters:
targetSymbol
- the symbol(label) to edittargetProgram
- the program containing the symbol
-
editLabel
public void editLabel(Symbol targetSymbol, Program targetProgram, java.awt.Component centeredOverComponent)
Invokes the dialog to edit an existing label in the given program- Parameters:
targetSymbol
- the symbol(label) to edittargetProgram
- the program containing the symbolcenteredOverComponent
- the component over which to center the dialog
-
editLabel
public void editLabel(Symbol targetSymbol, Program targetProgram, ComponentProvider provider)
Invokes the dialog to edit an existing label in the given program- Parameters:
targetSymbol
- the symbol(label) to edittargetProgram
- the program containing the symbolprovider
- the ComponentProvider to parent and center the dialog over.
-
okCallback
protected void okCallback()
Description copied from class:DialogComponentProvider
The callback method for when the "OK" button is pressed.- Overrides:
okCallback
in classDialogComponentProvider
-
-