Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2008-07-16 19:04:05 +0000
committerGrant Gayed2008-07-16 19:04:05 +0000
commit46d4a868305925631e3645da7d42b6e7177ce216 (patch)
treeebd76107541182a682d1c53b1d71c0a39cf6261e /bundles/org.eclipse.swt/Eclipse SWT
parente76943fa5c44c96aef15bbb9012cb7b601912570 (diff)
downloadeclipse.platform.swt-46d4a868305925631e3645da7d42b6e7177ce216.tar.gz
eclipse.platform.swt-46d4a868305925631e3645da7d42b6e7177ce216.tar.xz
eclipse.platform.swt-46d4a868305925631e3645da7d42b6e7177ce216.zip
getCharCount() for MULTI Texts
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java
index c2fe1f3398..249c295795 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java
@@ -534,7 +534,6 @@ public Point getCaretLocation () {
}
// NSText
NSRange range = ((NSTextView)view).selectedRange();
- System.out.println(range.location + " " + range.length);
return null;
}
@@ -577,8 +576,7 @@ public int getCharCount () {
if ((style & SWT.SINGLE) != 0) {
return new NSCell(((NSControl)view).cell()).title().length();
} else {
- //TODO
- return 0;
+ return ((NSTextView)view).textStorage().length();
}
}

Back to the top