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