mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
RunDashboard: Add shortcut for Stop action
This commit is contained in:
@@ -67,6 +67,7 @@ public class RunDashboardContent extends JPanel implements TreeContent, Disposab
|
||||
@NonNls private static final String RUN_DASHBOARD_CONTENT_TOOLBAR = "RunDashboardContentToolbar";
|
||||
@NonNls private static final String RUN_DASHBOARD_TREE_TOOLBAR = "RunDashboardTreeToolbar";
|
||||
@NonNls private static final String RUN_DASHBOARD_POPUP = "RunDashboardPopup";
|
||||
@NonNls private static final String RUN_DASHBOARD_STOP_ACTION_ID = "RunDashboard.Stop";
|
||||
|
||||
private static final String MESSAGE_CARD = "message";
|
||||
private static final String CONTENT_CARD = "content";
|
||||
@@ -353,9 +354,13 @@ public class RunDashboardContent extends JPanel implements TreeContent, Disposab
|
||||
private JComponent createToolbar() {
|
||||
JPanel toolBarPanel = new JPanel(new BorderLayout());
|
||||
|
||||
myDashboardContentActions.add(ActionManager.getInstance().getAction(RUN_DASHBOARD_CONTENT_TOOLBAR));
|
||||
ActionManager actionManager = ActionManager.getInstance();
|
||||
myDashboardContentActions.add(actionManager.getAction(RUN_DASHBOARD_CONTENT_TOOLBAR));
|
||||
AnAction stopAction = actionManager.getAction(RUN_DASHBOARD_STOP_ACTION_ID);
|
||||
stopAction.registerCustomShortcutSet(this, null);
|
||||
myDashboardContentActions.add(stopAction);
|
||||
myContentActionGroup.add(myDashboardContentActions);
|
||||
ActionToolbar contentActionsToolBar = ActionManager.getInstance().createActionToolbar(PLACE_TOOLBAR, myContentActionGroup, false);
|
||||
ActionToolbar contentActionsToolBar = actionManager.createActionToolbar(PLACE_TOOLBAR, myContentActionGroup, false);
|
||||
toolBarPanel.add(contentActionsToolBar.getComponent(), BorderLayout.CENTER);
|
||||
contentActionsToolBar.setTargetComponent(this);
|
||||
|
||||
|
||||
@@ -1055,11 +1055,11 @@
|
||||
<action id="RunDashboard.Run" class="com.intellij.execution.dashboard.actions.RunAction" use-shortcut-of="RunClass"/>
|
||||
<!--suppress PluginXmlValidity -->
|
||||
<action id="RunDashboard.Debug" class="com.intellij.execution.dashboard.actions.DebugAction" use-shortcut-of="DebugClass"/>
|
||||
<action id="RunDashboard.Stop" class="com.intellij.execution.dashboard.actions.StopAction"/>
|
||||
</group>
|
||||
<action id="RunDashboard.Stop" class="com.intellij.execution.dashboard.actions.StopAction" use-shortcut-of="Stop"/>
|
||||
|
||||
<action id="RunDashboard.ShowConfigurations" class="com.intellij.execution.dashboard.actions.ShowConfigurationsAction">
|
||||
<add-to-group group-id="Runner.Layout" anchor="after" relative-to-action="Runner.RestoreLayout"/>
|
||||
<add-to-group group-id="Runner.Layout" anchor="before" relative-to-action="Runner.RestoreLayout"/>
|
||||
</action>
|
||||
<group id="RunDashboardTreeToolbar"/>
|
||||
<group id="RunDashboardPopup">
|
||||
|
||||
Reference in New Issue
Block a user