Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2017-01-06 05:57:50 -0500
committerAndrey Loskutov2017-01-09 12:31:08 -0500
commit9d16778daa14c3f2ccdcd395da0e60a672dad2e8 (patch)
tree9b2c927628a286d99bed1145edc8b6fd73fe2446 /org.eclipse.text
parent8bd133add6a5d20059d50a4304150a01cfb9d90f (diff)
downloadeclipse.platform.text-9d16778daa14c3f2ccdcd395da0e60a672dad2e8.tar.gz
eclipse.platform.text-9d16778daa14c3f2ccdcd395da0e60a672dad2e8.tar.xz
eclipse.platform.text-9d16778daa14c3f2ccdcd395da0e60a672dad2e8.zip
Bug 510030 - Add toString() to Line and TextSelectionI20170111-0200I20170110-2000I20170109-2000
Change-Id: Idc8d4bd0224d1a84932e02a9914bf1f59fe56580 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.text')
-rw-r--r--org.eclipse.text/src/org/eclipse/jface/text/Line.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/Line.java b/org.eclipse.text/src/org/eclipse/jface/text/Line.java
index 9e1dd7a4f..f219c0d72 100644
--- a/org.eclipse.text/src/org/eclipse/jface/text/Line.java
+++ b/org.eclipse.text/src/org/eclipse/jface/text/Line.java
@@ -59,6 +59,11 @@ final class Line implements IRegion {
public int getLength() {
return length;
}
+
+ @Override
+ public String toString() {
+ return "Line [offset: " + offset + ", length: " + length + ", delimiter: '" + delimiter + "']"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ }
}

Back to the top