public void stateChanged(ChangeEvent e) {
if (descriptor == null || panel == null) {
return;
}
String childThemeName = getPanel().getChildDirectoryName();
WordPressDirectoryNameValidator validator = new WordPressDirectoryNameValidator();
ValidationResult result = validator.validateName(childThemeName)
.validateExistingName(childThemeName, themes)
.getResult();
// errors
List<ValidationResult.Message> errors = result.getErrors();