]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/SymbolCodeDocumentProvider2.java
Externalize strings
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / componentTypeEditor / SymbolCodeDocumentProvider2.java
index 9c9ebfe9e95b90c1f1dcd6e6effa8965e485838d..ddfb3d127add6c140158aae02eabf7bddbbe45b6 100644 (file)
@@ -72,7 +72,7 @@ public class SymbolCodeDocumentProvider2 extends SCLModuleEditorDocumentProvider
                errorHappened = false;
                return graph.getRelatedValue(text, L0.SCLValue_expression, Bindings.STRING);
        }
-       return "";
+       return ""; //$NON-NLS-1$
     }
 
     protected void updateAnnotations() {
@@ -103,7 +103,7 @@ public class SymbolCodeDocumentProvider2 extends SCLModuleEditorDocumentProvider
             @Override
             public void exception(Throwable t) {
                 Activator.getDefault().getLog().log(
-                        new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Internal error in procedural user component code compilation.", t));
+                        new Status(IStatus.ERROR, Activator.PLUGIN_ID, Messages.SymbolCodeDocumentProvider2_ActivatorInternalErrorInCodeCompilation, t));
             }
 
             @Override
@@ -116,7 +116,7 @@ public class SymbolCodeDocumentProvider2 extends SCLModuleEditorDocumentProvider
     @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
@@ -130,7 +130,7 @@ public class SymbolCodeDocumentProvider2 extends SCLModuleEditorDocumentProvider
                        ModelingResources MOD = ModelingResources.getInstance(graph);
                        Resource newValue = graph.newResource();
                        graph.claim(newValue, L0.InstanceOf, MOD.SCLValue);
-                       graph.claimLiteral(newValue, L0.HasValueType, "[String]", Bindings.STRING);
+                       graph.claimLiteral(newValue, L0.HasValueType, "[String]", Bindings.STRING); //$NON-NLS-1$
                        graph.claimLiteral(newValue, L0.SCLValue_expression, currentText, Bindings.STRING);
                        
                        Layer0Utils.assert_(graph, resource, DIA.symbolCode, newValue);