Class SaveToolConfigDialog
- java.lang.Object
-
- docking.DialogComponentProvider
-
- ghidra.framework.plugintool.dialog.SaveToolConfigDialog
-
- All Implemented Interfaces:
ActionContextProvider
,StatusListener
,TaskListener
,java.util.EventListener
,javax.swing.event.ListSelectionListener
public class SaveToolConfigDialog extends DialogComponentProvider implements javax.swing.event.ListSelectionListener
Shows the modal dialog to save tool configuration to the current name or to a new name.
-
-
Field Summary
-
Fields inherited from class docking.DialogComponentProvider
applyButton, cancelButton, dismissButton, okButton, rootPanel
-
-
Constructor Summary
Constructors Constructor Description SaveToolConfigDialog(PluginTool tool, ToolServices toolServices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.swing.JPanel
buildMainPanel()
Define the Main panel for the dialog here.protected void
cancelCallback()
Invoked when the 'Cancel' button is clickedboolean
didCancel()
void
show(java.lang.String name, java.lang.String newDefaultName)
Display the "Save Tool Configuration As..." dialog; blocks until user hits the "Cancel" button.void
valueChanged(javax.swing.event.ListSelectionEvent e)
Listener for the icon list.-
Methods inherited from class docking.DialogComponentProvider
addAction, addApplyButton, addButton, addCancelButton, addDismissButton, addOKButton, addWorkPanel, alertMessage, alertMessage, applyCallback, cancelCurrentTask, clearScheduledTask, clearStatusText, close, dialogClosed, dialogShown, dismissCallback, doInitialize, escapeCallback, executeProgressTask, getActionContext, getActions, getBackground, getBounds, getComponent, getDefaultButton, getDefaultSize, getDialogSize, getFocusComponent, getGlassPane, getHelpLocatdion, getIntialLocation, getLocationOnScreen, getPreferredSize, getRemberSize, getRememberLocation, getStatusLabel, getStatusText, getTaskMonitorComponent, getTaskScheduler, getTitle, getUseSharedLocation, hideTaskMonitorComponent, isApplyEnabled, isCancelEnabled, isModal, isOKEnabled, isResizeable, isRunningTask, isShowing, isTransient, isVisible, main, notifyContextChanged, okCallback, 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
-
SaveToolConfigDialog
public SaveToolConfigDialog(PluginTool tool, ToolServices toolServices)
-
-
Method Detail
-
buildMainPanel
protected javax.swing.JPanel buildMainPanel()
Define the Main panel for the dialog here.- Returns:
- JPanel the completed Main Panel
-
show
public void show(java.lang.String name, java.lang.String newDefaultName)
Display the "Save Tool Configuration As..." dialog; blocks until user hits the "Cancel" button.- Parameters:
name
- original name for the tool
-
valueChanged
public void valueChanged(javax.swing.event.ListSelectionEvent e)
Listener for the icon list.- Specified by:
valueChanged
in interfacejavax.swing.event.ListSelectionListener
-
cancelCallback
protected void cancelCallback()
Invoked when the 'Cancel' button is clicked- Overrides:
cancelCallback
in classDialogComponentProvider
-
didCancel
public boolean didCancel()
-
-