Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelozerr2018-03-12 10:49:04 +0000
committerangelozerr2018-03-12 10:49:04 +0000
commita2350cfe776b5a00973350637e238cf622e336a4 (patch)
tree96c661f56277b289b42d0105bb9a44bae41feac0 /org.eclipse.jface.text/src/org/eclipse/jface/text
parent5a4e7e7991f23f7703c4d73c6aed0491dcd1647f (diff)
downloadeclipse.platform.text-a2350cfe776b5a00973350637e238cf622e336a4.tar.gz
eclipse.platform.text-a2350cfe776b5a00973350637e238cf622e336a4.tar.xz
eclipse.platform.text-a2350cfe776b5a00973350637e238cf622e336a4.zip
Bug 531659 - [CodeMining] Line content annotation should use line
background color as background Change-Id: I70fe46aa8e9cf02b92cb87244950cf5db75a38b0 Signed-off-by: angelozerr <angelo.zerr@gmail.com>
Diffstat (limited to 'org.eclipse.jface.text/src/org/eclipse/jface/text')
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/codemining/AbstractCodeMining.java2
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/AbstractInlinedAnnotation.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/codemining/AbstractCodeMining.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/codemining/AbstractCodeMining.java
index 12862f771cd..e683c76a90c 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/codemining/AbstractCodeMining.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/codemining/AbstractCodeMining.java
@@ -140,7 +140,7 @@ public abstract class AbstractCodeMining implements ICodeMining {
@Override
public Point draw(GC gc, StyledText textWidget, Color color, int x, int y) {
String title= getLabel() != null ? getLabel() : "no command"; //$NON-NLS-1$
- gc.drawText(title, x, y);
+ gc.drawString(title, x, y, true);
return gc.stringExtent(title);
}
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/AbstractInlinedAnnotation.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/AbstractInlinedAnnotation.java
index fdee6eefdfe..cdd5952f1a3 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/AbstractInlinedAnnotation.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/AbstractInlinedAnnotation.java
@@ -122,7 +122,7 @@ public abstract class AbstractInlinedAnnotation extends Annotation {
public void draw(GC gc, StyledText textWidget, int offset, int length, Color color, int x, int y) {
gc.setForeground(color);
gc.setBackground(textWidget.getBackground());
- gc.drawText(getText(), x, y);
+ gc.drawString(getText(), x, y, true);
}
/**

Back to the top