public final class FileStatusManagerImpl extends FileStatusManager implements Disposable
Disposable.Parent
Constructor and Description |
---|
FileStatusManagerImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
addFileStatusListener(FileStatusListener listener) |
void |
addFileStatusListener(FileStatusListener listener,
Disposable parentDisposable) |
FileStatus |
calcStatus(VirtualFile virtualFile) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
void |
fileStatusChanged(VirtualFile file) |
void |
fileStatusesChanged() |
FileStatus |
getCachedStatus(VirtualFile file) |
static FileStatus |
getDefaultStatus(VirtualFile file) |
java.awt.Color |
getNotChangedDirectoryColor(VirtualFile file) |
FileStatus |
getRecursiveStatus(VirtualFile file) |
FileStatus |
getStatus(VirtualFile file)
Returns color that is associated with passed file in vcs subsystem.
|
void |
refreshFileStatusFromDocument(VirtualFile file,
Document doc) |
void |
removeFileStatusListener(FileStatusListener listener) |
getInstance
public FileStatusManagerImpl(Project project)
public FileStatus calcStatus(VirtualFile virtualFile)
public static FileStatus getDefaultStatus(VirtualFile file)
public void dispose()
Disposable
dispose
in interface Disposable
public void addFileStatusListener(FileStatusListener listener)
addFileStatusListener
in class FileStatusManager
public void addFileStatusListener(FileStatusListener listener, Disposable parentDisposable)
addFileStatusListener
in class FileStatusManager
public void fileStatusesChanged()
fileStatusesChanged
in class FileStatusManager
public void fileStatusChanged(VirtualFile file)
fileStatusChanged
in class FileStatusManager
public FileStatus getStatus(VirtualFile file)
FileStatusManager
Users are discouraged from comparing returned value with a constant, because it might be vcs-specific (HgChangeProvider#RENAMED) or affected by other means (ChangelistConflictFileStatusProvider#MODIFIED_OUTSIDE).
getStatus
in class FileStatusManager
public FileStatus getCachedStatus(VirtualFile file)
public void removeFileStatusListener(FileStatusListener listener)
removeFileStatusListener
in class FileStatusManager
public java.awt.Color getNotChangedDirectoryColor(VirtualFile file)
getNotChangedDirectoryColor
in class FileStatusManager
public FileStatus getRecursiveStatus(VirtualFile file)
getRecursiveStatus
in class FileStatusManager
public void refreshFileStatusFromDocument(VirtualFile file, Document doc)
refreshFileStatusFromDocument
in class FileStatusManager