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);