]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagram/monitor/MonitorListener.java
Externalize strings
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / diagram / monitor / MonitorListener.java
index 076c97f8747ca38ed04f772698bb0ef24b0f7c57..21c13a2985deee34ee43cc45e5058b637492ceb3 100644 (file)
@@ -42,13 +42,13 @@ public class MonitorListener implements Listener<MonitorVariableValue>, Runnable
 
     public MonitorListener(Resource element, ICanvasContext canvas, IDiagram diagram, Map<String, String> substitutions) {
         if (element == null)
-            throw new NullPointerException("null element");
+            throw new NullPointerException("null element"); //$NON-NLS-1$
         if (canvas == null)
-            throw new NullPointerException("null canvas");
+            throw new NullPointerException("null canvas"); //$NON-NLS-1$
         if (diagram == null)
-            throw new NullPointerException("null diagram");
+            throw new NullPointerException("null diagram"); //$NON-NLS-1$
         if (substitutions == null)
-            throw new NullPointerException("null substitutions");
+            throw new NullPointerException("null substitutions"); //$NON-NLS-1$
         this.element = element;
         this.canvas = canvas;
         this.diagram = diagram;
@@ -118,12 +118,12 @@ public class MonitorListener implements Listener<MonitorVariableValue>, Runnable
         // finished.
         MonitorVariableValue result = lastScheduledUpdate.getAndSet(null);
 
-        String value = "<no variable>";
+        String value = "<no variable>"; //$NON-NLS-1$
         if (result != null) {
             if (result.getValue() != null) {
                 value = result.getValue();//ValueFormatUtil.valueStr(result.getValue(), format);
             } else {
-                value = "<no value>";
+                value = "<no value>"; //$NON-NLS-1$
             }
             el.setHint(MonitorClass.KEY_MONITOR_COMPONENT, result.getMonitorVariable().getMonitorComponent());
             ElementUtils.setOrRemoveHint(el, MonitorClass.KEY_MONITOR_IS_EXTERNAL, result.getMonitorVariable().isExternal());
@@ -132,7 +132,7 @@ public class MonitorListener implements Listener<MonitorVariableValue>, Runnable
             el.removeHint(MonitorClass.KEY_MONITOR_IS_EXTERNAL);
         }
 
-        substitutions.put("#v1", value);
+        substitutions.put("#v1", value); //$NON-NLS-1$
 
         final Map<String, String> subs = el.getHint(MonitorClass.KEY_MONITOR_SUBSTITUTIONS);
         if (substitutions != subs)