for (int i = 0; i < changedResources.length; i++) { IResource resource = changedResources[i]; try { if( resource.exists() ) { ISVNLocalResource localResource = SVNWorkspaceRoot.getSVNResourceFor( resource ); LocalResourceStatus status = localResource.getStatus();  if( remoteSyncStateStore.getBytes( resource ) == null ) { StatusInfo remoteInfo; if( localResource.hasRemote() ) { remoteInfo = new StatusInfo(status.getLastChangedRevision(), SVNStatusKind.NORMAL ); } else { remoteInfo = new StatusInfo(null, SVNStatusKind.NONE ); } remoteSyncStateStore.setBytes( resource, remoteInfo.asBytes() ); } }           } catch (TeamException e) { e.printStackTrace(); } }
    private void internalResourceChanged(IResource[] changedResources) {        for (int i = 0; i < changedResources.length; i++) {            IResource resource = changedResources[i];            try {                if( resource.exists() ) {                    ISVNLocalResource localResource = SVNWorkspaceRoot.getSVNResourceFor( resource );                    LocalResourceStatus status = localResource.getStatus();                    if( remoteSyncStateStore.getBytes( resource ) == null ) {                        StatusInfo remoteInfo;                        if( localResource.hasRemote() ) {                            remoteInfo = new StatusInfo(status.getLastChangedRevision(), SVNStatusKind.NORMAL );                        }                        else {                            remoteInfo = new StatusInfo(null, SVNStatusKind.NONE );                        }                        remoteSyncStateStore.setBytes( resource, remoteInfo.asBytes() );                    }                }//TODO: catch outgoing deletions//                else {//                    if( remoteSyncStateStore.getBytes( resource ) == null ) {//                        localSyncStateStore.deleteBytes( resource );//                    }//                    else {//                        StatusInfo localInfo = new StatusInfo(null, SVNStatusKind.NONE );//                        localSyncStateStore.setBytes( resource,  localInfo.asBytes() );//                    }//                }            } catch (TeamException e) {                e.printStackTrace();            }        }        fireTeamResourceChange(SubscriberChangeEvent.asSyncChangedDeltas(this, changedResources));    }