Search in sources :

Example 1 with FileStatusManagerImpl

use of com.intellij.openapi.vcs.impl.FileStatusManagerImpl in project intellij-community by JetBrains.

the class EditorChangeAction method refreshFileStatus.

private void refreshFileStatus() {
    VirtualFile f = getAffectedDocuments()[0].getFile();
    if (f == null || f instanceof LightVirtualFile)
        return;
    for (Project each : ProjectManager.getInstance().getOpenProjects()) {
        FileStatusManagerImpl statusManager = (FileStatusManagerImpl) FileStatusManager.getInstance(each);
        statusManager.refreshFileStatusFromDocument(f, getDocument());
    }
}
Also used : VirtualFile(com.intellij.openapi.vfs.VirtualFile) LightVirtualFile(com.intellij.testFramework.LightVirtualFile) Project(com.intellij.openapi.project.Project) FileStatusManagerImpl(com.intellij.openapi.vcs.impl.FileStatusManagerImpl) LightVirtualFile(com.intellij.testFramework.LightVirtualFile)

Aggregations

Project (com.intellij.openapi.project.Project)1 FileStatusManagerImpl (com.intellij.openapi.vcs.impl.FileStatusManagerImpl)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 LightVirtualFile (com.intellij.testFramework.LightVirtualFile)1