Package com.intellij.injected.editor

Examples of com.intellij.injected.editor.EditorWindow


        final int localStartOffset = textRange.getStartOffset();
        String text;
        EditorHighlighter highlighter;
        if (consoleEditor instanceof EditorWindow) {
            EditorWindow editorWindow = (EditorWindow) consoleEditor;
            EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme();
            PsiFile file = editorWindow.getInjectedFile();
            final VirtualFile virtualFile = file.getVirtualFile();
            assert virtualFile != null;
            highlighter = HighlighterFactory.createHighlighter(virtualFile, scheme, getProject());
            String fullText = InjectedLanguageUtil.getUnescapedText(file, null, null);
            highlighter.setText(fullText);
View Full Code Here

TOP

Related Classes of com.intellij.injected.editor.EditorWindow

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.