IJP-985 New run/debug UI - populate extra session actions

GitOrigin-RevId: d6862a1dffa1a16adb03c1fcd871fe81c4d588ea
This commit is contained in:
Egor Ushakov
2021-05-14 19:11:34 +03:00
committed by intellij-monorepo-bot
parent d842dee48c
commit b8452aeac7

View File

@@ -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 {