Search in sources :

Example 1 with ISVNListener

use of org.tigris.subversion.subclipse.core.repo.ISVNListener in project subclipse by subclipse.

the class RepositoryManager method startup.

/**
 * called when plugin is started
 */
public void startup() {
    commentsManager.loadCommentHistory();
    commentsManager.loadCommentTemplates();
    keyFilesManager.loadKeyFileHistory();
    // we listen to changes to repository so that we can advise concerned views
    SVNProviderPlugin.getPlugin().getRepositoryResourcesManager().addRepositoryListener(new ISVNListener() {

        public void repositoryAdded(ISVNRepositoryLocation root) {
            rootAdded(root);
        }

        public void repositoryRemoved(ISVNRepositoryLocation root) {
            rootRemoved(root);
        }

        public void remoteResourceDeleted(ISVNRemoteResource resource) {
            resourceDeleted(resource);
        }

        public void remoteResourceCreated(ISVNRemoteFolder parent, String resourceName) {
            resourceCreated(parent, resourceName);
        }

        public void remoteResourceCopied(ISVNRemoteResource source, ISVNRemoteFolder destination) {
            resourceCopied(source, destination);
        }

        public void remoteResourceMoved(ISVNRemoteResource resource, ISVNRemoteFolder destinationFolder, String destinationResourceName) {
            resourceMoved(resource, destinationFolder, destinationResourceName);
        }

        public void repositoryModified(ISVNRepositoryLocation root) {
            rootModified(root);
        }
    });
}
Also used : ISVNRepositoryLocation(org.tigris.subversion.subclipse.core.ISVNRepositoryLocation) ISVNRemoteResource(org.tigris.subversion.subclipse.core.ISVNRemoteResource) ISVNListener(org.tigris.subversion.subclipse.core.repo.ISVNListener) ISVNRemoteFolder(org.tigris.subversion.subclipse.core.ISVNRemoteFolder)

Aggregations

ISVNRemoteFolder (org.tigris.subversion.subclipse.core.ISVNRemoteFolder)1 ISVNRemoteResource (org.tigris.subversion.subclipse.core.ISVNRemoteResource)1 ISVNRepositoryLocation (org.tigris.subversion.subclipse.core.ISVNRepositoryLocation)1 ISVNListener (org.tigris.subversion.subclipse.core.repo.ISVNListener)1