diff options
author | Niraj Modi | 2015-05-14 10:03:25 +0000 |
---|---|---|
committer | Niraj Modi | 2015-05-14 10:03:25 +0000 |
commit | 2421fb3ae62d819c660c8a65ad2613d75ea756c6 (patch) | |
tree | a0f51290dc48f2c6f02a6f03dfbb447662894bd7 /bundles | |
parent | eef9aae31d613bddb04ee66908f2982f5fa891a0 (diff) | |
download | eclipse.platform.swt-2421fb3ae62d819c660c8a65ad2613d75ea756c6.tar.gz eclipse.platform.swt-2421fb3ae62d819c660c8a65ad2613d75ea756c6.tar.xz eclipse.platform.swt-2421fb3ae62d819c660c8a65ad2613d75ea756c6.zip |
Bug 433817 - Shell#setText with newlines (\n) causes the shell title toI20150514-1000
disappear
Change-Id: Ic2ac18c47274c40c6eda3d1bb309077d0b84908b
Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
Diffstat (limited to 'bundles')
4 files changed, 15 insertions, 3 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 0d15c0c209..0e06e31da7 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 @@ -1624,6 +1624,9 @@ public void setSelection (Point selection) { * setting the text to a string containing line breaks or * other special characters will probably cause it to * display incorrectly. + * </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 text 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 8eb533d2bb..031cc121e9 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 @@ -898,6 +898,9 @@ public void setRightMargin(int rightMargin) { * platform specific manner. The mnemonic indicator character * '&' can be escaped by doubling it in the string, causing * a single '&' to be displayed. + * </p><p> + * Note: If escape characters like '\n', '\t' etc. are used + * in the string, then the behavior is platform dependent. * </p> * * @param text the text to be displayed in the label or null 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 a6548e58ed..432dcf49df 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 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2013 IBM Corporation and others. + * Copyright (c) 2000, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -169,7 +169,10 @@ public void setImage (Image image) { /** * Sets the receiver's text. - * + * <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 text * * @exception IllegalArgumentException <ul> 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 6e76e404c6..3fc33c04f3 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 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2013 IBM Corporation and others. + * Copyright (c) 2000, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -820,6 +820,9 @@ void _setText (String string) { * manner. The mnemonic indicator character '&' can be * escaped by doubling it in the string, causing a single * '&' to be displayed. + * </p><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 text |