Debugger: "Add to Watches" for multiple selection (WEB-13852)

This commit is contained in:
Konstantin Ulitin
2018-07-24 17:31:42 +03:00
parent 4a987bd3a6
commit dea64a101f
@@ -22,6 +22,18 @@ public class XAddToWatchesTreeAction extends XDebuggerTreeActionBase {
return super.isEnabled(node, e) && DebuggerUIUtil.hasEvaluationExpression(node.getValueContainer()) && getWatchesView(e) != null;
}
@Override
public void actionPerformed(AnActionEvent e) {
for (XValueNodeImpl node : getSelectedNodes(e.getDataContext())) {
if (node != null) {
String nodeName = node.getName();
if (nodeName != null) {
perform(node, nodeName, e);
}
}
}
}
@Override
protected void perform(final XValueNodeImpl node, @NotNull final String nodeName, final AnActionEvent e) {
final XWatchesView watchesView = getWatchesView(e);