public interface VcsContextFactory
Modifier and Type | Interface and Description |
---|---|
static class |
VcsContextFactory.SERVICE |
Modifier and Type | Method and Description |
---|---|
VcsContext |
createCachedContextOn(AnActionEvent event) |
VcsContext |
createContextOn(AnActionEvent event) |
FilePath |
createFilePath(java.lang.String path,
boolean isDirectory) |
FilePath |
createFilePath(VirtualFile parent,
java.lang.String fileName,
boolean isDirectory) |
FilePath |
createFilePathOn(java.io.File file)
Creates a FilePath corresponding to the specified java.io.File.
|
FilePath |
createFilePathOn(java.io.File file,
boolean isDirectory)
Creates a FilePath corresponding to the specified java.io.File.
|
FilePath |
createFilePathOn(VirtualFile virtualFile)
Creates a FilePath corresponding to the specified virtual file.
|
FilePath |
createFilePathOn(VirtualFile parent,
java.lang.String name)
Creates a FilePath corresponding to a file with the specified name in the specified directory.
|
FilePath |
createFilePathOnDeleted(java.io.File file,
boolean isDirectory)
Deprecated.
|
FilePath |
createFilePathOnNonLocal(java.lang.String path,
boolean isDirectory)
Creates a FilePath corresponding to the specified path in a VCS repository.
|
LocalChangeList |
createLocalChangeList(Project project,
java.lang.String name) |
VcsContext createCachedContextOn(AnActionEvent event)
VcsContext createContextOn(AnActionEvent event)
FilePath createFilePathOn(VirtualFile virtualFile)
virtualFile
- the file for which the FilePath should be created.FilePath createFilePathOn(java.io.File file)
file
- the file for which the FilePath should be created.@Deprecated FilePath createFilePathOnDeleted(java.io.File file, boolean isDirectory)
createFilePathOn(File, boolean)
file
- the file for which the FilePath should be created.isDirectory
- whether file
specifies a file or a directory.FilePath createFilePathOn(java.io.File file, boolean isDirectory)
isDirectory
parameter to determine if the file is a directory.file
- the file for which the FilePath should be created.isDirectory
- whether file
specifies a file or a directory.FilePath createFilePathOnNonLocal(java.lang.String path, boolean isDirectory)
path
- the repository path for which the FilePath should be created.isDirectory
- whether file
specifies a file or a directory.FilePath createFilePathOn(VirtualFile parent, java.lang.String name)
parent
- the containing directory for the file.name
- the name of the file.FilePath createFilePath(VirtualFile parent, java.lang.String fileName, boolean isDirectory)
LocalChangeList createLocalChangeList(Project project, java.lang.String name)
FilePath createFilePath(java.lang.String path, boolean isDirectory)