else if ( status.getNodeKind() == SVNNodeKind.FILE ) {
else if ( SVNNodeKind.FILE == status.getNodeKind() ) {
    private IResource[] findChanges(IResource resource, int depth) throws TeamException {        System.out.println("SVNWorkspaceSubscriber.refresh()"+resource+" "+depth);		        IWorkspace workspace = ResourcesPlugin.getWorkspace();        IWorkspaceRoot workspaceRoot = workspace.getRoot();                remoteSyncStateStore.flushBytes(resource, depth);        ISVNClientAdapter client = SVNProviderPlugin.getPlugin().createSVNClient();        ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor( resource );        boolean descend = (depth == IResource.DEPTH_INFINITE)? true : false;        try {            List allChanges = new ArrayList();            Map syncState = new HashMap();            Set containerSet = new HashSet();            StatusCommand cmd = new StatusCommand(svnResource.getFile(), descend, false, true );            cmd.execute( client );            ISVNStatus[] statuses = cmd.getStatuses();             for (int i = 0; i < statuses.length; i++) {                ISVNStatus status = statuses[i];                IPath path = new Path(status.getPath());                IResource changedResource = null;                if ( status.getNodeKind() == SVNNodeKind.DIR ) {                    changedResource = workspaceRoot.getContainerForLocation(path);                }                else if ( status.getNodeKind() == SVNNodeKind.FILE ) {                    changedResource = workspaceRoot.getFileForLocation(path);                }                else if ( status.getNodeKind() == SVNNodeKind.UNKNOWN ) {                    changedResource = workspaceRoot.getContainerForLocation(path);                                        if( changedResource.exists() )                        containerSet.add( changedResource );                    else  if( !containerSet.contains( changedResource ) )                        changedResource = workspaceRoot.getFileForLocation(path);                }                if( changedResource != null ) {                    containerSet.add(changedResource.getParent());                                        StatusInfo remoteInfo = new StatusInfo(cmd.getRevision(), status.getRepositoryTextStatus() );                    remoteSyncStateStore.setBytes( changedResource, remoteInfo.asBytes() );                    //System.out.println(cmd.getRevision()+" "+changedResource+" R:"+status.getLastChangedRevision()+" L:"+status.getTextStatus()+" R:"+status.getRepositoryTextStatus());                    allChanges.add(changedResource);                }            }            return (IResource[]) allChanges.toArray(new IResource[allChanges.size()]);        } catch (SVNClientException e) {            throw new TeamException("Error getting status for resource "+resource, e);        }    }