expand node on filter or range set

This commit is contained in:
Egor.Ushakov
2017-05-23 20:02:19 +03:00
parent 90b4152578
commit 2a29c41d48
3 changed files with 4 additions and 3 deletions
@@ -81,6 +81,7 @@ public abstract class ArrayAction extends DebuggerAction {
final Renderer lastRenderer = descriptor.getLastRenderer();
if (lastRenderer instanceof ArrayRenderer) {
((JavaValue)container).setRenderer(newRenderer, node);
node.invokeNodeUpdate(() -> node.getTree().expandPath(node.getPath()));
}
else if (lastRenderer instanceof CompoundNodeRenderer) {
final CompoundNodeRenderer compoundRenderer = (CompoundNodeRenderer)lastRenderer;
@@ -623,7 +623,7 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV
public void reBuild(final XValueNodeImpl node) {
DebuggerManagerThreadImpl.assertIsManagerThread();
myCurrentChildrenStart = 0;
node.getTree().getLaterInvocator().offer(() -> {
node.invokeNodeUpdate(() -> {
node.clearChildren();
computePresentation(node, XValuePlace.TREE);
});
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -189,7 +189,7 @@ public abstract class XDebuggerTreeNode implements TreeNode, TreeSpeedSearch.Pat
}
}
void invokeNodeUpdate(Runnable runnable) {
public void invokeNodeUpdate(Runnable runnable) {
myTree.getLaterInvocator().offer(runnable);
}
}