setErrorMessage("Name must not start with number");
return false;
}
String fileName = textField + ".cls";
String metaName = textField + ".cls-meta.xml";
IStatus status = v.validateName(fileName, 0); //type didn't seem to matter, so just used 0
if (status.getCode() != IStatus.OK) {
setErrorMessage("Creating a file name of " + fileName + " is invalid because: " + status.getMessage());
return false;
}
status = v.validateName(metaName, 0); //type didn't seem to matter, so just used 0