Bug 157445 [JFace] PopupDialog does not allow direct selection of text in editor
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/PopupDialog.java
listenToParentDeactivate = !"carbon".equals(SWT.getPlatform()); 
				}
			}
		});
		if ((getShellStyle() & SWT.ON_TOP) != 0 && shell.getParent() != null) {
			parentDeactivateListener = new Listener() {
				public void handleEvent(Event event) {
					if (listenToParentDeactivate) {
						close();
					} else {
						
						listenToParentDeactivate = listenToDeactivate;
					}
				}
			};
			shell.getParent().addListener(SWT.Deactivate,
					parentDeactivateListener);
		}
		shell.addDisposeListener(new DisposeListener() {
			public void widgetDisposed(DisposeEvent event) {
				handleDispose();
			}
		});
	}
	/**
	 * The <code>PopupDialog</code> implementation of this <code>Window</code>
	 * method creates and lays out the top level composite for the dialog. It
	 * then calls the <code>createTitleMenuArea</code>,