Bug 105913 Deprecations in ReadOnlyStateChecker
20050802 ReadOnlyStateChecker is using deprecated core API
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/ReadOnlyStateChecker.java
* Check the supplied resources to see if they are read only. If so then
	 * prompt the user to see if they can be deleted.Return those that were
	 * accepted.
	 * 
     * @param itemsToCheck
     * @return the resulting selected resources
     */
    public IResource[] checkReadOnlyResources(IResource[] itemsToCheck) {
        List selections = new ArrayList();
        int result = IDialogConstants.CANCEL_ID;
        try {
            result = checkReadOnlyResources(itemsToCheck, selections);
        } catch (final CoreException exception) {
            shell.getDisplay().syncExec(new Runnable() {
                public void run() {
                    ErrorDialog.openError(shell, READ_ONLY_EXCEPTION_MESSAGE,
                            null, exception.getStatus());
                }
            });
        }
        if (result == IDialogConstants.CANCEL_ID)
            return new IResource[0];
        
        if (result == IDialogConstants.YES_TO_ALL_ID)
            return itemsToCheck;
        IResource[] returnValue = new IResource[selections.size()];
        selections.toArray(returnValue);
        return returnValue;
    }
    /**