in uimaj-ep-cev/src/main/java/org/apache/uima/cev/editor/CEVViewer.java [268:295]
private void createCAS(FileEditorInput inputFile) throws PartInitException {
this.inputFile = inputFile;
try {
IFile file = null;
for (ICEVSearchStrategy each : searchStrategies) {
try {
file = each.searchDescriptor(inputFile.getFile());
} catch (Exception e) {
}
if (file != null) {
break;
}
}
if (file != null) {
casDocument = new CEVDocument(file, inputFile.getFile());
}
} catch (IllegalArgumentException e) {
throw new PartInitException(e.getMessage());
} catch (IOException e) {
throw new PartInitException(e.getMessage());
} catch (InvalidXMLException e) {
throw new PartInitException(e.getMessage());
} catch (SAXException e) {
throw new PartInitException(e.getMessage());
} catch (ResourceInitializationException e) {
throw new PartInitException(e.getMessage());
}
}