]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor/SCLTextEditorNew.java
Externalize strings in org.simantics.scl.ui
[simantics/platform.git] / bundles / org.simantics.scl.ui / src / org / simantics / scl / ui / editor / SCLTextEditorNew.java
index 190b9390481a28d1598d415276927bae4944754c..f66a1b2300144da36529f5b27183323f525fab51 100644 (file)
@@ -51,9 +51,9 @@ public class SCLTextEditorNew extends Composite {
         OverviewRuler rightRuler = 
             new OverviewRuler(annotationAccess, 12, sharedTextColors);
         rightRuler.setModel(annotationModel);
-        rightRuler.addAnnotationType("error");
-        rightRuler.setAnnotationTypeLayer("error", 0);
-        rightRuler.setAnnotationTypeColor("error", sharedTextColors.getColor(new RGB(255,0,128)));
+        rightRuler.addAnnotationType("error"); //$NON-NLS-1$
+        rightRuler.setAnnotationTypeLayer("error", 0); //$NON-NLS-1$
+        rightRuler.setAnnotationTypeColor("error", sharedTextColors.getColor(new RGB(255,0,128))); //$NON-NLS-1$
         
         viewer = new SourceViewer(this, 
                 leftRuler, rightRuler,
@@ -71,8 +71,8 @@ public class SCLTextEditorNew extends Composite {
         // Annotations to text area
         AnnotationPainter annotationPainter = 
             new AnnotationPainter(viewer, annotationAccess);        
-        annotationPainter.addAnnotationType("error");
-        annotationPainter.setAnnotationTypeColor("error", sharedTextColors.getColor(new RGB(255,0,128)));
+        annotationPainter.addAnnotationType("error"); //$NON-NLS-1$
+        annotationPainter.setAnnotationTypeColor("error", sharedTextColors.getColor(new RGB(255,0,128))); //$NON-NLS-1$
         viewer.addPainter(annotationPainter);
         annotationModel.addAnnotationModelListener(annotationPainter);
         
@@ -128,7 +128,7 @@ public class SCLTextEditorNew extends Composite {
                     ++end;
             }
             annotationModel.addAnnotation(
-                    new Annotation("error", true, error.description), 
+                    new Annotation("error", true, error.description),  //$NON-NLS-1$
                     new Position(begin, end-begin));   
         }
     }