Examples of EditorWindow


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

Examples of com.intellij.openapi.fileEditor.impl.EditorWindow

    if (virtualFile == null) return;
    Project project = bnfFile.getProject();
    installUpdateListener(project);

    FileEditorManagerEx fileEditorManager = FileEditorManagerEx.getInstanceEx(project);
    EditorWindow curWindow = fileEditorManager.getCurrentWindow();
    curWindow.split(SwingConstants.HORIZONTAL, false, virtualFile, true);
    fileEditorManager.openFile(virtualFile, true);
  }
View Full Code Here

Examples of com.intellij.openapi.fileEditor.impl.EditorWindow

        final FileEditorManagerEx fileEditorManager = FileEditorManagerEx.getInstanceEx(project);
        switch (openType) {
          case HORIZONTAL:
            fileEditorManagerEx.changeSplitterOrientation();
        }
        final EditorWindow activeWindow = EditorWindow.DATA_KEY.getData(dataContext);
        if (activeWindow == null)
          return;
        final EditorWindow nextWindow = fileEditorManager.getNextWindow(activeWindow);
        if (nextWindow == null)
          return;
        nextWindow.getManager().openFileImpl2(nextWindow, file, false);
        nextWindow.closeAllExcept(file);
      }
    });
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.