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:
Maxim Shafirov
2009-10-23 14:41:28 +04:00
parent aef4ce013c
commit e6d7a39016
3 changed files with 11 additions and 1 deletions
@@ -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() {