Bug 230394 [JFace] MessageDialog.openQuestion() Javadoc
The MessageDialog.openQuestion() Javadoc says: * @return <code>true</code> if the user presses the OK button, * <code>false</code> otherwise But the dialog has Yes/No buttons, no "OK" button.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/MessageDialog.java
message, WARNING, new String[] { IDialogConstants.OK_LABEL }, 0); 
        
        
        
        dialog.open();
        return;
    }
    /*
     * @see org.eclipse.jface.dialogs.Dialog#createButton(org.eclipse.swt.widgets.Composite,
     *      int, java.lang.String, boolean)
     */
    protected Button createButton(Composite parent, int id, String label,
            boolean defaultButton) {
        Button button = super.createButton(parent, id, label, defaultButton);
        
        
        if (defaultButton && !customShouldTakeFocus()) {
			button.setFocus();
		}
        return button;
    }
    /**
     * Return whether or not we should apply the workaround where we take focus
     * for the default button or if that should be determined by the dialog. By
     * default only return true if the custom area is a label or CLabel that
     * cannot take focus.
     *