From b8452aeac7062a9b93afc328f75af1cde53164c3 Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Fri, 14 May 2021 19:11:34 +0300 Subject: [PATCH] IJP-985 New run/debug UI - populate extra session actions GitOrigin-RevId: d6862a1dffa1a16adb03c1fcd871fe81c4d588ea --- .../xdebugger/impl/ui/XDebugSessionTab3.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/XDebugSessionTab3.kt b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/XDebugSessionTab3.kt index 9bc24015c9ab..a64362e4ed10 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/XDebugSessionTab3.kt +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/XDebugSessionTab3.kt @@ -245,6 +245,20 @@ class XDebugSessionTab3( (myUi as? RunnerLayoutUiImpl)?.setLeftToolbarVisible(false) val toolbar = DefaultActionGroup() toolbar.addAll(getCustomizedActionGroup(XDebuggerActions.TOOL_WINDOW_TOP_TOOLBAR_3_GROUP)) + + // reversed because it was like this in the original tab + for (action in session.restartActions.reversed()) { + toolbar.add(action, Constraints(Anchor.AFTER, IdeActions.ACTION_RERUN)) + } + + for (action in session.extraActions.reversed()) { + toolbar.add(action, Constraints(Anchor.AFTER, IdeActions.ACTION_STOP_PROGRAM)) + } + + for (action in session.extraStopActions) { + toolbar.add(action, Constraints(Anchor.AFTER, IdeActions.ACTION_STOP_PROGRAM)) + } + myUi.options.setTopLeftToolbar(toolbar, ActionPlaces.DEBUGGER_TOOLBAR) myUi.options.setTitleProducer(Producer {