public class VcsDirtyScopeImpl extends VcsModifiableDirtyScope
| Constructor and Description |
|---|
VcsDirtyScopeImpl(AbstractVcs vcs) |
VcsDirtyScopeImpl(AbstractVcs vcs,
boolean wasEverythingDirty) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDirtyDirRecursively(FilePath newcomer)
Add dirty directory recursively.
|
void |
addDirtyFile(FilePath newcomer)
Add dirty file to the scope.
|
void |
addDirtyPathFast(FilePath filePath,
boolean recursively)
Add file path into the sets, without removing potential duplicates.
|
boolean |
belongsTo(FilePath path)
Check if the path belongs to the dirty scope.
|
java.util.Collection<VirtualFile> |
getAffectedContentRoots() |
java.util.Set<FilePath> |
getDirtyFiles()
Get dirty files and directories.
|
java.util.Set<FilePath> |
getDirtyFilesNoExpand()
Get dirty files and directories.
|
Project |
getProject() |
java.util.Set<FilePath> |
getRecursivelyDirtyDirectories()
Get recursively dirty directories.
|
AbstractVcs |
getVcs() |
boolean |
isEmpty() |
void |
iterate(Processor<? super FilePath> iterator)
Invoke the
iterator for all files in the dirty scope. |
void |
iterateExistingInsideScope(Processor<? super VirtualFile> processor) |
void |
pack()
Remove potential duplicates from the sets.
|
java.lang.String |
toString() |
boolean |
wasEveryThingDirty() |
public VcsDirtyScopeImpl(AbstractVcs vcs)
public VcsDirtyScopeImpl(AbstractVcs vcs, boolean wasEverythingDirty)
public java.util.Collection<VirtualFile> getAffectedContentRoots()
getAffectedContentRoots in class VcsDirtyScopeVcsDirtyScope.getRecursivelyDirtyDirectories(),
VcsDirtyScope.getDirtyFiles(),
ProjectLevelVcsManager.getVcsRootFor(FilePath)public Project getProject()
getProject in class VcsDirtyScopepublic AbstractVcs getVcs()
getVcs in class VcsDirtyScopepublic java.util.Set<FilePath> getDirtyFiles()
VcsDirtyScopeVcsDirtyScope.getRecursivelyDirtyDirectories().getDirtyFiles in class VcsDirtyScopepublic java.util.Set<FilePath> getDirtyFilesNoExpand()
VcsDirtyScopeVcsDirtyScope.getDirtyFiles() that it does not adds all children
to the set of the dirty files automatically. The invoker should
process the children of valid directories themselves.getDirtyFilesNoExpand in class VcsDirtyScopepublic java.util.Set<FilePath> getRecursivelyDirtyDirectories()
VcsDirtyScopegetRecursivelyDirtyDirectories in class VcsDirtyScopepublic void addDirtyPathFast(FilePath filePath, boolean recursively)
pack(), that will be called later to perform this optimization.
Use addDirtyFile(com.intellij.openapi.vcs.FilePath) / addDirtyDirRecursively(com.intellij.openapi.vcs.FilePath) to add file path and remove duplicates.
public void pack()
public void addDirtyDirRecursively(FilePath newcomer)
addDirtyDirRecursively in class VcsModifiableDirtyScopenewcomer - a new directory to addpublic void addDirtyFile(FilePath newcomer)
addDirtyFile in class VcsModifiableDirtyScopenewcomer - a file or directory added to the dirty scope.public void iterate(Processor<? super FilePath> iterator)
VcsDirtyScopeiterator for all files in the dirty scope.
For recursively dirty directories all children are processed.iterate in class VcsDirtyScopeiterator - an iterator to invokepublic void iterateExistingInsideScope(Processor<? super VirtualFile> processor)
iterateExistingInsideScope in class VcsDirtyScopepublic boolean isEmpty()
isEmpty in class VcsDirtyScopepublic boolean belongsTo(FilePath path)
VcsDirtyScopebelongsTo in class VcsDirtyScopepath - a path to checkpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean wasEveryThingDirty()
wasEveryThingDirty in class VcsDirtyScope