IDEA-163301 Remove watch: backspace doesn't remove

This commit is contained in:
Egor.Ushakov
2016-10-31 18:51:22 +03:00
parent 8c1f354ae8
commit 190fece4db
@@ -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);