Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2004-06-17 19:24:47 +0000
committerCarolyn MacLeod2004-06-17 19:24:47 +0000
commite049dff9fec5d3e72b27b47dfb303233ee684469 (patch)
treed7f158044b0d1f7a5adb0a847f1326fdc9b5f90f /examples
parent3b118360fba6dd5890cba9d5d52543cb13d89b96 (diff)
downloadeclipse.platform.swt-e049dff9fec5d3e72b27b47dfb303233ee684469.tar.gz
eclipse.platform.swt-e049dff9fec5d3e72b27b47dfb303233ee684469.tar.xz
eclipse.platform.swt-e049dff9fec5d3e72b27b47dfb303233ee684469.zip
*** empty log message ***
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java
index 17994629d2..1cfcf534ec 100755
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java
@@ -748,7 +748,7 @@ abstract class Tab {
case SWT.Activate:
case SWT.Deactivate: toString += new ShellEvent (event).toString (); break;
case SWT.Show:
- case SWT.Hide: toString += new MenuEvent (event).toString (); break;
+ case SWT.Hide: toString += (event.widget instanceof Menu) ? new MenuEvent (event).toString () : event.toString(); break;
case SWT.Modify: toString += new ModifyEvent (event).toString (); break;
case SWT.Verify: toString += new VerifyEvent (event).toString (); break;
case SWT.Help: toString += new HelpEvent (event).toString (); break;

Back to the top