116117118119120121122123124125126
switch (event.type) { case SWT.OPEN: listener.menuShown(event); break; case SWT.CLOSE: listener.menuHidden(event); break; case SWT.SELECTED: listener.menuSelected(event); break; }