]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/SymbolDropHandlerDocumentProvider.java
Externalize strings
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / componentTypeEditor / SymbolDropHandlerDocumentProvider.java
index 48c258d4737ec0c26aeb153b0b1d1bfc92795f3a..ce8cef894ec3c81391de8f45545ba84705b04554 100644 (file)
@@ -72,7 +72,7 @@ public class SymbolDropHandlerDocumentProvider extends SCLModuleEditorDocumentPr
                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 SymbolDropHandlerDocumentProvider extends SCLModuleEditorDocumentPr
             @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.SymbolDropHandlerDocumentProvider_ActivatorInternalError, t));
             }
 
             @Override
@@ -116,7 +116,7 @@ public class SymbolDropHandlerDocumentProvider extends SCLModuleEditorDocumentPr
     @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 SymbolDropHandlerDocumentProvider extends SCLModuleEditorDocumentPr
                        ModelingResources MOD = ModelingResources.getInstance(graph);
                        Resource newValue = graph.newResource();
                        graph.claim(newValue, L0.InstanceOf, MOD.SCLValue);
-                       graph.claimLiteral(newValue, L0.HasValueType, "[WorkbenchSelectionElement] -> <WriteGraph,Proc> ()", Bindings.STRING);
+                       graph.claimLiteral(newValue, L0.HasValueType, "[WorkbenchSelectionElement] -> <WriteGraph,Proc> ()", Bindings.STRING); //$NON-NLS-1$
                        graph.claimLiteral(newValue, L0.SCLValue_expression, currentText, Bindings.STRING);
                        
                        Layer0Utils.assert_(graph, resource, DIA.symbolDropHandler, newValue);