svnClient.revert(resources[i].getLocation().toFile(), false); monitor.worked(100);
if (resources[i].getType() == IResource.FOLDER && SVNWorkspaceRoot.getSVNResourceFor( resources[i] ).getStatus().isAdded()) { svnClient.revert(resources[i].getLocation().toFile(), true); monitor.worked(100); SVNWorkspaceRoot.getSVNFolderFor( (IContainer)resources[i] ).refreshStatus(IResource.DEPTH_INFINITE);  String baseFullPath = resources[i].getFullPath().addTrailingSeparator().toString(); while (i < resources.length - 1 && resources[i+1].getFullPath().toString().startsWith( baseFullPath )) { monitor.worked(100); i++; } } else { svnClient.revert(resources[i].getLocation().toFile(), false); monitor.worked(100); }
    public void run(IProgressMonitor monitor) throws SVNException {        try {            ISVNClientAdapter svnClient = root.getRepository().getSVNClient();            OperationManager.getInstance().beginOperation(svnClient);                        for (int i = 0; i < resources.length; i++) {                svnClient.revert(resources[i].getLocation().toFile(), false);                monitor.worked(100);            }        } catch (SVNClientException e) {            throw SVNException.wrapException(e);        } finally {            OperationManager.getInstance().endOperation();            monitor.done();        }    }