Bug 61211 [Navigator] When deleting a linked resource, it asks if you're sure you want to delete any read-only files
I have a linked resource called Foo, which links to c:\foo. In this directory are several read-only files. In the Navigator in the Resource perspective, I try to delete this resource. It asks to confirm, and says that only the link will be deleted, the link target will not be changed. I say OK. Then it gives me a dialog for each read-only file in c:\foo, warning me that the file is read- only, do I really want to delete it. This contradicts what it said about not touching the target resource. I'm using 3.0 M8.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/ReadOnlyStateChecker.java
}
        return true;
    }
    /**
     * 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.
     * @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;