public abstract class VcsDirtyScope
extends java.lang.Object
The dirty scope for a version control system. The instance of this interface
is passed to implementers of the ChangeProvider
interface to the method ChangeProvider.getChanges(VcsDirtyScope, ChangelistBuilder, com.intellij.openapi.progress.ProgressIndicator, ChangeListManagerGate)
.
The instance of this class is valid only while the project is valid.
Constructor and Description |
---|
VcsDirtyScope() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
belongsTo(FilePath path)
Check if the path belongs to the dirty scope.
|
abstract java.util.Collection<VirtualFile> |
getAffectedContentRoots() |
abstract java.util.Set<FilePath> |
getDirtyFiles()
Get dirty files and directories.
|
abstract java.util.Set<FilePath> |
getDirtyFilesNoExpand()
Get dirty files and directories.
|
abstract Project |
getProject() |
abstract java.util.Set<FilePath> |
getRecursivelyDirtyDirectories()
Get recursively dirty directories.
|
abstract AbstractVcs |
getVcs() |
abstract boolean |
isEmpty() |
abstract void |
iterate(Processor<? super FilePath> iterator)
Invoke the
iterator for all files in the dirty scope. |
abstract void |
iterateExistingInsideScope(Processor<? super VirtualFile> vf) |
boolean |
wasEveryThingDirty() |
public abstract java.util.Collection<VirtualFile> getAffectedContentRoots()
getRecursivelyDirtyDirectories()
,
getDirtyFiles()
,
ProjectLevelVcsManager.getVcsRootFor(FilePath)
public abstract Project getProject()
public abstract AbstractVcs getVcs()
public abstract java.util.Set<FilePath> getDirtyFiles()
getRecursivelyDirtyDirectories()
.public abstract java.util.Set<FilePath> getDirtyFilesNoExpand()
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.public abstract java.util.Set<FilePath> getRecursivelyDirtyDirectories()
public abstract void iterate(Processor<? super FilePath> iterator)
iterator
for all files in the dirty scope.
For recursively dirty directories all children are processed.iterator
- an iterator to invokepublic abstract void iterateExistingInsideScope(Processor<? super VirtualFile> vf)
public abstract boolean isEmpty()
public abstract boolean belongsTo(FilePath path)
path
- a path to checkpublic boolean wasEveryThingDirty()