Package com.intellij.openapi.fileEditor.impl

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


        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.impl.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.