コード例 #1
0
 @NotNull
 @Override
 public String getDisplayName() {
   if (myDisplayName == null) {
     return PsiBundle.message(
         "psi.search.scope.intersection", myScope1.getDisplayName(), myScope2.getDisplayName());
   }
   return myDisplayName;
 }
コード例 #2
0
 @Nullable
 private static String getSecondInvocationTitle(
     @NotNull FindUsagesOptions options, @NotNull FindUsagesHandler handler) {
   if (getShowUsagesShortcut() != null) {
     GlobalSearchScope maximalScope = FindUsagesManager.getMaximalScope(handler);
     if (!notNullizeScope(options, handler.getProject()).equals(maximalScope)) {
       return "Press "
           + KeymapUtil.getShortcutText(getShowUsagesShortcut())
           + " again to search in "
           + maximalScope.getDisplayName();
     }
   }
   return null;
 }