Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Xenos2017-02-02 16:52:13 +0000
committerStefan Xenos2017-02-08 01:15:45 +0000
commit02dcf2329275ed5b454de741343059a493642c42 (patch)
tree371b581e12531b7b493ab917c4bbdef68203b91c /org.eclipse.jface.text
parent9215067faef8e81e781e754094a35d16ac08e09f (diff)
downloadeclipse.platform.text-02dcf2329275ed5b454de741343059a493642c42.tar.gz
eclipse.platform.text-02dcf2329275ed5b454de741343059a493642c42.tar.xz
eclipse.platform.text-02dcf2329275ed5b454de741343059a493642c42.zip
Bug 511596 - Slow scrolling in editorI20170208-0700
Remove the synchronous forced repaints. The call to Canvas.redraw is sufficient to trigger an asynchronous repaint. Doing it asynchronously prevents input events from getting backed up if they arrive faster than SWT can paint the ruler. Change-Id: I4aaf9a18d78b8b59a5189a4651f4cb5c207fa9c9 Signed-off-by: Stefan Xenos <sxenos@gmail.com>
Diffstat (limited to 'org.eclipse.jface.text')
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationRulerColumn.java1
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java1
2 files changed, 0 insertions, 2 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationRulerColumn.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationRulerColumn.java
index 800069112..2b4ca7639 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationRulerColumn.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationRulerColumn.java
@@ -851,7 +851,6 @@ public class AnnotationRulerColumn implements IVerticalRulerColumn, IVerticalRul
if (fCanvas != null && !fCanvas.isDisposed()) {
if (VerticalRuler.AVOID_NEW_GC) {
fCanvas.redraw();
- fCanvas.update();
} else {
GC gc= new GC(fCanvas);
doubleBufferPaint(gc);
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java
index b26f78ac2..00b895e49 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java
@@ -881,7 +881,6 @@ public class LineNumberRulerColumn implements IVerticalRulerColumn {
if (!isDisposed()) {
if (VerticalRuler.AVOID_NEW_GC) {
fCanvas.redraw();
- fCanvas.update();
} else {
GC gc= new GC(fCanvas);
doubleBufferPaint(gc);

Back to the top