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
* @return boolean
     */
    protected boolean customShouldTakeFocus() {
        if (customArea instanceof Label) {
			return false;
		}
        if (customArea instanceof CLabel) {
			return (customArea.getStyle() & SWT.NO_FOCUS) > 0;
		}
        return true;
    }
    /*
     *  (non-Javadoc)
     * @see org.eclipse.jface.dialogs.IconAndMessageDialog#getImage()
     */
    public Image getImage() {
        return image;
    }
    /**
     * An accessor for the labels to use on the buttons.
     * 
     * @return The button labels to used; never <code>null</code>.
     */
    protected String[] getButtonLabels() {
        return buttonLabels;
    }
    /**
     * An accessor for the index of the default button in the button array.
     * 
     * @return The default button index.