Bug 61945 [Workbench] refresh local is not backgroundable
in i05111600 When I refresh local a large workspace (70000 files) it takes several minutes but I get only a modla progress dialog. No opportunity to put it in the background.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/RefreshAction.java
String getProblemsTitle() {
        return IDEWorkbenchMessages.getString("RefreshAction.problemTitle"); 
    }
    /**
     * Returns a list containing the workspace root if the selection would otherwise be empty.
     */
    protected List getSelectedResources() {
        List resources = super.getSelectedResources();
        if (resources.isEmpty()) {
            resources = new ArrayList();
            resources.add(ResourcesPlugin.getWorkspace().getRoot());
        }
        return resources;
    }
    /* (non-Javadoc)
     * Method declared on WorkspaceAction.
     */
    void invokeOperation(IResource resource, IProgressMonitor monitor)
            throws CoreException {
         
        
        
        if (resource.getType() == IResource.PROJECT) {
            checkLocationDeleted((IProject) resource);
        } else if (resource.getType() == IResource.ROOT) {
            IProject[] projects = ((IWorkspaceRoot) resource).getProjects();
            for (int i = 0; i < projects.length; i++) {
                checkLocationDeleted(projects[i]);
            }
        }