From 5db676d32485d409bd6752d94158940ce4f8df6e Mon Sep 17 00:00:00 2001 From: Lakshmi Shanmugam Date: Wed, 29 May 2013 17:58:21 +0530 Subject: Bug 408957 - Improve API doc for Text.getTextChars() and setTextChars() --- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java') diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java index 458777ecfb..4aa53ead4a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java @@ -1264,6 +1264,11 @@ public String getText (int start, int end) { * The text for a text widget is the characters in the widget, or * a zero-length array if this has never been set. *

+ *

+ * Note: Use the API to protect the text, for example, when widget is used as + * a password field. However, the text can't be protected if Segment listener + * is added to the widget. + *

* * @return a character array that contains the widget's text * @@ -2437,7 +2442,12 @@ public void setText (String string) { * Sets the contents of the receiver to the characters in the array. If the receiver * has style SWT.SINGLE and the argument contains multiple lines of text * then the result of this operation is undefined and may vary between platforms. - * + *

+ * Note: Use the API to protect the text, for example, when widget is used as + * a password field. However, the text can't be protected if Verify or + * Segment listener is added to the widget. + *

+ * * @param text a character array that contains the new text * * @exception IllegalArgumentException