Bug 223481 [GlobalActions] regression : Refresh is no longer performed in background
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/RefreshAction.java
* This method may be extended to refresh model objects related to the
	 * resource.
	 * </p>
	 * 
	 * @param resource
	 *            the resource to refresh. Must not be <code>null</code>.
	 * @param monitor
	 *            progress monitor
	 * @throws CoreException
	 *             if things go wrong
	 * @since 3.4
	 */
	protected void refreshResource(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]);
			}
		}
		resource.refreshLocal(IResource.DEPTH_INFINITE, monitor);
	}
}