From 190fece4db306c4f27bdb69313aedd88fc860da7 Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Mon, 31 Oct 2016 18:50:20 +0300 Subject: [PATCH] IDEA-163301 Remove watch: backspace doesn't remove --- .../xdebugger/impl/frame/XWatchesViewImpl.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XWatchesViewImpl.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XWatchesViewImpl.java index 2bd7d9f9c368..6b0674d04bf8 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XWatchesViewImpl.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XWatchesViewImpl.java @@ -26,7 +26,10 @@ import com.intellij.openapi.actionSystem.impl.ActionToolbarImpl; import com.intellij.openapi.ide.CopyPasteManager; import com.intellij.openapi.util.Disposer; import com.intellij.openapi.util.EmptyRunnable; -import com.intellij.ui.*; +import com.intellij.ui.CaptionPanel; +import com.intellij.ui.ClickListener; +import com.intellij.ui.DoubleClickListener; +import com.intellij.ui.ListenerUtil; import com.intellij.ui.border.CustomLineBorder; import com.intellij.util.Alarm; import com.intellij.util.containers.ContainerUtil; @@ -85,10 +88,8 @@ public class XWatchesViewImpl extends XVariablesView implements DnDNativeTarget, DebuggerUIUtil.registerActionOnComponent(XDebuggerActions.XCOPY_WATCH, tree, myDisposables); DebuggerUIUtil.registerActionOnComponent(XDebuggerActions.XEDIT_WATCH, tree, myDisposables); - EmptyAction.registerWithShortcutSet(XDebuggerActions.XNEW_WATCH, - CommonActionsPanel.getCommonShortcut(CommonActionsPanel.Buttons.ADD), tree); - EmptyAction.registerWithShortcutSet(XDebuggerActions.XREMOVE_WATCH, - CommonActionsPanel.getCommonShortcut(CommonActionsPanel.Buttons.REMOVE), tree); + EmptyAction.registerWithShortcutSet(XDebuggerActions.XNEW_WATCH, CommonShortcuts.getNew(), tree); + EmptyAction.registerWithShortcutSet(XDebuggerActions.XREMOVE_WATCH, CommonShortcuts.getDelete(), tree); DnDManager.getInstance().registerTarget(this, tree);