List<AnAction> (final DefaultActionGroup toolbarActions) { List<AnAction> actions = new ArrayList<>(); // Rerun actions.add(createRerunAction()); // Stop actions.add(createStopAction()); // Execute actions.add( new ConsoleExecuteAction(myConsoleView, myConsoleExecuteActionHandler, myConsoleExecuteActionHandler.getEmptyExecuteAction(), myConsoleExecuteActionHandler, PythonIcons.Python.ExecuteCurrentStatement)); toolbarActions.addAll(actions); // Attach Debugger toolbarActions.add(new ConnectDebuggerAction()); // Show Queue toolbarActions.add(new ShowCommandQueueAction(myConsoleView)); // Scroll to the end toolbarActions.add(new ScrollToTheEndAction(myConsoleView.getEditor())); // Separator toolbarActions.add(Separator.create()); // Settings DefaultActionGroup settings = DefaultActionGroup.createPopupGroup(() -> PyBundle.message("pydev.console.runner.settings")); settings.getTemplatePresentation().setIcon(AllIcons.General.GearPlain); settings.add(new PyVariableViewSettings.SimplifiedView(null)); settings.add(new PyVariableViewSettings.VariablesPolicyGroup()); settings.add(new PyVariableViewSettings.QuotingPolicyGroup()); toolbarActions.add(settings); // Output actions DefaultActionGroup outputActions = DefaultActionGroup.createPopupGroup(() -> PyBundle.message("pydev.console.runner.output.actions")); outputActions.getTemplatePresentation().setIcon(AllIcons.General.InspectionsEye); outputActions.add(new ShowVarsAction(myConsoleView, myPydevConsoleCommunication)); // Show Variables outputActions.add(new SoftWrapAction()); // Use soft wraps outputActions.add(Separator.create()); outputActions.add(ConsoleHistoryController.getController(myConsoleView).getBrowseHistory()); // Console History outputActions.add(new ConsoleCopyOutputAction(myConsoleView)); // Copy Console Output toolbarActions.add(outputActions); // Actions without icons actions.add(PyConsoleUtil.createInterruptAction(myConsoleView)); actions.add(PyConsoleUtil.createTabCompletionAction(myConsoleView)); actions.add(createSplitLineAction()); return actions; }