ISVNClientAdapter svnClientAdapterStatus = SVNProviderPlugin.getPlugin().createSVNClient(); statuses = svnClientAdapterStatus.getStatusRecursively(resource.getLocation().toFile(), true);
ISVNClientAdapter svnClientAdapterStatus = SVNProviderPlugin.getPlugin().createSVNClient(); statuses = svnClientAdapterStatus.getStatus(files);
    private static void updateStatusSet(IResource resource) throws SVNException {        IWorkspace workspace = ResourcesPlugin.getWorkspace();        IWorkspaceRoot workspaceRoot = workspace.getRoot();                // we get a set of resources for which we will get the status        IResource[] resources = getResourcesSet(resource);        File[] files = new File[resources.length];        ISVNStatus[] statuses = new ISVNStatus[resources.length];        for  (int i = 0; i < resources.length;i++) {            files[i] = resources[i].getLocation().toFile();        }             // don't do getRepository().getSVNClient() as we can ask the status of a file        // that is not associated with a known repository        // we don't need login & password so this is not a problem                   try {                    	ISVNClientAdapter svnClientAdapterStatus = SVNProviderPlugin.getPlugin().createSVNClient();            statuses = svnClientAdapterStatus.getStatusRecursively(resource.getLocation().toFile(), true);        } catch (SVNClientException e1) {            throw SVNException.wrapException(e1);        }                    for (int i = 0; i < statuses.length;i++) {            ISVNStatus status = statuses[i];            IPath pathEclipse = null;            File file = new File(status.getPath());            try {                String canonicalPath = file.getCanonicalPath();                pathEclipse = new Path(canonicalPath);            } catch (IOException e) {                // should never occur ...            }                            IResource resourceStatus = null;                            if (file.isDirectory()) {                        resourceStatus = workspaceRoot.getContainerForLocation(pathEclipse);            }            else             if (file.isFile()) {                resourceStatus =  workspaceRoot.getFileForLocation(pathEclipse);            }                            if (resourceStatus != null) {                try {                    resourceStatus.setSessionProperty(RESOURCE_SYNC_KEY, status);                } catch (CoreException e) {                    // can't set the property (because the resource does not exist                    // for example)                     }            }        }    }