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 VcsDirtyScope
VcsDirtyScope.getRecursivelyDirtyDirectories()
,
VcsDirtyScope.getDirtyFiles()
,
ProjectLevelVcsManager.getVcsRootFor(FilePath)
public Project getProject()
getProject
in class VcsDirtyScope
public AbstractVcs getVcs()
getVcs
in class VcsDirtyScope
public java.util.Set<FilePath> getDirtyFiles()
VcsDirtyScope
VcsDirtyScope.getRecursivelyDirtyDirectories()
.getDirtyFiles
in class VcsDirtyScope
public java.util.Set<FilePath> getDirtyFilesNoExpand()
VcsDirtyScope
VcsDirtyScope.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 VcsDirtyScope
public java.util.Set<FilePath> getRecursivelyDirtyDirectories()
VcsDirtyScope
getRecursivelyDirtyDirectories
in class VcsDirtyScope
public 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 VcsModifiableDirtyScope
newcomer
- a new directory to addpublic void addDirtyFile(FilePath newcomer)
addDirtyFile
in class VcsModifiableDirtyScope
newcomer
- a file or directory added to the dirty scope.public void iterate(Processor<? super FilePath> iterator)
VcsDirtyScope
iterator
for all files in the dirty scope.
For recursively dirty directories all children are processed.iterate
in class VcsDirtyScope
iterator
- an iterator to invokepublic void iterateExistingInsideScope(Processor<? super VirtualFile> processor)
iterateExistingInsideScope
in class VcsDirtyScope
public boolean isEmpty()
isEmpty
in class VcsDirtyScope
public boolean belongsTo(FilePath path)
VcsDirtyScope
belongsTo
in class VcsDirtyScope
path
- a path to checkpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean wasEveryThingDirty()
wasEveryThingDirty
in class VcsDirtyScope