X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.ui%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fui%2Feditor2%2FSCLAnnotationModel.java;h=43e4a80a0b80d8d91cf65120a286700970ae0587;hb=9712014e959584157b02e594be8719c151b8f5b0;hp=2a04c41cf1f1169721208c0eabce52ce58c31de2;hpb=6abae37c9b120020fbd8a0519a3d19bb4b3335c3;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor2/SCLAnnotationModel.java b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor2/SCLAnnotationModel.java index 2a04c41cf..43e4a80a0 100644 --- a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor2/SCLAnnotationModel.java +++ b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor2/SCLAnnotationModel.java @@ -54,9 +54,9 @@ public class SCLAnnotationModel extends AnnotationModel { removeAllAnnotations(); for(CompilationError error : errors) { Annotation annotation = new Annotation( - error.severity == ErrorSeverity.ERROR ? - "org.eclipse.ui.workbench.texteditor.error" : - "org.eclipse.ui.workbench.texteditor.warning", + error.severity == ErrorSeverity.ERROR || error.severity == ErrorSeverity.IMPORT_ERROR ? + "org.eclipse.ui.workbench.texteditor.error" : //$NON-NLS-1$ + "org.eclipse.ui.workbench.texteditor.warning", //$NON-NLS-1$ true, error.description); int begin = Locations.beginOf(error.location); int end = Locations.endOf(error.location);