コード例 #1
0
 @NotNull
 private static FindUsagesOptions getDefaultOptions(@NotNull FindUsagesHandler handler) {
   FindUsagesOptions options =
       handler.getFindUsagesOptions(DataManager.getInstance().getDataContext());
   // by default, scope in FindUsagesOptions is copied from the FindSettings, but we need a default
   // one
   options.searchScope = FindUsagesManager.getMaximalScope(handler);
   return options;
 }
コード例 #2
0
 private void searchEverywhere(
     @NotNull FindUsagesOptions options,
     @NotNull FindUsagesHandler handler,
     Editor editor,
     @NotNull RelativePoint popupPosition,
     int maxUsages) {
   FindUsagesOptions cloned = options.clone();
   cloned.searchScope = FindUsagesManager.getMaximalScope(handler);
   showElementUsages(handler, editor, popupPosition, maxUsages, cloned);
 }