private void validate() {

		final String BAD = GhidraProjectUtils.ILLEGAL_FILENAME_CHARS;
		final String BAD_START = GhidraProjectUtils.ILLEGAL_FILENAME_START_CHARS;


		String message = null;
		IFolder scriptFolder = getScriptFolder();
		String scriptName = scriptNameText.getText();


		if (scriptFolder == null) {
			message = "Script folder must be specified";
		}
		else if (!scriptFolder.exists()) {
			message = "Script folder does not exist";
		}
		else if (scriptName.isEmpty()) {
			message = "Script name must be specified";
		}
		else if ((BAD_START + BAD).chars().anyMatch(ch -> scriptName.charAt(0) == ch)) {
			message = "Script name cannot start with an invalid character:\n " + BAD_START + BAD;
		}
		else if (BAD.chars().anyMatch(ch -> scriptName.indexOf(ch) != -1)) {
			message = "Script name cannot contain invalid characters:\n " + BAD;
		}
		else if (scriptFolder.getFile(getScriptName()).exists()) {
			message = "Script already exists";
		}

		setErrorMessage(message);
		setPageComplete(message == null);
	}
Validates the fields on the page and updates the page's status.
Should be called every time a field on the page changes.
GhidraBuild/EclipsePlugins/GhidraDev/GhidraDevPlugin/src/main/java/ghidradev/ghidraprojectcreator/wizards/pages/CreateGhidraScriptWizardPage.java