@Override protected PythonConsoleView createConsoleView() { PythonConsoleView consoleView = new PythonConsoleView(getProject(), getConsoleTitle(), mySdk); myPydevConsoleCommunication.setConsoleFile(consoleView.getConsoleVirtualFile()); consoleView.addMessageFilter(new PythonTracebackFilter(getProject())); return consoleView; }
@Override public void enableConsole(boolean primary) { super.enableConsole(primary); if (!primary && !isPrimaryConsoleEnabled()) { PythonConsoleView console = getPydevConsoleView(); IdeFocusManager.findInstance() .requestFocus(console.getConsoleEditor().getContentComponent(), true); } }
protected void execNoWait(final String command) { UIUtil.invokeLaterIfNeeded(() -> myConsoleView.executeCode(command, null)); }
@NotNull protected String output() { return myConsoleView.getHistoryViewer().getDocument().getText(); }
protected void input(String text) { myConsoleView.executeInConsole(text); }