public abstract class VcsVFSListener extends java.lang.Object implements Disposable
Modifier and Type | Class and Description |
---|---|
protected static class |
VcsVFSListener.AllDeletedFiles |
protected static interface |
VcsVFSListener.ExecuteAddCallback |
protected static class |
VcsVFSListener.MovedFileInfo |
protected class |
VcsVFSListener.StateProcessor |
protected static class |
VcsVFSListener.VcsDeleteType |
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
protected ChangeListManager |
myChangeListManager |
protected ExternallyAddedFilesProcessorImpl |
myExternalFilesProcessor |
protected VcsVFSListener.StateProcessor |
myProcessor |
protected Project |
myProject |
protected VcsShowConfirmationOption |
myRemoveOption |
protected AbstractVcs |
myVcs |
Modifier | Constructor and Description |
---|---|
protected |
VcsVFSListener(AbstractVcs vcs) |
protected |
VcsVFSListener(Project project,
AbstractVcs vcs)
Deprecated.
Use
VcsVFSListener(AbstractVcs) followed by installListeners() |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeContentsChange(VFileContentChangeEvent event) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
protected void |
executeAdd() |
protected void |
executeAdd(java.util.List<VirtualFile> addedFiles,
java.util.Map<VirtualFile,VirtualFile> copyFromMap)
Execute add that performs adding from specific collections
|
protected void |
executeAddWithoutIgnores(java.util.List<VirtualFile> addedFiles,
java.util.Map<VirtualFile,VirtualFile> copyFromMap,
VcsVFSListener.ExecuteAddCallback executeAddCallback) |
protected void |
executeDelete() |
protected boolean |
filterOutUnknownFiles() |
protected abstract java.lang.String |
getAddTitle() |
protected abstract java.lang.String |
getDeleteTitle() |
protected abstract java.lang.String |
getSingleFileAddPromptTemplate() |
protected abstract java.lang.String |
getSingleFileAddTitle() |
protected abstract java.lang.String |
getSingleFileDeletePromptTemplate() |
protected abstract java.lang.String |
getSingleFileDeleteTitle() |
protected void |
installListeners() |
protected abstract boolean |
isDirectoryVersioningSupported() |
protected boolean |
isEventAccepted(VFileEvent event) |
protected boolean |
isEventIgnored(VFileEvent event) |
protected boolean |
isFileCopyingFromTrackingSupported() |
protected boolean |
isRecursiveDeleteSupported() |
protected boolean |
isUnderMyVcs(FilePath filePath) |
protected boolean |
isUnderMyVcs(VirtualFile file) |
protected VcsVFSListener.VcsDeleteType |
needConfirmDeletion(VirtualFile file) |
protected abstract void |
performAdding(java.util.Collection<VirtualFile> addedFiles,
java.util.Map<VirtualFile,VirtualFile> copyFromMap) |
protected abstract void |
performDeletion(java.util.List<FilePath> filesToDelete) |
protected abstract void |
performMoveRename(java.util.List<VcsVFSListener.MovedFileInfo> movedFiles) |
protected void |
processMovedFile(VirtualFile file,
java.lang.String newParentPath,
java.lang.String newName) |
protected void |
saveUnsavedVcsIgnoreFiles() |
protected java.util.Collection<FilePath> |
selectFilePathsToDelete(java.util.List<FilePath> deletedFiles)
Select file paths to delete
|
protected static final Logger LOG
protected final Project myProject
protected final AbstractVcs myVcs
protected final ChangeListManager myChangeListManager
protected final VcsShowConfirmationOption myRemoveOption
protected final VcsVFSListener.StateProcessor myProcessor
protected final ExternallyAddedFilesProcessorImpl myExternalFilesProcessor
protected VcsVFSListener(AbstractVcs vcs)
installListeners()
@Deprecated protected VcsVFSListener(Project project, AbstractVcs vcs)
VcsVFSListener(AbstractVcs)
followed by installListeners()
protected void installListeners()
public void dispose()
Disposable
dispose
in interface Disposable
protected boolean isEventAccepted(VFileEvent event)
protected boolean isEventIgnored(VFileEvent event)
protected boolean isUnderMyVcs(VirtualFile file)
protected boolean isUnderMyVcs(FilePath filePath)
protected void executeAdd()
protected void executeAdd(java.util.List<VirtualFile> addedFiles, java.util.Map<VirtualFile,VirtualFile> copyFromMap)
addedFiles
- the added filescopyFromMap
- the copied filesprotected void executeAddWithoutIgnores(java.util.List<VirtualFile> addedFiles, java.util.Map<VirtualFile,VirtualFile> copyFromMap, VcsVFSListener.ExecuteAddCallback executeAddCallback)
protected void executeDelete()
protected void processMovedFile(VirtualFile file, java.lang.String newParentPath, java.lang.String newName)
protected void saveUnsavedVcsIgnoreFiles()
protected java.util.Collection<FilePath> selectFilePathsToDelete(java.util.List<FilePath> deletedFiles)
deletedFiles
- deleted files setprotected void beforeContentsChange(VFileContentChangeEvent event)
protected boolean filterOutUnknownFiles()
protected VcsVFSListener.VcsDeleteType needConfirmDeletion(VirtualFile file)
protected abstract java.lang.String getAddTitle()
protected abstract java.lang.String getSingleFileAddTitle()
protected abstract java.lang.String getSingleFileAddPromptTemplate()
protected abstract java.lang.String getDeleteTitle()
protected abstract java.lang.String getSingleFileDeleteTitle()
protected abstract java.lang.String getSingleFileDeletePromptTemplate()
protected abstract void performAdding(java.util.Collection<VirtualFile> addedFiles, java.util.Map<VirtualFile,VirtualFile> copyFromMap)
protected abstract void performDeletion(java.util.List<FilePath> filesToDelete)
protected abstract void performMoveRename(java.util.List<VcsVFSListener.MovedFileInfo> movedFiles)
protected abstract boolean isDirectoryVersioningSupported()
protected boolean isRecursiveDeleteSupported()
protected boolean isFileCopyingFromTrackingSupported()