Package ghidra.framework.main
Class SaveDataDialog
- java.lang.Object
-
- docking.DialogComponentProvider
-
- ghidra.framework.main.SaveDataDialog
-
- All Implemented Interfaces:
ActionContextProvider
,StatusListener
,TaskListener
public class SaveDataDialog extends DialogComponentProvider
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
Constructors Constructor Description SaveDataDialog(PluginTool tool)
Construct new SaveDataDiaog
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cancelCallback()
Gets called when the user clicks on the Cancel Action for the dialog.protected void
okCallback()
Gets called when the user clicks on the OK Action for the dialog.boolean
showDialog(java.util.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, 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
-
SaveDataDialog
public SaveDataDialog(PluginTool tool)
Construct new SaveDataDiaog- Parameters:
tool
- front end tool
-
-
Method Detail
-
showDialog
public boolean showDialog(java.util.List<DomainFile> domainFiles)
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
-
-