public final class PushedFilePropertiesUpdaterImpl extends PushedFilePropertiesUpdater
Constructor and Description |
---|
PushedFilePropertiesUpdaterImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
filePropertiesChanged(VirtualFile file) |
void |
filePropertiesChanged(VirtualFile fileOrDir,
Condition<? super VirtualFile> acceptFileCondition)
Invalidates indices and other caches for the given file or its immediate children (in case it's a directory).
|
<T> void |
findAndUpdateValue(VirtualFile fileOrDir,
FilePropertyPusher<T> pusher,
T moduleValue) |
void |
initializeProperties() |
static void |
invokeConcurrentlyIfPossible(java.util.List<? extends java.lang.Runnable> tasks) |
void |
processAfterVfsChanges(java.util.List<? extends VFileEvent> events) |
void |
pushAll(FilePropertyPusher<?>... pushers) |
void |
pushAllPropertiesNow() |
void |
runConcurrentlyIfPossible(java.util.List<java.lang.Runnable> tasks) |
static <T> void |
updateValue(Project project,
VirtualFile fileOrDir,
T value,
FilePropertyPusher<T> pusher) |
getInstance
public PushedFilePropertiesUpdaterImpl(Project project)
public void processAfterVfsChanges(java.util.List<? extends VFileEvent> events)
public void runConcurrentlyIfPossible(java.util.List<java.lang.Runnable> tasks)
runConcurrentlyIfPossible
in class PushedFilePropertiesUpdater
public void initializeProperties()
initializeProperties
in class PushedFilePropertiesUpdater
public void pushAllPropertiesNow()
pushAllPropertiesNow
in class PushedFilePropertiesUpdater
public void filePropertiesChanged(VirtualFile fileOrDir, Condition<? super VirtualFile> acceptFileCondition)
PushedFilePropertiesUpdater
filePropertiesChanged
in class PushedFilePropertiesUpdater
public void pushAll(FilePropertyPusher<?>... pushers)
pushAll
in class PushedFilePropertiesUpdater
public static void invokeConcurrentlyIfPossible(java.util.List<? extends java.lang.Runnable> tasks)
public <T> void findAndUpdateValue(VirtualFile fileOrDir, FilePropertyPusher<T> pusher, T moduleValue)
findAndUpdateValue
in class PushedFilePropertiesUpdater
public static <T> void updateValue(Project project, VirtualFile fileOrDir, T value, FilePropertyPusher<T> pusher)
public void filePropertiesChanged(VirtualFile file)
filePropertiesChanged
in class PushedFilePropertiesUpdater