]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.ui/src/org/simantics/document/ui/actions/ImportDocumentWithDetail.java
Externalize strings in org.simantics.document.ui
[simantics/platform.git] / bundles / org.simantics.document.ui / src / org / simantics / document / ui / actions / ImportDocumentWithDetail.java
index 091f33e7d931acc87257f5eb1a33821298b4731f..be504594417a65b900c5172aeaade7d9da4cc686 100644 (file)
@@ -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());
        }