@Override
	protected void okCallback() {
		if (paths.size() != 0 && listPanel.getSelectedIndex() == -1) {
			setStatusText("Please select a directory.");
			return;
		}
		if (nameField.getText().length() == 0) {
			setStatusText("Please enter a file name.");
			return;
		}
		if (nameField.getText().length() > 100) {
			setStatusText("File name is too long.");
			return;
		}

		String errorMessage = getDuplicateNameErrorMessage(nameField.getText());
		if (errorMessage != null) {
			setStatusText(errorMessage);
			return;
		}

		close();
	}
Only called directly from testing!

@param parent parent component
@param title dialog title
@param componentProvider the provider
@param scriptDirs list of directories to give as options when saving
@param scriptFile the default save location
@param scriptProvider the {@link GhidraScriptProvider}
@param help contextual help, e.g. for rename or save
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/script/SaveDialog.java