void (Exception e) { DefaultActionGroup actionGroup = new DefaultActionGroup(createRerunAction()); final ActionToolbar actionToolbar = ActionManager.getInstance().createActionToolbar("PydevConsoleRunnerErrors", actionGroup, false); // Runner creating final JPanel panel = new JPanel(new BorderLayout()); panel.add(actionToolbar.getComponent(), BorderLayout.WEST); NewErrorTreeViewPanel errorViewPanel = new NewErrorTreeViewPanel(myProject, null, false, false, null); String[] messages = StringUtil.isNotEmpty(e.getMessage()) ? StringUtil.splitByLines(e.getMessage()) : ArrayUtilRt.EMPTY_STRING_ARRAY; if (messages.length == 0) { messages = new String[]{PyBundle.message("pydev.console.runner.unknown.error")}; } errorViewPanel.addMessage(MessageCategory.ERROR, messages, null, -1, -1, null); panel.add(errorViewPanel, BorderLayout.CENTER); //noinspection DialogTitleCapitalization final RunContentDescriptor contentDescriptor = new RunContentDescriptor( null, myProcessHandler, panel, PyBundle.message("pydev.console.runner.error.running.console")); showContentDescriptor(contentDescriptor); }