]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
(refs #7427) Correct error markings for import errors in SCL editor 37/837/1
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Mon, 14 Aug 2017 07:48:48 +0000 (10:48 +0300)
committerHannu Niemistö <hannu.niemisto@semantum.fi>
Mon, 14 Aug 2017 07:48:48 +0000 (10:48 +0300)
Change-Id: I6562648117392aaa670964a629a4154a3707d2a6

bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor2/SCLAnnotationModel.java

index 2a04c41cf1f1169721208c0eabce52ce58c31de2..cbc6d9a0c2ec6fe4e8d923161ff1d93ab715be8c 100644 (file)
@@ -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);