Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2017-02-08 16:23:03 -0500
committerMarkus Keller2017-02-08 16:23:03 -0500
commit4718faadfe79f08468abfbb2b350bfd084065684 (patch)
treef89a517b07591f04ee533ce20d0c8de3f1f22155
parent2b47769bd223740334323e7f5c4a88a4a34cb55c (diff)
downloadeclipse.platform.text-4718faadfe79f08468abfbb2b350bfd084065684.tar.gz
eclipse.platform.text-4718faadfe79f08468abfbb2b350bfd084065684.tar.xz
eclipse.platform.text-4718faadfe79f08468abfbb2b350bfd084065684.zip
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/VerticalRuler.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/VerticalRuler.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/VerticalRuler.java
index 04e361675..311f411fc 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/VerticalRuler.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/VerticalRuler.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2016 IBM Corporation and others.
+ * Copyright (c) 2000, 2017 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -81,14 +81,17 @@ public final class VerticalRuler implements IVerticalRuler, IVerticalRulerExtens
}
}
- /**
- * <code>true</code> if we're on a Mac/GTK, where "new GC(canvas)" is expensive.
- * @see <a href="https://bugs.eclipse.org/298936">bug 298936</a>
- * @see <a href="https://bugs.eclipse.org/467499">bug 467499</a>
- * @since 3.6
- */
- static final boolean AVOID_NEW_GC= Util.isMac() || Util.isGtk();
-
+ /**
+ * <code>true</code> if we're on a Mac/GTK, where "new GC(canvas)" is expensive.
+ * <b>Warning:</b> On Windows, we can't switch to direct-paint mode, because
+ * calls to update() have been removed, and now repaints would only happen with huge
+ * delays when scrolling, see <a href="https://bugs.eclipse.org/511596#c26">bug 511596 comment 26</a>.
+ *
+ * @see <a href="https://bugs.eclipse.org/298936">bug 298936</a>
+ * @see <a href="https://bugs.eclipse.org/467499">bug 467499</a>
+ * @since 3.6
+ */
+ static final boolean AVOID_NEW_GC= Util.isMac() || Util.isGtk();
/** The vertical ruler's text viewer */

Back to the top