Package ghidra.framework.main
Class SaveDataDialog
java.lang.Object
docking.DialogComponentProvider
ghidra.framework.main.SaveDataDialog
- All Implemented Interfaces:
ActionContextProvider
,StatusListener
,TaskListener
Modal dialog to display a list of domain objects that have changed.
The user can mark the ones to save, or pop up another dialog to save
the files to a different location and/or name.
Read-only files are rendered in red and the checkboxes for these files
cannot be selected.
If the project has changed, then the first checkbox displayed will be
for saving the project configuration.
-
Field Summary
Fields inherited from class docking.DialogComponentProvider
applyButton, buttonPanel, cancelButton, dismissButton, okButton, rootPanel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Gets called when the user clicks on the Cancel Action for the dialog.protected void
Gets called when the user clicks on the OK Action for the dialog.boolean
showDialog
(List<DomainFile> domainFiles) Shows the save dialog with the given domain files, but no options to save the project.Methods inherited from class docking.DialogComponentProvider
addAction, addApplyButton, addButton, addCancelButton, addDismissButton, addOKButton, addWorkPanel, alertMessage, alertMessage, applyCallback, cancelCurrentTask, clearScheduledTask, clearStatusText, close, closeDialog, dialogClosed, dialogShown, dismissCallback, dispose, 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
-
SaveDataDialog
Construct new SaveDataDiaog- Parameters:
tool
- front end tool
-
-
Method Details
-
showDialog
Shows the save dialog with the given domain files, but no options to save the project. The dialog will not appear if there is no data that needs saving.- Parameters:
domainFiles
- The files that may need saving.- Returns:
- true if the user hit the 'Save' or 'Don't Save' option; return false if the user cancelled the operation
-
okCallback
protected void okCallback()Gets called when the user clicks on the OK Action for the dialog.- Overrides:
okCallback
in classDialogComponentProvider
-
cancelCallback
protected void cancelCallback()Gets called when the user clicks on the Cancel Action for the dialog.- Overrides:
cancelCallback
in classDialogComponentProvider
-