don't show + for empty directories and packages in project view

This commit is contained in:
peter
2012-01-11 19:30:12 +01:00
parent c8515f9b3f
commit 2dc53a80fb
2 changed files with 9 additions and 2 deletions
@@ -214,6 +214,12 @@ public class PackageElementNode extends ProjectViewNode<PackageElement> {
@Override
public boolean isAlwaysShowPlus() {
return true;
for (final VirtualFile dir : getVirtualFiles()) {
if (dir.getChildren().length > 0) {
return true;
}
}
return false;
}
}