}, e -> {
dialog.getAnnotationConfigurator().dispose();
if (e != null)
- ExceptionUtils.logAndShowError("Cannot import document.", e);
+ ExceptionUtils.logAndShowError(Messages.ImportDocumentWithDetail_CannotImportDocument, e);
});
}
};
public static Resource importDocumentWithDetailSCL(WriteGraph graph, Resource target, String filename) throws FileNotFoundException, DatabaseException {
File file = new File(filename);
if (!file.exists())
- throw new FileNotFoundException("File not found - " + file.getAbsolutePath());
- ImportDocumentWithDetail document = new ImportDocumentWithDetail(graph, "http://www.simantics.org/Layer0-1.1/ConsistsOf");
+ throw new FileNotFoundException("File not found - " + file.getAbsolutePath()); //$NON-NLS-1$
+ ImportDocumentWithDetail document = new ImportDocumentWithDetail(graph, "http://www.simantics.org/Layer0-1.1/ConsistsOf"); //$NON-NLS-1$
return document.doDocumentImport(graph, target, filename, file.getName());
}