Bug 105913 Deprecations in ReadOnlyStateChecker
20050802 ReadOnlyStateChecker is using deprecated core API
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/ReadOnlyStateChecker.java
}
        return true;
    }
	/**
     * Open a message dialog with Yes No, Yes To All and Cancel buttons. Return the
     * code that indicates the selection.
     * @return int 
     *	one of
     *		YES_TO_ALL_ID
     *		YES_ID
     *		NO_ID
     *		CANCEL_ID
     * 		
     * @param resource - the resource being queried.
     */
    private int queryYesToAllNoCancel(IResource resource) {
        final MessageDialog dialog = new MessageDialog(this.shell,
                this.titleMessage, null, MessageFormat.format(this.mainMessage,
                        new Object[] { resource.getName() }),
                MessageDialog.QUESTION, new String[] {
                        IDialogConstants.YES_LABEL,
                        IDialogConstants.YES_TO_ALL_LABEL,
                        IDialogConstants.NO_LABEL,
                        IDialogConstants.CANCEL_LABEL }, 0);
        shell.getDisplay().syncExec(new Runnable() {
            public void run() {
                dialog.open();
            }
        });
        int result = dialog.getReturnCode();