mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Debugger: "Add to Watches" for multiple selection (WEB-13852)
This commit is contained in:
+12
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user