mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-162905 improve performance of children processing
This commit is contained in:
@@ -2689,6 +2689,11 @@ public class AbstractTreeUi {
|
||||
update(updateInfo.getDescriptor(), true);
|
||||
}
|
||||
|
||||
if (!updateInfo.isUpdateChildren()) {
|
||||
nodeToProcessActions[0] = node;
|
||||
return;
|
||||
}
|
||||
|
||||
Object element = getElementFromDescriptor(updateInfo.getDescriptor());
|
||||
if (element == null) {
|
||||
removeFromLoadedInBackground(oldElementFromDescriptor);
|
||||
@@ -2698,7 +2703,7 @@ public class AbstractTreeUi {
|
||||
|
||||
elementFromDescriptor.set(element);
|
||||
|
||||
Object[] loadedElements = updateInfo.isUpdateChildren() ? getChildrenFor(element) : ArrayUtil.EMPTY_OBJECT_ARRAY;
|
||||
Object[] loadedElements = getChildrenFor(element);
|
||||
|
||||
final LoadedChildren loaded = new LoadedChildren(loadedElements);
|
||||
for (final Object each : loadedElements) {
|
||||
|
||||
Reference in New Issue
Block a user