for(CompilationError error : errors) {
Annotation annotation = new Annotation(
error.severity == ErrorSeverity.ERROR || error.severity == ErrorSeverity.IMPORT_ERROR ?
- "org.eclipse.ui.workbench.texteditor.error" :
- "org.eclipse.ui.workbench.texteditor.warning",
+ "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);