Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2004-02-23 17:55:15 +0000
committerGrant Gayed2004-02-23 17:55:15 +0000
commitd6602fa985ba31be9b0abf870bb55cf127e18aa1 (patch)
tree4fb28067f52533be8628df0701cdd1440ba65490 /examples
parent439d06b98c76d42cbd0fc1d02a396c6b17c74c7a (diff)
downloadeclipse.platform.swt-d6602fa985ba31be9b0abf870bb55cf127e18aa1.tar.gz
eclipse.platform.swt-d6602fa985ba31be9b0abf870bb55cf127e18aa1.tar.xz
eclipse.platform.swt-d6602fa985ba31be9b0abf870bb55cf127e18aa1.zip
52541
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java
index 976ffdd8ed..849787c6ad 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java
@@ -281,6 +281,11 @@ class CoolBarTab extends Tab {
// Lazy create the menu.
Shell shell = tabFolderPage.getShell();
menu = new Menu(shell);
+ menu.addMenuListener(new MenuAdapter() {
+ public void menuHidden(MenuEvent e) {
+ visible = false;
+ }
+ });
for (int i = 0; i < 9; ++i) {
final String text = ControlExample.getResourceString("DropDownData_" + i);
if (text.length() != 0) {

Back to the top