]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeScriptDocumentProvider.java
Externalize strings
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / componentTypeEditor / ComponentTypeScriptDocumentProvider.java
index 0425ac149b81187a6ea64913b829506ad2c42cb5..57d0aa69a6bbfdd30e4905aabcb992fb571b9097 100644 (file)
@@ -62,7 +62,7 @@ public class ComponentTypeScriptDocumentProvider extends AbstractDocumentProvide
                     Resource owner = graph.getPossibleObject(resource, STR.ComponentType_hasScript_Inverse);
                     immutable = owner != null && StructuralUtils.isImmutable(graph, owner);
                     errorHappened = false;
-                    return new Document(currentText != null ? currentText : "");
+                    return new Document(currentText != null ? currentText : ""); //$NON-NLS-1$
                 }
             });
         } catch (DatabaseException e) {
@@ -91,7 +91,7 @@ public class ComponentTypeScriptDocumentProvider extends AbstractDocumentProvide
                 synchronized(annotationModel.getLockObject()) {
                     annotationModel.removeAllAnnotations();
                     for(CompilationError error : result.getErrors()) {
-                        Annotation annotation = new Annotation("org.eclipse.ui.workbench.texteditor.error", true, error.description);
+                        Annotation annotation = new Annotation("org.eclipse.ui.workbench.texteditor.error", true, error.description); //$NON-NLS-1$
                         int begin = Locations.beginOf(error.location);
                         int end = Locations.endOf(error.location);
                         Position position = new Position(begin, end - begin);
@@ -115,7 +115,7 @@ public class ComponentTypeScriptDocumentProvider extends AbstractDocumentProvide
     @Override
     protected void doSaveDocument(IProgressMonitor monitor, Object element,
             IDocument document, boolean overwrite) throws CoreException {
-        TimeLogger.resetTimeAndLog(getClass(), "doSaveDocument");
+        TimeLogger.resetTimeAndLog(getClass(), "doSaveDocument"); //$NON-NLS-1$
         currentText = document.get();
         Simantics.getSession().asyncRequest(new WriteRequest() {
             @Override