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() {
public void handleEvent(Event e) {
if (!popupParent.isDisposed()) {
// System.err.println("hiding popup parent");
popupParent.setVisible(false);
}