X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.ui%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fui%2Feditor%2FSCLTextEditorNew.java;h=f66a1b2300144da36529f5b27183323f525fab51;hb=HEAD;hp=190b9390481a28d1598d415276927bae4944754c;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor/SCLTextEditorNew.java b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor/SCLTextEditorNew.java index 190b93904..f66a1b230 100644 --- a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor/SCLTextEditorNew.java +++ b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor/SCLTextEditorNew.java @@ -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)); } }