public class TreeViewUtil
extends java.lang.Object
Constructor and Description |
---|
TreeViewUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
calcAbbreviatedPackageFQName(PsiPackage aPackage) |
static boolean |
isEmptyMiddlePackage(PsiDirectory dir,
boolean strictlyEmpty,
PsiFileSystemItemFilter filter)
a directory is considered "empty" if it has at least one child and all its children are only directories
|
public static java.lang.String calcAbbreviatedPackageFQName(PsiPackage aPackage)
public static boolean isEmptyMiddlePackage(PsiDirectory dir, boolean strictlyEmpty, PsiFileSystemItemFilter filter)
strictlyEmpty
- if true, the package is considered empty if it has only 1 child and this child is a directory
otherwise the package is considered as empty if all direct children that it has are directoriesfilter
- if returns false for some element, that elements is not counted