From 1dd1da3554f5a4663ff6a365de31d6b10e80337e Mon Sep 17 00:00:00 2001 From: Alexander Kuznetsov Date: Wed, 23 Apr 2025 11:35:42 +0200 Subject: [PATCH] IJPL-184107 [rd][debugger] Add the top 4 actions to the frontend action group Also mark CopyStackAction as FrontendOtherwiseBackend to support it in FE -- backend doesn't know of FRAMES_LIST needed for update. GitOrigin-RevId: e366d5ebd830e2dc093045d1a0f9bd8a50772a3f --- .../debugger/impl/resources/META-INF/java-debugger.xml | 2 ++ .../platform-resources/src/idea/XDebuggerActions.xml | 10 ++++++---- .../xdebugger/impl/frame/XDebuggerFramesList.java | 3 ++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/java/debugger/impl/resources/META-INF/java-debugger.xml b/java/debugger/impl/resources/META-INF/java-debugger.xml index b9c4e0acf9aa..5009db7a6a3f 100644 --- a/java/debugger/impl/resources/META-INF/java-debugger.xml +++ b/java/debugger/impl/resources/META-INF/java-debugger.xml @@ -256,12 +256,14 @@ + + diff --git a/platform/platform-resources/src/idea/XDebuggerActions.xml b/platform/platform-resources/src/idea/XDebuggerActions.xml index 2b095a743f12..28fdd9bfd965 100644 --- a/platform/platform-resources/src/idea/XDebuggerActions.xml +++ b/platform/platform-resources/src/idea/XDebuggerActions.xml @@ -1,5 +1,8 @@ + + + @@ -191,10 +194,9 @@ - - - - + + + diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XDebuggerFramesList.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XDebuggerFramesList.java index 6e91ff7a05d7..f2ff8787b262 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XDebuggerFramesList.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XDebuggerFramesList.java @@ -5,6 +5,7 @@ import com.intellij.icons.AllIcons; import com.intellij.ide.DataManager; import com.intellij.ide.HelpTooltip; import com.intellij.openapi.actionSystem.*; +import com.intellij.openapi.actionSystem.remoting.ActionRemoteBehaviorSpecification; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.application.ReadAction; import com.intellij.openapi.fileEditor.OpenFileDescriptor; @@ -507,7 +508,7 @@ public class XDebuggerFramesList extends DebuggerFramesList implements UiCompati Color getBackgroundColor(); } - public static class CopyStackAction extends DumbAwareAction { + public static class CopyStackAction extends DumbAwareAction implements ActionRemoteBehaviorSpecification.FrontendOtherwiseBackend { @Override public void update(@NotNull AnActionEvent e) { XDebuggerFramesList framesList = e.getData(FRAMES_LIST);