Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/ITextListener.java4
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java8
2 files changed, 9 insertions, 3 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/ITextListener.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/ITextListener.java
index 0df04f7e9..b967c6163 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/ITextListener.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/ITextListener.java
@@ -13,12 +13,12 @@ package org.eclipse.jface.text;
/**
- * Text listeners registered with an text viewer are informed about
+ * Text listeners registered with a text viewer are informed about
* all text viewer modifications by means of text events. A text event
* describes a change as a replace operation.<p>
* The changes described in the event are the changes applied to the text viewer's
* widget (i.e. its visual representation) and not those applied to the text viewer's
- * document. The text event can be asked to return the according document
+ * document. The text event can be asked to return the corresponding document
* event. If a text listener receives a text event, it is guaranteed that
* both the document and the viewer's visual representation are in sync.<p>
* Clients may implement this interface.
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
index 67033b849..6d66ea74e 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
@@ -368,7 +368,7 @@ public class TextViewer extends Viewer implements
Iterator iterator= fListeners.iterator();
while (iterator.hasNext() && event.doit) {
VerifyKeyListener listener= (VerifyKeyListener) iterator.next();
- listener.verifyKey(event);
+ listener.verifyKey(event); // we might trigger reentrant calls on GTK
}
} finally {
fReentranceCount--;
@@ -4287,6 +4287,12 @@ public class TextViewer extends Viewer implements
* @since 2.0
*/
public final void setRedraw(boolean redraw) {
+ // don't use the setRedraw feature on linux
+ // to avoid skipping
+ // see bug 26153
+ if (!"gtk".equals(SWT.getPlatform())) //$NON-NLS-1$
+ return;
+
if (!redraw) {
if (fRedrawCounter == 0)
disableRedrawing();

Back to the top