コード例 #1
0
 private boolean closeUsageViewIfEmpty(UsageView usageView, boolean success) {
   if (usageView.getUsages().isEmpty()) {
     usageView.close();
     return true;
   } else if (!success) {
     NOTIFICATION_GROUP
         .createNotification("One or more malformed replacement strings", MessageType.ERROR)
         .notify(myProject);
   }
   return false;
 }
コード例 #2
0
 @NotNull
 public Set<Usage> getExcludedSetCached() {
   if (excludedSet == null) excludedSet = usageView.getExcludedUsages();
   return excludedSet;
 }