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
*/
    protected int getDefaultButtonIndex() {
        return defaultButtonIndex;
    }
    /**
     * A mutator for the array of buttons in the button bar.
     * 
     * @param buttons
     *            The buttons in the button bar; must not be <code>null</code>.
     */
    protected void setButtons(Button[] buttons) {
        if (buttons == null) {
            throw new NullPointerException(
                    "The array of buttons cannot be null.");} 
        this.buttons = buttons;
    }
    /**
     * A mutator for the button labels.
     * 
     * @param buttonLabels
     *            The button labels to use; must not be <code>null</code>.
     */
    protected void setButtonLabels(String[] buttonLabels) {
        if (buttonLabels == null) {
            throw new NullPointerException(
                    "The array of button labels cannot be null.");} 
        this.buttonLabels = buttonLabels;
    }
}