예제 #1
0
 public static boolean isVisibleSubPackage(PsiPackage subPackage, PbFile curFile) {
   String qSubPackageName = subPackage.getQualifiedName();
   if (curFile.getPackageName().startsWith(qSubPackageName)) {
     return true;
   }
   PbFile[] importedFiles = getImportedFiles(curFile, true);
   for (PbFile importedFile : importedFiles) {
     if (importedFile.getPackageName().startsWith(qSubPackageName)) {
       return true;
     }
   }
   return false;
 }
예제 #2
0
 public static boolean isSamePackage(PbFile file, PsiPackage psiPackage) {
   return psiPackage.getQualifiedName().equals(file.getPackageName());
 }