]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor2/SCLAnnotationModel.java
(refs #7427) Correct error markings for import errors in SCL editor
[simantics/platform.git] / 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);