mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
(no message)
This commit is contained in:
@@ -173,7 +173,9 @@ public class PackageElementNode extends ProjectViewNode<PackageElement> {
|
||||
}
|
||||
|
||||
public String getTestPresentation() {
|
||||
return "PsiPackage: " + getValue().getPackage().getQualifiedName();
|
||||
final PresentationData presentation = new PresentationData();
|
||||
update(presentation);
|
||||
return "PsiPackage: " + presentation.getPresentableText();
|
||||
}
|
||||
|
||||
public boolean isFQNameShown() {
|
||||
|
||||
@@ -92,7 +92,7 @@ public class PackageUtil {
|
||||
final boolean inLibrary) {
|
||||
final boolean shouldSkipPackage = settings.isHideEmptyMiddlePackages()
|
||||
&& isPackageEmpty(aPackage, module,
|
||||
false,
|
||||
true,
|
||||
inLibrary);
|
||||
final Project project = aPackage.getManager().getProject();
|
||||
if (!shouldSkipPackage) {
|
||||
@@ -116,7 +116,6 @@ public class PackageUtil {
|
||||
final PsiDirectory[] dirs = aPackage.getDirectories(scopeToShow);
|
||||
for (int idx = 0; idx < dirs.length; idx++) {
|
||||
final PsiDirectory dir = dirs[idx];
|
||||
if (dir.getChildren().length == 0) return true;
|
||||
if (!TreeViewUtil.isEmptyMiddlePackage(dir, strictlyEmpty)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user