From: Hannu Niemistö Date: Mon, 14 Aug 2017 07:48:48 +0000 (+0300) Subject: (refs #7427) Correct error markings for import errors in SCL editor X-Git-Tag: v1.31.0~247 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F37%2F837%2F1;p=simantics%2Fplatform.git (refs #7427) Correct error markings for import errors in SCL editor Change-Id: I6562648117392aaa670964a629a4154a3707d2a6 --- 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..cbc6d9a0c 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,7 +54,7 @@ public class SCLAnnotationModel extends AnnotationModel { removeAllAnnotations(); for(CompilationError error : errors) { Annotation annotation = new Annotation( - error.severity == ErrorSeverity.ERROR ? + error.severity == ErrorSeverity.ERROR || error.severity == ErrorSeverity.IMPORT_ERROR ? "org.eclipse.ui.workbench.texteditor.error" : "org.eclipse.ui.workbench.texteditor.warning", true, error.description);