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