[rd debugger] Drop frontend action groups to keep the compatibility with plugins

GitOrigin-RevId: 7431aa9f6a508f1212959a44995bffa22fe90ed2
This commit is contained in:
Maksim Zuev
2025-09-09 13:09:17 +00:00
committed by intellij-monorepo-bot
parent 25edf99019
commit 7a81237ef4
8 changed files with 19 additions and 102 deletions
@@ -221,32 +221,27 @@
<action id="Debugger.NewCustomField" class="com.intellij.debugger.actions.NewCustomFieldAction">
<add-to-group group-id="XDebugger.Variables.Tree.Popup" anchor="first"/>
<add-to-group group-id="XDebugger.Watches.Tree.Popup" anchor="after" relative-to-action="XDebugger.NewWatch"/>
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Watches.Frontend" anchor="after" relative-to-action="XDebugger.NewWatch"/>
</action>
<action id="Debugger.EditCustomField" class="com.intellij.debugger.actions.EditCustomFieldAction"
use-shortcut-of="XDebugger.SetValue">
<add-to-group group-id="XDebugger.Variables.Tree.Popup" anchor="first"/>
<add-to-group group-id="XDebugger.Watches.Tree.Popup" anchor="after" relative-to-action="XDebugger.EditWatch"/>
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Watches.Frontend" anchor="after" relative-to-action="XDebugger.EditWatch"/>
</action>
<action id="Debugger.RemoveCustomField" class="com.intellij.debugger.actions.RemoveCustomFieldAction"
use-shortcut-of="XDebugger.RemoveWatch">
<add-to-group group-id="XDebugger.Variables.Tree.Popup" anchor="first"/>
<add-to-group group-id="XDebugger.Watches.Tree.Popup" anchor="after" relative-to-action="XDebugger.RemoveWatch"/>
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Watches.Frontend" anchor="after" relative-to-action="XDebugger.RemoveWatch"/>
</action>
<action id="Debugger.EditArrayFilter" class="com.intellij.debugger.actions.ArrayFilterAction$Edit"
use-shortcut-of="XDebugger.SetValue">
<add-to-group group-id="XDebugger.Variables.Tree.Popup" anchor="first"/>
<add-to-group group-id="XDebugger.Watches.Tree.Popup" anchor="after" relative-to-action="XDebugger.EditWatch"/>
<add-to-group group-id="XDebugger.Frames.Tree.Popup.Frontend" anchor="first"/>
</action>
<action id="Debugger.RemoveArrayFilter" class="com.intellij.debugger.actions.ArrayFilterAction$Delete"
use-shortcut-of="XDebugger.RemoveWatch">
<add-to-group group-id="XDebugger.Variables.Tree.Popup" anchor="first"/>
<add-to-group group-id="XDebugger.Watches.Tree.Popup" anchor="after" relative-to-action="XDebugger.RemoveWatch"/>
<add-to-group group-id="XDebugger.Frames.Tree.Popup.Frontend" anchor="first"/>
</action>
<action id="Debugger.CustomizeThreadsView" class="com.intellij.debugger.actions.CustomizeThreadsViewAction">
@@ -256,11 +251,9 @@
<action id="Debugger.EditFrameSource" class="com.intellij.debugger.actions.EditFrameSourceAction" use-shortcut-of="EditSource"/>
<action id="Debugger.FilterArray" class="com.intellij.debugger.actions.ArrayAction$FilterArrayAction">
<add-to-group group-id="XDebugger.ValueGroup" anchor="last"/>
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Bottom.Section.Frontend" anchor="last"/>
</action>
<action id="Debugger.AdjustArrayRange" class="com.intellij.debugger.actions.ArrayAction$AdjustArrayRangeAction">
<add-to-group group-id="XDebugger.ValueGroup" anchor="last"/>
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Bottom.Section.Frontend" anchor="last"/>
</action>
<action id="Debugger.ShowRelatedStack" class="com.intellij.debugger.actions.ShowRelatedStackAction">
<add-to-group group-id="XDebugger.ValueGroup" anchor="first"/>
@@ -271,21 +264,18 @@
<action id="Debugger.ForceEarlyReturn" class="com.intellij.debugger.actions.ForceEarlyReturnAction">
<add-to-group group-id="XDebugger.Frames.Tree.Popup" anchor="after" relative-to-action="Debugger.PopFrame"/>
<add-to-group group-id="XDebugger.Frames.Tree.Popup.Frontend" anchor="after" relative-to-action="Debugger.PopFrame"/>
<add-to-group group-id="DebuggingActionsGroup" anchor="after" relative-to-action="Debugger.PopFrame"/>
<add-to-group group-id="XDebugger.ToolWindow.TopToolbar3.Extra"/>
</action>
<action id="Debugger.ThrowException" class="com.intellij.debugger.actions.ThrowExceptionAction">
<add-to-group group-id="XDebugger.Frames.Tree.Popup" anchor="after" relative-to-action="Debugger.PopFrame"/>
<add-to-group group-id="XDebugger.Frames.Tree.Popup.Frontend" anchor="after" relative-to-action="Debugger.PopFrame"/>
<add-to-group group-id="DebuggingActionsGroup" anchor="after" relative-to-action="Debugger.ForceEarlyReturn"/>
<add-to-group group-id="XDebugger.ToolWindow.TopToolbar3.Extra"/>
</action>
<action id="Debugger.AddSteppingFilter" class="com.intellij.debugger.actions.AddSteppingFilterAction">
<add-to-group group-id="XDebugger.Frames.Tree.Popup"/>
<add-to-group group-id="XDebugger.Frames.Tree.Popup.Frontend"/>
</action>
<action id="Debugger.SwitchToTheNextContext" class="com.intellij.debugger.actions.SwitchToTheNextContextAction"/>
@@ -42,24 +42,19 @@
id="MemoryView.ShowInstancesFromDebuggerTree">
<add-to-group group-id="XDebugger.ValueGroup" anchor="after"
relative-to-action="Debugger.ShowReferring"/>
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Middle.Section.Frontend" anchor="last"/>
</action>
<action class="com.intellij.debugger.memory.action.CalculateRetainedSizeAction"
id="Memory.CalculateRetainedSize">
<add-to-group group-id="XDebugger.ValueGroup" anchor="after"
relative-to-action="MemoryView.ShowInstancesFromDebuggerTree"/>
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Middle.Section.Frontend" anchor="after"
relative-to-action="MemoryView.ShowInstancesFromDebuggerTree"/>
</action>
</actions>
<actions resource-bundle="messages.ActionsBundle">
<action id="Debugger.ViewText" class="com.intellij.debugger.actions.ViewTextAction">
<add-to-group group-id="XDebugger.ValueGroup" anchor="last"/>
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Bottom.Section.Frontend" anchor="last"/>
</action>
<group id="Debugger.ViewAsGroup" class="com.intellij.java.debugger.impl.shared.actions.ViewAsGroup">
<add-to-group group-id="XDebugger.ValueGroup" anchor="last"/>
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Bottom.Section.Frontend" anchor="last"/>
</group>
<action id="Debugger.CreateRenderer" class="com.intellij.java.debugger.impl.shared.actions.CreateRendererAction">
<add-to-group group-id="XDebugger.Watches.Inline.Popup" anchor="last"/>
@@ -68,17 +63,13 @@
<action id="Debugger.AutoRenderer" class="com.intellij.java.debugger.impl.shared.actions.AutoRendererAction"/>
<action id="Debugger.ShowTypes" class="com.intellij.java.debugger.impl.shared.actions.ShowTypesAction">
<add-to-group group-id="XDebugger.ValueGroup" anchor="after" relative-to-action="Debugger.ViewAsGroup"/>
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Bottom.Section.Frontend" anchor="after"
relative-to-action="Debugger.ViewAsGroup"/>
</action>
<action id="Debugger.MuteRenderers" class="com.intellij.java.debugger.impl.shared.actions.MuteRenderersAction">
<add-to-group group-id="XDebugger.ValueGroup" anchor="after" relative-to-action="Debugger.ShowTypes"/>
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Bottom.Section.Frontend" anchor="after" relative-to-action="Debugger.ShowTypes"/>
</action>
<action id="Debugger.CustomizeContextView" class="com.intellij.java.debugger.impl.shared.actions.CustomizeContextViewAction">
<add-to-group group-id="XDebugger.Variables.Tree.Popup" anchor="last"/>
<add-to-group group-id="XDebugger.Watches.Tree.Popup" anchor="last"/>
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Bottom.Section.Frontend" anchor="last"/>
</action>
</actions>
</idea-plugin>
@@ -6,84 +6,36 @@
<group id="XDebugger.Threads.View.Popup">
<reference ref="Debugger.PopFrame"/>
</group>
<group id="XDebugger.Inspect.Tree.Popup.Frontend">
<group id="XDebugger.Inspect.Tree.Popup.Top.Section.Frontend"/>
<separator/>
<group id="XDebugger.Inspect.Tree.Popup.Middle.Section.Frontend">
<reference ref="EvaluateExpression"/>
</group>
<separator/>
<group id="XDebugger.Inspect.Tree.Popup.Jump.To.Section.Frontend"/>
<separator/>
<group id="XDebugger.Inspect.Tree.Popup.Bottom.Section.Frontend"/>
</group>
<group id="XDebugger.Inspect.Tree.Popup.Watches.Frontend">
<separator/>
<reference ref="XDebugger.Inspect.Tree.Popup.Frontend"/>
</group>
<group id="XDebugger.Actions">
<action id="Debugger.AddToWatch" class="com.intellij.xdebugger.impl.actions.AddToWatchesAction" icon="AllIcons.Debugger.AddToWatch">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Middle.Section.Frontend" anchor="after"
relative-to-action="EvaluateExpression"/>
</action>
<action id="Debugger.AddToWatch" class="com.intellij.xdebugger.impl.actions.AddToWatchesAction" icon="AllIcons.Debugger.AddToWatch"/>
<action id="Debugger.AddInlineWatch" class="com.intellij.xdebugger.impl.inline.AddInlineWatchAction" icon="AllIcons.Debugger.AddToWatch"/>
<action id="Debugger.EvaluateInConsole" class="com.intellij.xdebugger.impl.actions.EvaluateInConsoleAction"/>
<action id="XDebugger.Inspect" class="com.intellij.xdebugger.impl.ui.tree.actions.XInspectAction">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Top.Section.Frontend"/>
</action>
<action id="Debugger.MarkObject" class="com.intellij.xdebugger.impl.actions.MarkObjectAction" use-shortcut-of="ToggleBookmark">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Top.Section.Frontend" anchor="after"
relative-to-action="XDebugger.Inspect"/>
</action>
<action id="XDebugger.SetValue" class="com.intellij.xdebugger.impl.ui.tree.actions.XSetValueAction">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Top.Section.Frontend" anchor="after"
relative-to-action="Debugger.MarkObject"/>
</action>
<action id="XDebugger.CopyValue" class="com.intellij.xdebugger.impl.ui.tree.actions.XCopyValueAction$Simple" use-shortcut-of="$Copy">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Top.Section.Frontend" anchor="after"
relative-to-action="XDebugger.SetValue"/>
</action>
<action id="XDebugger.CompareValueWithClipboard" class="com.intellij.xdebugger.impl.ui.tree.actions.XCompareWithClipboardAction">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Top.Section.Frontend" anchor="after"
relative-to-action="XDebugger.CopyValue"/>
</action>
<action id="XDebugger.CopyName" class="com.intellij.xdebugger.impl.ui.tree.actions.XCopyNameAction">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Top.Section.Frontend" anchor="after"
relative-to-action="XDebugger.CompareValueWithClipboard"/>
</action>
<action id="XDebugger.Inspect" class="com.intellij.xdebugger.impl.ui.tree.actions.XInspectAction"/>
<action id="Debugger.MarkObject" class="com.intellij.xdebugger.impl.actions.MarkObjectAction" use-shortcut-of="ToggleBookmark"/>
<action id="XDebugger.SetValue" class="com.intellij.xdebugger.impl.ui.tree.actions.XSetValueAction"/>
<action id="XDebugger.CopyValue" class="com.intellij.xdebugger.impl.ui.tree.actions.XCopyValueAction$Simple" use-shortcut-of="$Copy"/>
<action id="XDebugger.CompareValueWithClipboard" class="com.intellij.xdebugger.impl.ui.tree.actions.XCompareWithClipboardAction"/>
<action id="XDebugger.CopyName" class="com.intellij.xdebugger.impl.ui.tree.actions.XCopyNameAction"/>
<action id="XDebugger.JumpToSource" class="com.intellij.xdebugger.impl.ui.tree.actions.XJumpToSourceAction"
use-shortcut-of="EditSource">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Jump.To.Section.Frontend" anchor="first"/>
</action>
<action id="XDebugger.JumpToTypeSource" class="com.intellij.xdebugger.impl.ui.tree.actions.XJumpToTypeSourceAction">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Jump.To.Section.Frontend" anchor="after" relative-to-action="XDebugger.JumpToSource"/>
</action>
use-shortcut-of="EditSource"/>
<action id="XDebugger.JumpToTypeSource" class="com.intellij.xdebugger.impl.ui.tree.actions.XJumpToTypeSourceAction"/>
<action id="Debugger.Tree.EvaluateInConsole" class="com.intellij.xdebugger.impl.ui.tree.actions.EvaluateInConsoleFromTreeAction"/>
<action id="XDebugger.NewWatch" class="com.intellij.xdebugger.impl.frame.actions.XNewWatchAction" icon="AllIcons.General.Add">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Watches.Frontend" anchor="first"/>
</action>
<action id="XDebugger.EditWatch" class="com.intellij.xdebugger.impl.frame.actions.XEditWatchAction" use-shortcut-of="XDebugger.SetValue">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Watches.Frontend" anchor="after" relative-to-action="XDebugger.RemoveAllWatches"/>
</action>
<action id="XDebugger.NewWatch" class="com.intellij.xdebugger.impl.frame.actions.XNewWatchAction" icon="AllIcons.General.Add"/>
<action id="XDebugger.EditWatch" class="com.intellij.xdebugger.impl.frame.actions.XEditWatchAction"
use-shortcut-of="XDebugger.SetValue"/>
<action id="XDebugger.CopyWatch" class="com.intellij.xdebugger.impl.frame.actions.XCopyWatchAction" icon="AllIcons.Actions.Copy" use-shortcut-of="EditorDuplicate"/>
<action id="XDebugger.RemoveWatch" class="com.intellij.xdebugger.impl.frame.actions.XRemoveWatchAction" icon="AllIcons.General.Remove"
use-shortcut-of="$Delete">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Watches.Frontend" anchor="after" relative-to-action="XDebugger.NewWatch"/>
</action>
use-shortcut-of="$Delete"/>
<action id="XDebugger.MoveWatchUp" class="com.intellij.xdebugger.impl.frame.actions.XMoveWatchUp" use-shortcut-of="MoveLineUp"/>
<action id="XDebugger.MoveWatchDown" class="com.intellij.xdebugger.impl.frame.actions.XMoveWatchDown" use-shortcut-of="MoveLineDown"/>
<action id="XDebugger.SeparateWatches" class="com.intellij.xdebugger.impl.frame.actions.XSeparateWatchesAndVariables"
icon="AllIcons.Debugger.Watch"/>
<action id="XDebugger.PauseWatch" class="com.intellij.xdebugger.impl.frame.actions.XPauseWatchAction">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Watches.Frontend" anchor="after" relative-to-action="XDebugger.EditWatch"/>
</action>
<action id="XDebugger.PauseWatch" class="com.intellij.xdebugger.impl.frame.actions.XPauseWatchAction"/>
<action id="XDebugger.ToggleEvaluateExpressionField" class="com.intellij.xdebugger.impl.frame.actions.XToggleEvaluateExpressionFieldAction"/>
<action id="XDebugger.RemoveAllWatches" class="com.intellij.xdebugger.impl.frame.actions.XRemoveAllWatchesAction">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Watches.Frontend" anchor="after" relative-to-action="XDebugger.RemoveWatch"/>
</action>
<action id="XDebugger.RemoveAllWatches" class="com.intellij.xdebugger.impl.frame.actions.XRemoveAllWatchesAction"/>
<action id="XDebugger.MuteBreakpoints" class="com.intellij.xdebugger.impl.actions.MuteBreakpointAction"
icon="AllIcons.Debugger.MuteBreakpoints"/>
<action id="XDebugger.RemoveAllButThisBreakpoint" class="com.intellij.xdebugger.impl.actions.RemoveAllButThisBreakpointAction">
@@ -95,10 +47,7 @@
<action id="XDebugger.ToggleSortValues" class="com.intellij.xdebugger.impl.ui.tree.actions.SortValuesToggleAction" icon="AllIcons.ObjectBrowser.Sorted"/>
<action id="Debugger.FocusOnBreakpoint" class="com.intellij.xdebugger.impl.actions.FocusOnBreakpointAction"/>
<action id="Debugger.FocusOnFinish" class="com.intellij.xdebugger.impl.actions.FocusOnFinishAction"/>
<action id="Debugger.ShowReferring" class="com.intellij.xdebugger.impl.ui.tree.actions.ShowReferringObjectsAction">
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Middle.Section.Frontend" anchor="after"
relative-to-action="Debugger.AddToWatch"/>
</action>
<action id="Debugger.ShowReferring" class="com.intellij.xdebugger.impl.ui.tree.actions.ShowReferringObjectsAction"/>
<action id="Debugger.RemoveAllBreakpoints" class="com.intellij.xdebugger.impl.actions.RemoveAllBreakpointsAction"/>
<action id="Debugger.RemoveAllBreakpointsInFile" class="com.intellij.xdebugger.impl.actions.RemoveAllBreakpointsInFileAction"/>
<action id="Debugger.FreezeActiveThreadAction" class="com.intellij.xdebugger.impl.actions.FreezeActiveThreadAction" icon="AllIcons.Debugger.Freeze">
@@ -32,12 +32,10 @@ public interface XDebuggerActions {
@NonNls String TOOL_WINDOW_TOP_TOOLBAR_3_EXTRA_GROUP = "XDebugger.ToolWindow.TopToolbar3.Extra";
@NonNls String TOOL_WINDOW_LEFT_TOOLBAR_GROUP = "XDebugger.ToolWindow.LeftToolbar";
@NonNls String EVALUATE_DIALOG_TREE_POPUP_GROUP = "XDebugger.Evaluation.Dialog.Tree.Popup";
@NonNls String INSPECT_TREE_POPUP_GROUP_FRONTEND = "XDebugger.Inspect.Tree.Popup.Frontend";
@NonNls String INSPECT_TREE_POPUP_GROUP = "XDebugger.Inspect.Tree.Popup";
@NonNls String VARIABLES_TREE_TOOLBAR_GROUP = "XDebugger.Variables.Tree.Toolbar";
@NonNls String VARIABLES_TREE_POPUP_GROUP = "XDebugger.Variables.Tree.Popup";
@NonNls String WATCHES_TREE_POPUP_GROUP = "XDebugger.Watches.Tree.Popup";
@NonNls String WATCHES_TREE_POPUP_GROUP_FRONTEND = "XDebugger.Inspect.Tree.Popup.Watches.Frontend";
@NonNls String WATCHES_INLINE_POPUP_GROUP = "XDebugger.Watches.Inline.Popup";
@NonNls String WATCHES_TREE_TOOLBAR_GROUP = "XDebugger.Watches.Tree.Toolbar";
@NonNls String FRAMES_TREE_POPUP_GROUP = "XDebugger.Frames.Tree.Popup";
@@ -107,9 +107,7 @@ public class XDebuggerEvaluationDialog extends DialogWrapper {
setOKButtonText(XDebuggerBundle.message("xdebugger.button.evaluate"));
setCancelButtonText(XDebuggerBundle.message("xdebugger.evaluate.dialog.close"));
String actionGroupId = areFrontendDebuggerActionsEnabled()
? XDebuggerActions.INSPECT_TREE_POPUP_GROUP_FRONTEND
: XDebuggerActions.EVALUATE_DIALOG_TREE_POPUP_GROUP;
String actionGroupId = XDebuggerActions.EVALUATE_DIALOG_TREE_POPUP_GROUP;
myTreePanel = new XDebuggerTreePanel(project, editorsProvider, myDisposable, sourcePosition, actionGroupId,
session == null ? null : session.getValueMarkers());
myResultPanel = JBUI.Panels.simplePanel()
@@ -33,10 +33,7 @@ public class XDebuggerTreeCreator implements DebuggerTreeCreator<Pair<XValue,Str
@Override
public @NotNull Tree createTree(@NotNull Pair<XValue, String> descriptor) {
String treePopupGroup = areFrontendDebuggerActionsEnabled()
? XDebuggerActions.INSPECT_TREE_POPUP_GROUP_FRONTEND
: XDebuggerActions.INSPECT_TREE_POPUP_GROUP;
String treePopupGroup = XDebuggerActions.INSPECT_TREE_POPUP_GROUP;
final XDebuggerTree tree = new XDebuggerTree(myProject, myProvider, myPosition, treePopupGroup, myMarkers);
final XValueNodeImpl root = new XValueNodeImpl(tree, null, descriptor.getSecond(), descriptor.getFirst());
tree.setRoot(root, true);
@@ -57,14 +57,9 @@ public abstract class XVariablesViewBase extends XDebugView {
protected XVariablesViewBase(@NotNull Project project,
@NotNull XDebuggerEditorsProvider editorsProvider,
@Nullable XValueMarkers<?, ?> markers) {
boolean isWatchesView = this instanceof XWatchesView;
String frontendGroupId = isWatchesView
? XDebuggerActions.WATCHES_TREE_POPUP_GROUP_FRONTEND
: XDebuggerActions.INSPECT_TREE_POPUP_GROUP_FRONTEND;
String monolithGroupId = isWatchesView
String actionGroupId = this instanceof XWatchesView
? XDebuggerActions.WATCHES_TREE_POPUP_GROUP
: XDebuggerActions.VARIABLES_TREE_POPUP_GROUP;
String actionGroupId = areFrontendDebuggerActionsEnabled() ? frontendGroupId : monolithGroupId;
myTreePanel = new XDebuggerTreePanel(project, editorsProvider, this, null, actionGroupId, markers);
getTree().getEmptyText().setText(XDebuggerBundle.message("debugger.variables.not.available"));
getTree().addTreeListener(new XDebuggerTreeListener() {
@@ -21,7 +21,6 @@
icon="AllIcons.General.Remove"
use-shortcut-of="$Delete">
<add-to-group group-id="XDebugger.Watches.Tree.Popup" anchor="after" relative-to-action="XDebugger.EditWatch"/>
<add-to-group group-id="XDebugger.Inspect.Tree.Popup.Watches.Frontend" anchor="after" relative-to-action="XDebugger.EditWatch"/>
</action>
</actions>
<projectListeners>