Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelozerr2017-12-18 09:22:41 -0500
committerMickael Istria2017-12-21 11:24:59 -0500
commitfbf48eb2c866c228064cd1e70e4164a19449eeac (patch)
treef45d387e6d25ac33c13348aa07449651e2905c1f /org.eclipse.jface.text.examples
parentb70fdcd63eab02c88bac2a93fb8cf73535b6fcbf (diff)
downloadeclipse.platform.text-fbf48eb2c866c228064cd1e70e4164a19449eeac.tar.gz
eclipse.platform.text-fbf48eb2c866c228064cd1e70e4164a19449eeac.tar.xz
eclipse.platform.text-fbf48eb2c866c228064cd1e70e4164a19449eeac.zip
Bug 528851 - [CodeMining] Problem while getting bad AnnotationPainter
(with JDT Editor) Change-Id: I04710e6a04d7bdcdd3a53869d3e0dacd6cbf99b6 Signed-off-by: angelozerr <angelo.zerr@gmail.com>
Diffstat (limited to 'org.eclipse.jface.text.examples')
-rw-r--r--org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/codemining/CodeMiningDemo.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/codemining/CodeMiningDemo.java b/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/codemining/CodeMiningDemo.java
index 64fb47d11..903a2617b 100644
--- a/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/codemining/CodeMiningDemo.java
+++ b/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/codemining/CodeMiningDemo.java
@@ -102,6 +102,8 @@ public class CodeMiningDemo {
};
AnnotationPainter painter = new AnnotationPainter(viewer, annotationAccess);
((ITextViewerExtension2) viewer).addPainter(painter);
+ // Register this annotation painter as CodeMining annotation painter.
+ ((ISourceViewerExtension5) viewer).setCodeMiningAnnotationPainter(painter);
}
}

Back to the top