public abstract class ProjectLevelVcsManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Topic<VcsListener> |
VCS_CONFIGURATION_CHANGED |
static Topic<VcsListener> |
VCS_CONFIGURATION_CHANGED_IN_PLUGIN |
Constructor and Description |
---|
ProjectLevelVcsManager() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addMessageToConsoleWindow(java.lang.String message,
ConsoleViewContentType contentType) |
abstract void |
addMessageToConsoleWindow(java.lang.String message,
TextAttributes attributes)
Deprecated.
|
abstract void |
addVcsListener(VcsListener listener)
Deprecated.
use
VCS_CONFIGURATION_CHANGED instead |
abstract boolean |
checkAllFilesAreUnder(AbstractVcs abstractVcs,
VirtualFile[] files)
Checks if all given files are managed by the specified VCS.
|
abstract boolean |
checkVcsIsActive(AbstractVcs vcs)
Checks if the specified VCS is used by any of the modules in the project.
|
abstract boolean |
checkVcsIsActive(java.lang.String vcsName)
Checks if the VCS with the specified name is used by any of the modules in the project.
|
abstract AbstractVcs |
findVcsByName(java.lang.String name)
Returns the version control system with the specified name.
|
abstract AbstractVcs |
findVersioningVcs(VirtualFile file) |
abstract AbstractVcs [] |
getAllActiveVcss()
Returns the list of VCSes used by at least one module in the project.
|
abstract VcsRoot [] |
getAllVcsRoots() |
abstract VcsDescriptor[] |
getAllVcss()
Returns the list of all registered version control systems.
|
abstract VirtualFile[] |
getAllVersionedRoots() |
abstract VcsAnnotationLocalChangesListener |
getAnnotationLocalChangesListener() |
abstract CheckoutProvider.Listener |
getCompositeCheckoutListener() |
abstract ContentRevisionCache |
getContentRevisionCache() |
abstract VcsDescriptor |
getDescriptor(java.lang.String name) |
abstract java.util.List<VirtualFile> |
getDetailedVcsMappings(AbstractVcs vcs)
Also includes into list all modules under roots
|
abstract VcsDirectoryMapping |
getDirectoryMappingFor(FilePath path) |
abstract java.util.List<VcsDirectoryMapping> |
getDirectoryMappings() |
abstract java.util.List<VcsDirectoryMapping> |
getDirectoryMappings(AbstractVcs vcs) |
static ProjectLevelVcsManager |
getInstance(Project project)
Returns the instance for the specified project.
|
static ProjectLevelVcsManager |
getInstanceChecked(Project project)
Gets the instance of the component if the project wasn't disposed.
|
abstract VcsShowSettingOption |
getOrCreateCustomOption(java.lang.String vcsActionName,
AbstractVcs vcs) |
abstract VcsRootChecker |
getRootChecker(AbstractVcs vcs) |
abstract VirtualFile[] |
getRootsUnderVcs(AbstractVcs vcs) |
abstract java.util.List<VirtualFile> |
getRootsUnderVcsWithoutFiltering(AbstractVcs vcs) |
abstract VcsShowConfirmationOption |
getStandardConfirmation(VcsConfiguration.StandardConfirmation option,
AbstractVcs vcs) |
abstract VcsShowSettingOption |
getStandardOption(VcsConfiguration.StandardOption option,
AbstractVcs vcs) |
abstract AbstractVcs |
getVcsFor(FilePath file)
Returns the VCS managing the specified file path.
|
abstract AbstractVcs |
getVcsFor(VirtualFile file)
Returns the VCS managing the specified file.
|
abstract VcsHistoryCache |
getVcsHistoryCache() |
abstract VirtualFile |
getVcsRootFor(FilePath file)
Return the parent directory of the specified file path which is mapped to a VCS.
|
abstract VirtualFile |
getVcsRootFor(VirtualFile file)
Return the parent directory of the specified file which is mapped to a VCS.
|
abstract VcsRoot |
getVcsRootObjectFor(FilePath file) |
abstract VcsRoot |
getVcsRootObjectFor(VirtualFile file) |
abstract boolean |
hasActiveVcss() |
abstract boolean |
hasAnyMappings() |
abstract boolean |
isBackgroundVcsOperationRunning()
Checks if a background VCS operation (commit or update) is currently in progress.
|
abstract boolean |
isFileInContent(VirtualFile vf) |
abstract boolean |
isIgnored(FilePath filePath) |
abstract boolean |
isIgnored(VirtualFile vf) |
abstract void |
iterateVcsRoot(VirtualFile root,
Processor<? super FilePath> iterator) |
abstract void |
iterateVcsRoot(VirtualFile root,
Processor<? super FilePath> iterator,
VirtualFileFilter directoryFilter) |
abstract void |
iterateVfUnderVcsRoot(VirtualFile file,
Processor<? super VirtualFile> processor) |
abstract void |
removeVcsListener(VcsListener listener)
Deprecated.
use
VCS_CONFIGURATION_CHANGED instead |
abstract void |
setDirectoryMapping(java.lang.String path,
java.lang.String activeVcsName)
Deprecated.
|
abstract void |
setDirectoryMappings(java.util.List<VcsDirectoryMapping> items) |
abstract void |
showProjectOperationInfo(UpdatedFiles updatedFiles,
java.lang.String displayActionName) |
abstract void |
startBackgroundVcsOperation()
Marks the beginning of a background VCS operation (commit or update).
|
abstract void |
stopBackgroundVcsOperation()
Marks the end of a background VCS operation (commit or update).
|
void |
updateActiveVcss()
Deprecated.
Use just
setDirectoryMappings(List) . |
public static final Topic<VcsListener> VCS_CONFIGURATION_CHANGED
public static final Topic<VcsListener> VCS_CONFIGURATION_CHANGED_IN_PLUGIN
public abstract void iterateVfUnderVcsRoot(VirtualFile file, Processor<? super VirtualFile> processor)
public static ProjectLevelVcsManager getInstance(Project project)
public static ProjectLevelVcsManager getInstanceChecked(Project project)
public abstract VcsDescriptor[] getAllVcss()
public abstract AbstractVcs findVcsByName(java.lang.String name)
null
if none was found.public abstract VcsDescriptor getDescriptor(java.lang.String name)
public abstract boolean checkAllFilesAreUnder(AbstractVcs abstractVcs, VirtualFile[] files)
public abstract AbstractVcs getVcsFor(VirtualFile file)
null
if the file does not belong to any module or the module
it belongs to is not under version control.public abstract AbstractVcs getVcsFor(FilePath file)
null
if the file does not belong to any module or the module
it belongs to is not under version control.public abstract VirtualFile getVcsRootFor(VirtualFile file)
null
if the specified file is not in a VCS-managed directory.public abstract VirtualFile getVcsRootFor(FilePath file)
null
if the specified file is not in a VCS-managed directory.public abstract VcsRoot getVcsRootObjectFor(VirtualFile file)
public abstract boolean checkVcsIsActive(AbstractVcs vcs)
public abstract boolean checkVcsIsActive(java.lang.String vcsName)
public abstract AbstractVcs [] getAllActiveVcss()
public abstract boolean hasActiveVcss()
public abstract boolean hasAnyMappings()
@Deprecated public abstract void addMessageToConsoleWindow(java.lang.String message, TextAttributes attributes)
addMessageToConsoleWindow(String, ConsoleViewContentType)
public abstract void addMessageToConsoleWindow(java.lang.String message, ConsoleViewContentType contentType)
public abstract VcsShowSettingOption getStandardOption(VcsConfiguration.StandardOption option, AbstractVcs vcs)
public abstract VcsShowConfirmationOption getStandardConfirmation(VcsConfiguration.StandardConfirmation option, AbstractVcs vcs)
public abstract VcsShowSettingOption getOrCreateCustomOption(java.lang.String vcsActionName, AbstractVcs vcs)
public abstract void showProjectOperationInfo(UpdatedFiles updatedFiles, java.lang.String displayActionName)
@Deprecated public abstract void addVcsListener(VcsListener listener)
VCS_CONFIGURATION_CHANGED
instead@Deprecated public abstract void removeVcsListener(VcsListener listener)
VCS_CONFIGURATION_CHANGED
insteadpublic abstract void startBackgroundVcsOperation()
public abstract void stopBackgroundVcsOperation()
public abstract boolean isBackgroundVcsOperationRunning()
public abstract java.util.List<VirtualFile> getRootsUnderVcsWithoutFiltering(AbstractVcs vcs)
public abstract VirtualFile[] getRootsUnderVcs(AbstractVcs vcs)
public abstract java.util.List<VirtualFile> getDetailedVcsMappings(AbstractVcs vcs)
public abstract VirtualFile[] getAllVersionedRoots()
public abstract VcsRoot [] getAllVcsRoots()
@Deprecated public void updateActiveVcss()
setDirectoryMappings(List)
.public abstract java.util.List<VcsDirectoryMapping> getDirectoryMappings()
public abstract java.util.List<VcsDirectoryMapping> getDirectoryMappings(AbstractVcs vcs)
public abstract VcsDirectoryMapping getDirectoryMappingFor(FilePath path)
@Deprecated public abstract void setDirectoryMapping(java.lang.String path, java.lang.String activeVcsName)
public abstract void setDirectoryMappings(java.util.List<VcsDirectoryMapping> items)
public abstract void iterateVcsRoot(VirtualFile root, Processor<? super FilePath> iterator)
public abstract void iterateVcsRoot(VirtualFile root, Processor<? super FilePath> iterator, VirtualFileFilter directoryFilter)
public abstract AbstractVcs findVersioningVcs(VirtualFile file)
public abstract VcsRootChecker getRootChecker(AbstractVcs vcs)
public abstract CheckoutProvider.Listener getCompositeCheckoutListener()
public abstract VcsHistoryCache getVcsHistoryCache()
public abstract ContentRevisionCache getContentRevisionCache()
public abstract boolean isFileInContent(VirtualFile vf)
public abstract boolean isIgnored(VirtualFile vf)
public abstract boolean isIgnored(FilePath filePath)
public abstract VcsAnnotationLocalChangesListener getAnnotationLocalChangesListener()