@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);
 }
Exemple #2
0
 @Override
 public void navigate(final boolean requestFocus) {
   PsiPackageImplementationHelper.getInstance().navigate(this, requestFocus);
 }
Exemple #3
0
 @NotNull
 protected GlobalSearchScope allScope() {
   return PsiPackageImplementationHelper.getInstance()
       .adjustAllScope(this, GlobalSearchScope.allScope(getProject()));
 }
Exemple #4
0
 @Override
 public boolean isValid() {
   return PsiPackageImplementationHelper.getInstance().packagePrefixExists(this)
       || !getAllDirectories(true).isEmpty();
 }
Exemple #5
0
 @Override
 public VirtualFile[] occursInPackagePrefixes() {
   return PsiPackageImplementationHelper.getInstance().occursInPackagePrefixes(this);
 }
Exemple #6
0
 @Override
 public void handleQualifiedNameChange(@NotNull final String newQualifiedName) {
   PsiPackageImplementationHelper.getInstance().handleQualifiedNameChange(this, newQualifiedName);
 }