public class VcsRepositoryManager extends java.lang.Object implements Disposable, VcsListener
VcsRepositoryCreator
extension point in a thread safe way.Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static Topic<VcsRepositoryMappingListener> |
VCS_REPOSITORY_MAPPING_UPDATED |
Constructor and Description |
---|
VcsRepositoryManager(Project project) |
public static final Topic<VcsRepositoryMappingListener> VCS_REPOSITORY_MAPPING_UPDATED
public VcsRepositoryManager(Project project)
public static VcsRepositoryManager getInstance(Project project)
public void dispose()
Disposable
dispose
in interface Disposable
public void directoryMappingChanged()
VcsListener
directoryMappingChanged
in interface VcsListener
public Repository getRepositoryForFile(VirtualFile file)
public Repository getRepositoryForFileQuick(VirtualFile file)
public Repository getRepositoryForFile(VirtualFile file, boolean quick)
public Repository getRepositoryForFile(FilePath file, boolean quick)
public Repository getExternalRepositoryForFile(VirtualFile file)
public Repository getExternalRepositoryForFile(FilePath file)
public Repository getRepositoryForRootQuick(VirtualFile root)
public Repository getRepositoryForRoot(VirtualFile root)
public void addExternalRepository(VirtualFile root, Repository repository)
public void removeExternalRepository(VirtualFile root)
public boolean isExternal(Repository repository)
public java.util.Collection<Repository> getRepositories()
public java.lang.String toString()
toString
in class java.lang.Object
public void waitForAsyncTaskCompletion()