From c54a50d950fe3dde640ac06814c7e95455a08d36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hannu=20Niemist=C3=B6?= Date: Mon, 14 Aug 2017 10:48:48 +0300 Subject: [PATCH] (refs #7427) Correct error markings for import errors in SCL editor Change-Id: I6562648117392aaa670964a629a4154a3707d2a6 --- .../src/org/simantics/scl/ui/editor2/SCLAnnotationModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.2