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
* Create a new checker that parents the dialog off of parent using the supplied
     * title and message.
     * @param parent the shell used for dialogs
     * @param title the title for dialogs
     * @param message the message for a dialog - this will be prefaced with the name of the resource.
     */
    public ReadOnlyStateChecker(Shell parent, String title, String message) {
        this.shell = parent;
        this.titleMessage = title;
        this.mainMessage = message;
    }
    /**
     * Check an individual resource to see if it passed the read only query. If it is a file
     * just add it, otherwise it is a container and the children need to be checked too.
     * Return true if all items are selected and false if any are skipped.
     */
    private boolean checkAcceptedResource(IResource resourceToCheck,
            List selectedChildren) throws CoreException {
        if (resourceToCheck.getType() == IResource.FILE)
            selectedChildren.add(resourceToCheck);
        else {
            
            int childCheck = checkReadOnlyResources(
                    ((IContainer) resourceToCheck).members(), selectedChildren);
            
            if (childCheck == IDialogConstants.YES_TO_ALL_ID)
                selectedChildren.add(resourceToCheck);
            else
                
                return false;