summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/WrappedContent.java
diff options
context:
space:
mode:
authorKnut Radloff <kradloff>2002-03-01 19:47:17 +0000
committerKnut Radloff <kradloff>2002-03-01 19:47:17 +0000
commit7f080f182f6a92fcfdba594bc2e83c66e54d8c3d (patch)
treeef212b89360d96ea700cc6f6551153bd2fb47e86 /bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/WrappedContent.java
parenta56525ddb41b82034aaca3e68e3094b41b1d92ee (diff)
downloadeclipse.platform.swt-7f080f182f6a92fcfdba594bc2e83c66e54d8c3d.tar.gz
eclipse.platform.swt-7f080f182f6a92fcfdba594bc2e83c66e54d8c3d.tar.xz
eclipse.platform.swt-7f080f182f6a92fcfdba594bc2e83c66e54d8c3d.zip
fixes bug 9191bidi_printing_wip
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/WrappedContent.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/WrappedContent.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/WrappedContent.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/WrappedContent.java
index bf05aadb17..ad66908e37 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/WrappedContent.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/WrappedContent.java
@@ -199,6 +199,14 @@ public String getTextRange(int start, int length) {
return logicalContent.getTextRange(start, length);
}
/**
+ * Returns the number of visual (wrapped) lines.
+ *
+ * @return the number of visual (wrapped) lines
+ */
+int getVisualLineCount() {
+ return visualLineCount;
+}
+/**
* Returns the offset of the character after the word at the specified
* offset.
* <p>