@Override
 public boolean isValid() {
   final CommonProcessors.FindFirstProcessor<PsiDirectory> processor =
       new CommonProcessors.FindFirstProcessor<PsiDirectory>();
   getFacade().processPackageDirectories(this, allScope(), processor);
   return processor.getFoundValue() != null
       || PsiPackageImplementationHelper.getInstance().packagePrefixExists(this);
 }
Beispiel #2
0
 @Override
 public void navigate(final boolean requestFocus) {
   PsiPackageImplementationHelper.getInstance().navigate(this, requestFocus);
 }
Beispiel #3
0
 @NotNull
 protected GlobalSearchScope allScope() {
   return PsiPackageImplementationHelper.getInstance()
       .adjustAllScope(this, GlobalSearchScope.allScope(getProject()));
 }
Beispiel #4
0
 @Override
 public boolean isValid() {
   return PsiPackageImplementationHelper.getInstance().packagePrefixExists(this)
       || !getAllDirectories(true).isEmpty();
 }
Beispiel #5
0
 @Override
 public VirtualFile[] occursInPackagePrefixes() {
   return PsiPackageImplementationHelper.getInstance().occursInPackagePrefixes(this);
 }
Beispiel #6
0
 @Override
 public void handleQualifiedNameChange(@NotNull final String newQualifiedName) {
   PsiPackageImplementationHelper.getInstance().handleQualifiedNameChange(this, newQualifiedName);
 }