aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2013-03-25 12:44:15 (EDT)
committerCarolyn MacLeod2013-04-09 10:56:54 (EDT)
commitf35649bdac7fe786470ce25d98823ea3a97ddd16 (patch)
tree1bcec38a2d2b1b20d386673c2c10d4d3951dccf7
parentdb4dfe20e499e71108648bad1a908f7d28f47ffc (diff)
downloadeclipse.platform.swt-f35649bdac7fe786470ce25d98823ea3a97ddd16.zip
eclipse.platform.swt-f35649bdac7fe786470ce25d98823ea3a97ddd16.tar.gz
eclipse.platform.swt-f35649bdac7fe786470ce25d98823ea3a97ddd16.tar.bz2
Bug 384175 - [Win7]Text#setMessage(java.lang.String) has no effect on Text with setEditable(false)
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java2
1 files changed, 1 insertions, 1 deletions
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 8fe103a..b17d087 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
@@ -179,7 +179,7 @@ long /*int*/ callWindowProc (long /*int*/ hwnd, int msg, long /*int*/ wParam, lo
boolean doubleBuffer = findImageControl () != null;
boolean drawMessage = false;
if ((style & SWT.SINGLE) != 0 && message.length () > 0) {
- if (!OS.IsWinCE && OS.WIN32_VERSION < OS.VERSION (6, 0)) {
+ if ((!OS.IsWinCE && OS.WIN32_VERSION < OS.VERSION (6, 0)) || (style & SWT.READ_ONLY) != 0) {
drawMessage = hwnd != OS.GetFocus () && OS.GetWindowTextLength (handle) == 0;
}
}