/** * Check that the PYTHON name is specified * * @param value The value to check */ public FormValidation doCheckName(@QueryParameter String value) { // Trim name String name = Util.fixEmptyAndTrim(value); // Check that folder specified if (name == null) // Folder is required return FormValidation.error(Messages.PythonInstallation_Name_Required()); // Check that path does not contains some whitespace chars if (StringUtil.hasWhitespace(name)) // Whitespace are not allowed return FormValidation.error(Messages.PythonInstallation_Name_WhitespaceNotAllowed()); // Seems fine return FormValidation.ok(); }