Search in sources :

Example 1 with WatchNodeImpl

use of com.intellij.xdebugger.impl.ui.tree.nodes.WatchNodeImpl in project intellij-community by JetBrains.

the class XEditWatchAction method perform.

@Override
protected void perform(@NotNull AnActionEvent e, @NotNull XDebuggerTree tree, @NotNull XWatchesView watchesView) {
    List<? extends WatchNodeImpl> watchNodes = getSelectedNodes(tree, WatchNodeImpl.class);
    if (watchNodes.size() != 1)
        return;
    WatchNodeImpl node = watchNodes.get(0);
    XDebuggerTreeNode root = tree.getRoot();
    if (root instanceof WatchesRootNode) {
        ((WatchesRootNode) root).editWatch(node);
    }
}
Also used : WatchNodeImpl(com.intellij.xdebugger.impl.ui.tree.nodes.WatchNodeImpl) WatchesRootNode(com.intellij.xdebugger.impl.ui.tree.nodes.WatchesRootNode) XDebuggerTreeNode(com.intellij.xdebugger.impl.ui.tree.nodes.XDebuggerTreeNode)

Aggregations

WatchNodeImpl (com.intellij.xdebugger.impl.ui.tree.nodes.WatchNodeImpl)1 WatchesRootNode (com.intellij.xdebugger.impl.ui.tree.nodes.WatchesRootNode)1 XDebuggerTreeNode (com.intellij.xdebugger.impl.ui.tree.nodes.XDebuggerTreeNode)1