Bug 433817 - Shell#setText with newlines (\n) causes the shell title to
authorNiraj Modi <niraj.modi@in.ibm.com>
Fri, 15 May 2015 13:25:07 +0000 (18:55 +0530)
committerNiraj Modi <niraj.modi@in.ibm.com>
Fri, 15 May 2015 13:25:07 +0000 (18:55 +0530)
disappear
- Fixed JavaDocs for CCombo#add() methods.

Change-Id: I79b3b142f0f6cd2cd2d4b55ad3d350dea0062681
Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CCombo.java

index 0e06e31..8df423e 100644 (file)
@@ -178,7 +178,10 @@ static int checkStyle (int style) {
 }
 /**
  * Adds the argument to the end of the receiver's list.
- *
+ * <p>
+ * Note: If escape characters like '\n', '\t' etc. are used
+ * in the string, then the behavior is platform dependent.
+ * </p>
  * @param string the new item
  *
  * @exception IllegalArgumentException <ul>
@@ -203,6 +206,9 @@ public void add (String string) {
  * Note: To add an item at the end of the list, use the
  * result of calling <code>getItemCount()</code> as the
  * index or use <code>add(String)</code>.
+ * </p><p>
+ * Also note, if escape characters like '\n', '\t' etc. are used
+ * in the string, then the behavior is platform dependent.
  * </p>
  *
  * @param string the new item