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
String[] dialogButtonLabels, int defaultIndex) {
        super(parentShell);
        this.title = dialogTitle;
        this.titleImage = dialogTitleImage;
        this.message = dialogMessage;
        switch (dialogImageType) {
        case ERROR: {
            this.image = getErrorImage();
            break;
        }
        case INFORMATION: {
            this.image = getInfoImage();
            break;
        }
        case QUESTION: {
            this.image = getQuestionImage();
            break;
        }
        case WARNING: {
            this.image = getWarningImage();
            break;
        }
        }
        this.buttonLabels = dialogButtonLabels;
        this.defaultButtonIndex = defaultIndex;
    }
    /*
     *  (non-Javadoc)
     * @see org.eclipse.jface.dialogs.Dialog#buttonPressed(int)
     */