monitor.beginTask("Refresing subversion resources", 1000 * resources.length);
monitor.beginTask("", 1000 * resources.length);
    public void refresh(IResource[] resources, int depth, IProgressMonitor monitor) throws TeamException {		monitor = Policy.monitorFor(monitor);		List errors = new ArrayList();		try {			monitor.beginTask("Refresing subversion resources", 1000 * resources.length);			for (int i = 0; i < resources.length; i++) {				IResource resource = resources[i];				monitor.subTask(resource.getName());				IStatus status = refresh(resource, depth, monitor);				if (!status.isOK()) {					errors.add(status);				}			}		} finally {			monitor.done();		} 		if (!errors.isEmpty()) {			int numSuccess = resources.length - errors.size();			throw new TeamException(new MultiStatus(SVNProviderPlugin.ID, 0, 					(IStatus[]) errors.toArray(new IStatus[errors.size()]), 					Policy.bind("ResourceVariantTreeSubscriber.1", new Object[] {getName(), Integer.toString(numSuccess), Integer.toString(resources.length)}), null)); //$NON-NLS-1$		}    }