Commit 0ca31055 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

RED

parent 1eb3081f
......@@ -130,7 +130,6 @@ public class CodeSpecificationEditor extends EditorBase<CodeSpecification> {
}
/** Creates the actual editor. */
@SuppressWarnings("deprecation")
private void createCodeEditor(Composite parent) {
IAnnotationAccess fAnnotationAccess = new AnnotationMarkerAccess();
......@@ -180,6 +179,9 @@ public class CodeSpecificationEditor extends EditorBase<CodeSpecification> {
// to paint the annotations
AnnotationPainter ap = new AnnotationPainter(codeViewer, fAnnotationAccess);
// TODO(VA) The deprecation comment seems to indicate that we could replace this line by:
// ap.addTextStyleStrategy(ERROR_TYPE, new UnderlineStrategy(SWT.UNDERLINE_SINGLE));
// -> Try and see if it behaves as expected.
ap.addAnnotationType(ERROR_TYPE);
ap.setAnnotationTypeColor(ERROR_TYPE, new Color(Display.getDefault(), ERROR_RGB));
codeViewer.addPainter(ap);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment