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