if (DELAY_MOUSE_DOWN_SWT_POPUP_TRIGGERS) {
// Install a listener that waits until the popup parent receives
// a MouseEnter event before displaying the menu. If we don't wait
// for this event, the menu is not displayed.
popupParent.addListener(SWT.MouseEnter, new Listener() {
public void handleEvent(Event e) {
if (CREATE_POPUP_PARENT_SHELL) {
// Install a listener to hide the (created) popup parent once the menu is
// dismissed. (Don't count on 0x0 sized shells to be invisible without this)
menu.addListener(SWT.Hide, new Listener() {