use of com.intellij.ide.util.projectWizard.WizardInputField in project intellij-community by JetBrains.
the class TemplateProjectDirectoryGenerator method validate.
@NotNull
@Override
public ValidationResult validate(@NotNull String baseDirPath) {
String message = "Invalid settings";
for (WizardInputField field : myTemplate.getInputFields()) {
try {
if (field.validate()) {
continue;
}
} catch (ConfigurationException e) {
message = e.getMessage();
}
return new ValidationResult(message);
}
ValidationResult result = myTemplate.validate(baseDirPath);
if (result != null) {
return result;
}
return ValidationResult.OK;
}
Aggregations