mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 21:15:58 +07:00
don't show + for empty directories and packages in project view
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user