mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
More proper "show tree handle" fix for the project view. Let's assume only directory and package node show their handle by default until open even if they in fact don't have any child nodes.
This commit is contained in:
@@ -211,4 +211,9 @@ public class PackageElementNode extends ProjectViewNode<PackageElement> {
|
||||
public int getTypeSortWeight(final boolean sortByType) {
|
||||
return 4;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAlwaysShowPlus() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -239,4 +239,9 @@ public class PsiDirectoryNode extends BasePsiNode<PsiDirectory> {
|
||||
public boolean shouldDrillDownOnEmptyElement() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAlwaysShowPlus() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ public abstract class AbstractTreeNode<T> extends PresentableNodeDescriptor impl
|
||||
|
||||
|
||||
public boolean isAlwaysShowPlus() {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isAlwaysExpand() {
|
||||
|
||||
Reference in New Issue
Block a user