Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Xenos2016-02-04 17:33:12 +0000
committerSergey Prigogin2016-04-02 18:22:50 +0000
commit9813cf3f11817f1533f622088483b2e5e2e778c9 (patch)
treed6c9d3bbb21fe71b54f4290226b2467cf2b406b6
parent650155d956f9868d6710b0bfc7d6155f5404a8de (diff)
downloadeclipse.platform.text-9813cf3f11817f1533f622088483b2e5e2e778c9.tar.gz
eclipse.platform.text-9813cf3f11817f1533f622088483b2e5e2e778c9.tar.xz
eclipse.platform.text-9813cf3f11817f1533f622088483b2e5e2e778c9.zip
Bug 487262 - Remove the workaround for bug 123770
Please don't commit this until the fix for bug 123770 has been in place for at least one integration build. Change-Id: I72a7a8f027939601a130a7d667f9cd2a7022c858 Signed-off-by: Stefan Xenos <sxenos@gmail.com>
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/JFaceTextUtil.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/JFaceTextUtil.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/JFaceTextUtil.java
index 4dbfbe08ff8..f0518cf6769 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/JFaceTextUtil.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/JFaceTextUtil.java
@@ -126,12 +126,6 @@ public final class JFaceTextUtil {
int top= widget.getTopIndex();
int pixels= widget.getLinePixel(top);
- // FIXME remove when https://bugs.eclipse.org/bugs/show_bug.cgi?id=123770 is fixed
- if (pixels == -widget.getLineHeight(widget.getOffsetAtLine(top))) {
- top++;
- pixels= 0;
- }
-
if (pixels > 0)
top--;
@@ -393,7 +387,7 @@ public final class JFaceTextUtil {
* Returns <code>true</code> if the text covered by <code>selection</code> does not contain any
* characters in the given viewer. Note the difference to {@link ITextSelection#isEmpty()},
* which returns <code>true</code> only for invalid selections.
- *
+ *
* @param viewer the viewer
* @param selection the selection
* @return <code>true</code> if <code>selection</code> does not contain any text,
@@ -407,7 +401,7 @@ public final class JFaceTextUtil {
/**
* Returns the text regions covered by the given selection in the given viewer.
- *
+ *
* @param viewer the viewer
* @param selection the selection
* @return the text regions corresponding to <code>selection</code>
@@ -420,7 +414,7 @@ public final class JFaceTextUtil {
/**
* Returns the offset in the given viewer that corresponds to the current cursor location.
- *
+ *
* @param viewer the viewer
* @return the offset for the current cursor location or -1 if not available
* @since 3.5

Back to the top