Package com.intellij.openapi.fileEditor.ex

Examples of com.intellij.openapi.fileEditor.ex.FileEditorManagerEx


    VirtualFile virtualFile = psiFile == null? null : psiFile.getVirtualFile();
    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


        setPromptInner(myPrompt);
    }

    public void setConsoleEditorEnabled(boolean consoleEditorEnabled) {
        if (isConsoleEditorEnabled() == consoleEditorEnabled) return;
        final FileEditorManagerEx fileManager = FileEditorManagerEx.getInstanceEx(getProject());
        if (consoleEditorEnabled) {
            fileManager.closeFile(myVirtualFile);
            myPanel.removeAll();
            myPanel.add(myHistoryViewer.getComponent());
            myPanel.add(myConsoleEditor.getComponent());

            myHistoryViewer.setHorizontalScrollbarVisible(false);
View Full Code Here

          openNextTab(e.getProject(), e.getDataContext(), fileByUrl);
        }
      }

      private void openNextTab(Project project, DataContext dataContext, VirtualFile file) {
        FileEditorManagerEx fileEditorManagerEx = FileEditorManagerEx.getInstanceEx(project);
        fileEditorManagerEx.createSplitter(1, EditorWindow.DATA_KEY.getData(dataContext));
        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

Related Classes of com.intellij.openapi.fileEditor.ex.FileEditorManagerEx

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.