IResource[] updateResources = { resources[i] }; new UpdateOperation(getPart(), updateResources, SVNRevision.HEAD).run(monitor);
new UpdateOperation(getPart(), resources[i], SVNRevision.HEAD).run(monitor);
    protected void run(SVNTeamProvider provider, SyncInfoSet set, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {        final IResource[] resources = set.getResources();        run(new WorkspaceModifyOperation() {            protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {               for (int i = 0; i < resources.length; i++) {                   File tempFile = null;                   try {                       tempFile = copyToTempFile(resources[i]);	                } catch (Exception e) {	                    SVNUIPlugin.log(e.getMessage());	                }                    ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor(resources[i]);					if (svnResource instanceof LocalResource) ((LocalResource)svnResource).revert(false);					else svnResource.revert();					IResource[] updateResources = { resources[i] };					new UpdateOperation(getPart(), updateResources, SVNRevision.HEAD).run(monitor);					File file = new File(resources[i].getLocation().toString());					try {                        copy(tempFile, file);                    } catch (Exception e1) {                        SVNUIPlugin.log(e1.getMessage());                    }                    tempFile.delete();               }            }                  }, false /* cancelable */, PROGRESS_BUSYCURSOR);    }