mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 06:51:17 +07:00
IDEA-125322 Debugger: F2 adds new row in Watches
This commit is contained in:
@@ -66,6 +66,7 @@ public class WatchInplaceEditor extends XDebuggerTreeInplaceEditor {
|
||||
if (myOldNode != null && index != -1) {
|
||||
myWatchesView.addWatchExpression(myOldNode.getExpression(), index, false);
|
||||
}
|
||||
getTree().setSelectionRow(index);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -77,6 +78,7 @@ public class WatchInplaceEditor extends XDebuggerTreeInplaceEditor {
|
||||
if (!XDebuggerUtilImpl.isEmptyExpression(expression) && index != -1) {
|
||||
myWatchesView.addWatchExpression(expression, index, false);
|
||||
}
|
||||
getTree().setSelectionRow(index);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
@@ -106,6 +106,7 @@ public class WatchesRootNode extends XDebuggerTreeNode {
|
||||
}
|
||||
|
||||
private void replaceNode(final WatchNode oldNode, final WatchNode newNode) {
|
||||
int[] selectedRows = getTree().getSelectionRows();
|
||||
for (int i = 0; i < myChildren.size(); i++) {
|
||||
WatchNode child = myChildren.get(i);
|
||||
if (child == oldNode) {
|
||||
@@ -118,6 +119,7 @@ public class WatchesRootNode extends XDebuggerTreeNode {
|
||||
else {
|
||||
fireNodeStructureChanged(newNode);
|
||||
}
|
||||
getTree().setSelectionRows(selectedRows);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user