Bug 93352 [ErrorHandling] IDEExceptionHandler should not use magic number
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEExceptionHandler.java
System.err
                    .println("Error while informing user about event loop exception:"); 
            internalError.printStackTrace();
            System.err.println("Dialog open exception:"); 
            th.printStackTrace();
            return true;
        }
    }
    private boolean openQuestion(Shell parent, String title, String message,
            Throwable detail, int defaultIndex) {
        String[] labels;
        if (detail == null)
            labels = new String[] { IDialogConstants.YES_LABEL,
                    IDialogConstants.NO_LABEL };
        else
            labels = new String[] { IDialogConstants.YES_LABEL,
                    IDialogConstants.NO_LABEL,
                    IDialogConstants.SHOW_DETAILS_LABEL };
        dialog = new InternalErrorDialog(parent, title, null, message, detail,
                MessageDialog.QUESTION, labels, defaultIndex);
        if (detail != null)
            dialog.setDetailButton(2);
        boolean result = dialog.open() == 0;
        dialog = null;
        return result;
    }
}