Bug 157445 [JFace] PopupDialog does not allow direct selection of text in editor
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/PopupDialog.java
* @return The Control representing the horizontal separator.
	 */
	private Control createHorizontalSeparator(Composite parent) {
		Label separator = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL
				| SWT.LINE_DOT);
		GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true,
				false).applyTo(separator);
		return separator;
	}
	/**
	 * Create the dialog's menu for the move and resize actions.
	 * 
	 * @param parent
	 *            The parent composite.
	 */
	private void createDialogMenu(Composite parent) {
		toolBar = new ToolBar(parent, SWT.FLAT);
		ToolItem viewMenuButton = new ToolItem(toolBar, SWT.PUSH, 0);
		GridDataFactory.fillDefaults().align(SWT.END, SWT.CENTER).applyTo(
				toolBar);
		viewMenuButton.setImage(JFaceResources.getImage(POPUP_IMG_MENU));
		viewMenuButton.setDisabledImage(JFaceResources.getImage(POPUP_IMG_MENU_DISABLED));
		viewMenuButton.setToolTipText(JFaceResources
				.getString("PopupDialog.menuTooltip")); 
		viewMenuButton.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e) {
				showDialogMenu();
			}
		});