summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/cocoa
diff options
context:
space:
mode:
authorFelipe Heidrich <Felipe_Heidrich@ca.ibm.com>2012-02-24 14:19:18 -0500
committerFelipe Heidrich <Felipe_Heidrich@ca.ibm.com>2012-02-24 14:19:18 -0500
commitbaeb2750ab3cd98721ca3f9c69fc2805adaf6cf2 (patch)
treea0b30073fa8e6ba6e678da10264e550cc37878f4 /bundles/org.eclipse.swt/Eclipse SWT/cocoa
parentbda61fcf4d94db1af2718e1a5f14c99c4ec12c81 (diff)
downloadeclipse.platform.swt-baeb2750ab3cd98721ca3f9c69fc2805adaf6cf2.tar.gz
eclipse.platform.swt-baeb2750ab3cd98721ca3f9c69fc2805adaf6cf2.tar.xz
eclipse.platform.swt-baeb2750ab3cd98721ca3f9c69fc2805adaf6cf2.zip
review bug230854, changes to API, fix code to handle surrogates in linux, other fixes
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java12
1 files changed, 12 insertions, 0 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 27e5184e07..89e448a148 100644
--- 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
@@ -190,6 +190,12 @@ public void addModifyListener (ModifyListener listener) {
addListener (SWT.Modify, typedListener);
}
+public void addSegmentListener (SegmentListener listener) {
+ checkWidget ();
+ if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
+ addListener (SWT.Segments, new TypedListener (listener));
+}
+
/**
* Adds the listener to the collection of listeners who will
* be notified when the control is selected by the user, by sending
@@ -1457,6 +1463,12 @@ public void removeModifyListener (ModifyListener listener) {
eventTable.unhook (SWT.Modify, listener);
}
+public void removeSegmentListener (SegmentListener listener) {
+ checkWidget ();
+ if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
+ eventTable.unhook (SWT.Segments, listener);
+}
+
/**
* Removes the listener from the collection of listeners who will
* be notified when the control is selected by the user.