mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
hierarchy auto-expand by default for first level
This commit is contained in:
@@ -80,6 +80,8 @@ public class HierarchyTreeBuilder extends AbstractTreeBuilder {
|
||||
}
|
||||
|
||||
protected boolean isAutoExpandNode(final NodeDescriptor nodeDescriptor) {
|
||||
if (getTreeStructure().getRootElement().equals(nodeDescriptor.getElement())) return true;
|
||||
|
||||
if (nodeDescriptor instanceof HierarchyNodeDescriptor) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user