public abstract class ProjectFileNodeUpdater
extends java.lang.Object
Constructor and Description |
---|
ProjectFileNodeUpdater(Project project,
Invoker invoker) |
Modifier and Type | Method and Description |
---|---|
protected int |
getUpdatingDelay() |
void |
updateFromElement(PsiElement element)
Notifies that the specified PSI element is changed.
|
void |
updateFromFile(VirtualFile file)
Notifies that the specified file (or folder) is changed.
|
void |
updateFromRoot()
Notifies that project roots are changed.
|
void |
updateImmediately(java.lang.Runnable onDone)
Notifies that all collected files should be reported as soon as possible.
|
protected abstract void |
updateStructure(boolean fromRoot,
java.util.Set<? extends VirtualFile> updatedFiles)
This method is called on invoker's thread to report changes in virtual files.
|
public void updateFromRoot()
onInvokerThread(boolean)
method will be executed with a small delay
after calling of this method.getUpdatingDelay()
public void updateFromFile(VirtualFile file)
onInvokerThread(boolean)
method will be executed with a small delay
after last calling of this method,
i.e. a bunch of modified files will be reported together.file
- a modified virtual filegetUpdatingDelay()
public void updateFromElement(PsiElement element)
element
- a modified PSI elementupdateFromFile(com.intellij.openapi.vfs.VirtualFile)
public void updateImmediately(java.lang.Runnable onDone)
protected int getUpdatingDelay()
onInvokerThread(boolean)
method calling,
that is used to collect a bunch of changesprotected abstract void updateStructure(boolean fromRoot, java.util.Set<? extends VirtualFile> updatedFiles)
fromRoot
- true
if roots are changedupdatedFiles
- a set of modified files