]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor2/SCLAnnotationModel.java
Externalize strings in org.simantics.scl.ui
[simantics/platform.git] / bundles / org.simantics.scl.ui / src / org / simantics / scl / ui / editor2 / SCLAnnotationModel.java
index 2a04c41cf1f1169721208c0eabce52ce58c31de2..43e4a80a0b80d8d91cf65120a286700970ae0587 100644 (file)
@@ -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);