public class VcsRootDetectorImpl extends java.lang.Object implements VcsRootDetector
| Constructor and Description |
|---|
VcsRootDetectorImpl(Project project) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<VcsRoot> |
detect()
Detect vcs roots for whole project
|
java.util.Collection<VcsRoot> |
detect(VirtualFile startDir)
Detect vcs roots for startDir
|
java.util.Collection<VcsRoot> |
getOrDetect()
Returns the cached result of the previous call to
VcsRootDetector.detect() if there was any, otherwise calls it and waits for the completion. |
public VcsRootDetectorImpl(Project project)
public java.util.Collection<VcsRoot> detect()
VcsRootDetectordetect in interface VcsRootDetectorpublic java.util.Collection<VcsRoot> detect(VirtualFile startDir)
VcsRootDetectordetect in interface VcsRootDetectorpublic java.util.Collection<VcsRoot> getOrDetect()
VcsRootDetectorVcsRootDetector.detect() if there was any, otherwise calls it and waits for the completion.getOrDetect in interface VcsRootDetector