@Override
	public void valueChanged(ListSelectionEvent e) {
		if (!nameField.getText().startsWith(GhidraScriptConstants.DEFAULT_SCRIPT_NAME)) {
			return;
		}
		try {
			scriptFile = GhidraScriptUtil.createNewScript(provider, getDirectory(),
				componentProvider.getScriptDirectories());
			nameField.setText(scriptFile.getName());
		}
		catch (IOException ioe) {
			scriptFile = null;
			nameField.setText("");
		}
	}
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