mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
expand node on filter or range set
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user