File preFile = new File(preFilePath);
if (preFile.exists() == false || StringUtils.isEmpty(preFilePath)) {
printErrorDialog("The preprocessing file was not found!");
return null;
}
TypeSystemDescription defaultTypeSystemDescription = null;
List<String> types = new ArrayList<String>();
try {
String tsDesc = RutaProjectUtils.getTypeSystemDescriptorPath(location,
resource.getProject()).toPortableString();
defaultTypeSystemDescription = UIMAFramework.getXMLParser().parseTypeSystemDescription(
new XMLInputSource(new File(tsDesc)));
defaultTypeSystemDescription.resolveImports();
TypeDescription[] systemTypes = defaultTypeSystemDescription.getTypes();
for (TypeDescription typeDescription : systemTypes) {
types.add(typeDescription.getName());
}
Collections.sort(types);
} catch (InvalidXMLException e) {