Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2017-01-06 10:57:50 +0000
committerAndrey Loskutov2017-01-09 17:31:08 +0000
commit9d16778daa14c3f2ccdcd395da0e60a672dad2e8 (patch)
tree9b2c927628a286d99bed1145edc8b6fd73fe2446 /org.eclipse.text/src
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/src')
-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 9e1dd7a4f0b..f219c0d720b 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