Search in sources :

Example 1 with BreadcrumbsXmlWrapper

use of com.intellij.xml.breadcrumbs.BreadcrumbsXmlWrapper in project intellij-community by JetBrains.

the class XmlTagTreeHighlightingConfigurable method clearTagTreeHighlighting.

private static void clearTagTreeHighlighting() {
    for (Project project : ProjectManager.getInstance().getOpenProjects()) {
        for (FileEditor fileEditor : FileEditorManager.getInstance(project).getAllEditors()) {
            if (fileEditor instanceof TextEditor) {
                final Editor editor = ((TextEditor) fileEditor).getEditor();
                XmlTagTreeHighlightingPass.clearHighlightingAndLineMarkers(editor, project);
                final BreadcrumbsXmlWrapper breadcrumbsXmlWrapper = BreadcrumbsXmlWrapper.getBreadcrumbsComponent(editor);
                if (breadcrumbsXmlWrapper != null) {
                    breadcrumbsXmlWrapper.queueUpdate();
                }
            }
        }
    }
}
Also used : Project(com.intellij.openapi.project.Project) FileEditor(com.intellij.openapi.fileEditor.FileEditor) TextEditor(com.intellij.openapi.fileEditor.TextEditor) Editor(com.intellij.openapi.editor.Editor) FileEditor(com.intellij.openapi.fileEditor.FileEditor) TextEditor(com.intellij.openapi.fileEditor.TextEditor) BreadcrumbsXmlWrapper(com.intellij.xml.breadcrumbs.BreadcrumbsXmlWrapper)

Aggregations

Editor (com.intellij.openapi.editor.Editor)1 FileEditor (com.intellij.openapi.fileEditor.FileEditor)1 TextEditor (com.intellij.openapi.fileEditor.TextEditor)1 Project (com.intellij.openapi.project.Project)1 BreadcrumbsXmlWrapper (com.intellij.xml.breadcrumbs.BreadcrumbsXmlWrapper)1