X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.document.ui%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Fui%2Factions%2FImportDocumentWithDetail.java;h=be504594417a65b900c5172aeaade7d9da4cc686;hp=091f33e7d931acc87257f5eb1a33821298b4731f;hb=c8e675ae59eebb045a095a07e54462d0fe87f5cb;hpb=8783f9ee2b67f83160d88f43a7aef02a6b25f955 diff --git a/bundles/org.simantics.document.ui/src/org/simantics/document/ui/actions/ImportDocumentWithDetail.java b/bundles/org.simantics.document.ui/src/org/simantics/document/ui/actions/ImportDocumentWithDetail.java index 091f33e7d..be5045944 100644 --- a/bundles/org.simantics.document.ui/src/org/simantics/document/ui/actions/ImportDocumentWithDetail.java +++ b/bundles/org.simantics.document.ui/src/org/simantics/document/ui/actions/ImportDocumentWithDetail.java @@ -74,7 +74,7 @@ public class ImportDocumentWithDetail extends AddDocumentAction { }, e -> { dialog.getAnnotationConfigurator().dispose(); if (e != null) - ExceptionUtils.logAndShowError("Cannot import document.", e); + ExceptionUtils.logAndShowError(Messages.ImportDocumentWithDetail_CannotImportDocument, e); }); } }; @@ -91,8 +91,8 @@ public class ImportDocumentWithDetail extends AddDocumentAction { 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()); }