Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2015-05-20 10:22:27 +0000
committerNiraj Modi2015-05-20 10:22:27 +0000
commit20db836c37f4f983653ccdf81fb29ed3aa1c1494 (patch)
treeceeaf54ef3e3f219b8fd9b3c6d1bb5e09c64f2db
parent87da337be4a605e88f916d9ad3f6c57106d3004c (diff)
downloadeclipse.platform.swt-20db836c37f4f983653ccdf81fb29ed3aa1c1494.tar.gz
eclipse.platform.swt-20db836c37f4f983653ccdf81fb29ed3aa1c1494.tar.xz
eclipse.platform.swt-20db836c37f4f983653ccdf81fb29ed3aa1c1494.zip
Bug 433817 - Shell#setText with newlines (\n) causes the shell title to
disappear Change-Id: I56cac9c5799d3009b3a480a81604944c8251e23b Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CCombo.java6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CLabel.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Item.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/List.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java4
13 files changed, 20 insertions, 20 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CCombo.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CCombo.java
index 016c608adc..6cc0fee466 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CCombo.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CCombo.java
@@ -179,7 +179,7 @@ static int checkStyle (int style) {
/**
* Adds the argument to the end of the receiver's list.
* <p>
- * Note: If escape sequences like '\n', '\t' etc. are used
+ * Note: If control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
* @param string the new item
@@ -207,7 +207,7 @@ public void add (String string) {
* result of calling <code>getItemCount()</code> as the
* index or use <code>add(String)</code>.
* </p><p>
- * Also note, if escape sequences like '\n', '\t' etc. are used
+ * Also note, if control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
*
@@ -1631,7 +1631,7 @@ public void setSelection (Point selection) {
* other special characters will probably cause it to
* display incorrectly.
* </p><p>
- * Also note, if escape sequences like '\n', '\t' etc. are used
+ * Also note, if control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
*
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CLabel.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CLabel.java
index 0310e505f8..90654eb42d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CLabel.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CLabel.java
@@ -899,7 +899,7 @@ public void setRightMargin(int rightMargin) {
* '&amp;' can be escaped by doubling it in the string, causing
* a single '&amp;' to be displayed.
* </p><p>
- * Note: If escape sequences like '\n', '\t' etc. are used
+ * Note: If control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
*
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Item.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Item.java
index 736d2d3d0e..615234add5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Item.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Item.java
@@ -170,7 +170,7 @@ public void setImage (Image image) {
/**
* Sets the receiver's text.
* <p>
- * Note: If escape sequences like '\n', '\t' etc. are used
+ * Note: If control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
* @param string the new text
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
index a40ca1c8ed..d4a4b772c7 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
@@ -1076,7 +1076,7 @@ public void setSelection (boolean selected) {
* a Button that has an image and text set into it will display the
* image or text that was set most recently.
* </p><p>
- * Also note, if escape sequences like '\n', '\t' etc. are used
+ * Also note, if control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
* @param string the new text
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java
index 1a45723bd8..300c0bf11d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java
@@ -141,7 +141,7 @@ public Combo (Composite parent, int style) {
/**
* Adds the argument to the end of the receiver's list.
* <p>
- * Note: If escape sequences like '\n', '\t' etc. are used
+ * Note: If control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
* @param string the new item
@@ -174,7 +174,7 @@ public void add (String string) {
* result of calling <code>getItemCount()</code> as the
* index or use <code>add(String)</code>.
* </p><p>
- * Also note, if escape sequences like '\n', '\t' etc. are used
+ * Also note, if control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
*
@@ -2266,7 +2266,7 @@ public void setSelection (Point selection) {
* other special characters will probably cause it to
* display incorrectly.
* </p><p>
- * Also note, if escape sequences like '\n', '\t' etc. are used
+ * Also note, if control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
*
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java
index 3f1df673f9..edd5eea1f8 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java
@@ -1340,7 +1340,7 @@ void setSystemMenu () {
* window manager will typically display as the receiver's
* <em>title</em>, to the argument, which must not be null.
* <p>
- * Note: If escape sequences like '\n', '\t' etc. are used
+ * Note: If control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
*
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java
index 19edeec2a8..3c3321eb9e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java
@@ -385,7 +385,7 @@ public void setFont (Font font) {
* '&amp;' can be escaped by doubling it in the string, causing
* a single '&amp;' to be displayed.
* </p><p>
- * Note: If escape sequences like '\n', '\t' etc. are used
+ * Note: If control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
* @param string the new text
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
index f0c0c7e277..a0db09c90a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
@@ -372,7 +372,7 @@ public void setImage (Image image) {
* a single '&amp;' to be displayed.
* </p>
* <p>
- * Note: If escape sequences like '\n', '\t' etc. are used
+ * Note: If control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
*
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/List.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/List.java
index 64e75aef45..79aa70220b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/List.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/List.java
@@ -84,7 +84,7 @@ public List (Composite parent, int style) {
/**
* Adds the argument to the end of the receiver's list.
* <p>
- * Note: If escape sequences like '\n', '\t' etc. are used
+ * Note: If control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
* @param string the new item
@@ -116,7 +116,7 @@ public void add (String string) {
* result of calling <code>getItemCount()</code> as the
* index or use <code>add(String)</code>.
* </p><p>
- * Also note, if escape sequences like '\n', '\t' etc. are used
+ * Also note, if control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
*
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java
index ef8f0ff37a..b8af04c3a6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java
@@ -1146,7 +1146,7 @@ public void setImageIndent (int indent) {
/**
* Sets the text for multiple columns in the table.
* <p>
- * Note: If escape sequences like '\n', '\t' etc. are used
+ * Note: If control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
* @param strings the array of new strings
@@ -1171,7 +1171,7 @@ public void setText (String [] strings) {
/**
* Sets the receiver's text at a column
* <p>
- * Note: If escape sequences like '\n', '\t' etc. are used
+ * Note: If control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
* @param index the column index
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
index a9af12eaac..36e6144f2c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
@@ -2245,7 +2245,7 @@ void setTabStops (int tabs) {
* SINGLE and the argument contains multiple lines of text, the result of this
* operation is undefined and may vary from platform to platform.
* <p>
- * Note: If escape sequences like '\n', '\t' etc. are used
+ * Note: If control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
* @param string the new text
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java
index bf277e8dcd..f0c04236f1 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java
@@ -821,7 +821,7 @@ void _setText (String string) {
* escaped by doubling it in the string, causing a single
* '&amp;' to be displayed.
* </p><p>
- * Note: If escape sequences like '\n', '\t' etc. are used
+ * Note: If control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
*
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java
index 57a68bbbb5..d8045bf0ac 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java
@@ -1736,7 +1736,7 @@ public void setItemCount (int count) {
/**
* Sets the text for multiple columns in the tree.
* <p>
- * Note: If escape sequences like '\n', '\t' etc. are used
+ * Note: If control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
* @param strings the array of new strings
@@ -1763,7 +1763,7 @@ public void setText (String [] strings) {
/**
* Sets the receiver's text at a column
* <p>
- * Note: If escape sequences like '\n', '\t' etc. are used
+ * Note: If control characters like '\n', '\t' etc. are used
* in the string, then the behavior is platform dependent.
* </p>
* @param index the column index

Back to the top