for (Iterator it = resourcesToRefresh.values().iterator(); it.hasNext();) { statusCache.addStatus((IResource) it.next(), null);
for (Iterator it = resourcesToRefresh.iterator(); it.hasNext();) { IResource res = (IResource) it.next(); if ((res.getType() != IResource.FILE) && res.isPhantom()) { Set children = resourcesToRefresh(res, IResource.DEPTH_INFINITE, IContainer.INCLUDE_PHANTOMS | IContainer.INCLUDE_TEAM_PRIVATE_MEMBERS, 0); for (Iterator iter = children.iterator(); iter.hasNext();) { IResource child = (IResource) iter.next(); statusCache.removeStatus(child); refreshedResources.add(child); } } statusCache.removeStatus(res); refreshedResources.add(res);
    public void refreshStatus(IResource resource,int depth) throws SVNException {    	StatusUpdateStrategy strategy =     		(depth == IResource.DEPTH_INFINITE) 							? (StatusUpdateStrategy) new RecursiveStatusUpdateStrategy(statusCache)							: (StatusUpdateStrategy) new NonRecursiveStatusUpdateStrategy(statusCache);		try {					Map resourcesToRefresh = resourcesToRefresh(resource, depth);			IPath[] refreshedPaths = updateCache(strategy.statusesToUpdate(resource));			for (int i = 0; i < refreshedPaths.length; i++) {				resourcesToRefresh.remove(refreshedPaths[i]);			}			//Resources which were not refreshed above (e.g. deleted resources)			for (Iterator it = resourcesToRefresh.values().iterator(); it.hasNext();) {				statusCache.addStatus((IResource) it.next(), null);			}		}		catch (CoreException e)		{			throw SVNException.wrapException(e);		}    }