Search in sources :

Example 1 with DumbAware

use of com.intellij.openapi.project.DumbAware in project intellij-community by JetBrains.

the class TextEditorHighlightingPass method applyInformationToEditor.

@Override
public final void applyInformationToEditor() {
    // Document has changed.
    if (!isValid())
        return;
    if (DumbService.getInstance(myProject).isDumb() && !(this instanceof DumbAware)) {
        Document document = getDocument();
        PsiFile file = document == null ? null : PsiDocumentManager.getInstance(myProject).getPsiFile(document);
        if (file != null) {
            DaemonCodeAnalyzerEx.getInstanceEx(myProject).getFileStatusMap().markFileUpToDate(getDocument(), getId());
        }
        return;
    }
    doApplyInformationToEditor();
}
Also used : PsiFile(com.intellij.psi.PsiFile) DumbAware(com.intellij.openapi.project.DumbAware) Document(com.intellij.openapi.editor.Document)

Aggregations

Document (com.intellij.openapi.editor.Document)1 DumbAware (com.intellij.openapi.project.DumbAware)1 PsiFile (com.intellij.psi.PsiFile)1