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()
VcsRootDetector
detect
in interface VcsRootDetector
public java.util.Collection<VcsRoot> detect(VirtualFile startDir)
VcsRootDetector
detect
in interface VcsRootDetector
public java.util.Collection<VcsRoot> getOrDetect()
VcsRootDetector
VcsRootDetector.detect()
if there was any, otherwise calls it and waits for the completion.getOrDetect
in interface VcsRootDetector