mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
change signature hierarchy: don't build children to check for leaf (IDEA-157682)
This commit is contained in:
@@ -85,6 +85,14 @@ public abstract class MethodNodeBase<M extends PsiElement> extends CheckedTreeNo
|
||||
return super.getChildCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isLeaf() {
|
||||
if (children == null) {
|
||||
return false;
|
||||
}
|
||||
return super.isLeaf();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIndex(TreeNode aChild) {
|
||||
buildChildren();
|
||||
|
||||
Reference in New Issue
Block a user