Package ghidra.app.util
Class AddEditDialog
java.lang.Object
docking.DialogComponentProvider
docking.ReusableDialogComponentProvider
ghidra.app.util.AddEditDialog
- All Implemented Interfaces:
ActionContextProvider
,StatusListener
,TaskListener
Dialog used to a label or to edit an existing label.
-
Nested Class Summary
-
Field Summary
Fields inherited from class docking.DialogComponentProvider
applyButton, buttonPanel, cancelButton, dismissButton, okButton, rootPanel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Invokes the dialog to add a new label in the given program at the given addressvoid
close()
void
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
Invokes the dialog to edit an existing label in the given programprotected void
The callback method for when the "OK" button is pressed.void
setReusable
(boolean isReusable) Signals that the client wishes to reuse the dialog instead of creating a new instance each time the dialog is shown.Methods inherited from class docking.ReusableDialogComponentProvider
dispose
Methods inherited from class docking.DialogComponentProvider
addAction, addApplyButton, addButton, addCancelButton, addDismissButton, addOKButton, addWorkPanel, alertMessage, alertMessage, applyCallback, cancelCallback, cancelCurrentTask, clearScheduledTask, clearStatusText, closeDialog, dialogClosed, dialogShown, dismissCallback, doInitialize, escapeCallback, executeProgressTask, getActionContext, getActions, getBackground, getBounds, getComponent, getDefaultButton, getDefaultSize, getDialogSize, getFocusComponent, getGlassPane, getHelpLocation, getId, getInitialLocation, getLocationOnScreen, getParent, getPreferredSize, getRememberLocation, getRememberSize, getStatusColor, getStatusLabel, getStatusText, getTaskMonitorComponent, getTaskScheduler, getTitle, getUseSharedLocation, hideTaskMonitorComponent, isApplyEnabled, isCancelEnabled, isModal, isOKEnabled, isResizeable, isRunningTask, isShowing, isTransient, isVisible, notifyContextChanged, removeAction, removeButton, removeWorkPanel, repack, setAccessibleDescription, 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 Details
-
AddEditDialog
-
-
Method Details
-
setReusable
public void setReusable(boolean isReusable) Signals that the client wishes to reuse the dialog instead of creating a new instance each time the dialog is shown.When not reusable, closing this dialog will call
ReusableDialogComponentProvider.dispose()
.- Parameters:
isReusable
- true when being reused
-
close
public void close()- Overrides:
close
in classReusableDialogComponentProvider
-
addLabel
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
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
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
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
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
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
-