throw new CoreException(s);
}
if (DocumentFormat.XCAS.equals(format)) {
XCASDeserializer dezerializer = new XCASDeserializer(mTypeSystem);
try {
saxParser.parse(content, dezerializer.getXCASHandler(mCAS));
} catch (IOException e) {
String message = e.getMessage() != null ? e.getMessage() : "";
IStatus s = new Status(IStatus.ERROR, CasEditorPlugin.ID, IStatus.OK, message, e);
throw new CoreException(s);
} catch (SAXException e) {
String message = e.getMessage() != null ? e.getMessage() : "";
IStatus s = new Status(IStatus.ERROR, CasEditorPlugin.ID, IStatus.OK, message, e);
throw new CoreException(s);
}
} else if (DocumentFormat.XMI.equals(format)) {
XmiCasDeserializer dezerializer = new XmiCasDeserializer(mTypeSystem);
try {
saxParser.parse(content, dezerializer.getXmiCasHandler(mCAS));
} catch (IOException e) {
String message = e.getMessage() != null ? e.getMessage() : "";
IStatus s = new Status(IStatus.ERROR, CasEditorPlugin.ID, IStatus.OK, message, e);