コード例 #1
0
 private void updateUiOnFilterChange() {
   FilterModel[] models = {
     myBranchFilterModel,
     myUserFilterModel,
     myDateFilterModel,
     myStructureFilterModel,
     myTextFilterModel
   };
   for (FilterModel<?> model : models) {
     model.addSetFilterListener(
         new Runnable() {
           @Override
           public void run() {
             myUi.applyFiltersAndUpdateUi();
             myBranchFilterModel.onStructureFilterChanged(
                 new HashSet<VirtualFile>(myLogDataHolder.getRoots()),
                 myStructureFilterModel.getFilter());
           }
         });
   }
 }
コード例 #2
0
 @NotNull
 @Override
 public VcsLogFilterCollection getFilters() {
   ApplicationManager.getApplication().assertIsDispatchThread();
   Pair<VcsLogTextFilter, VcsLogHashFilter> filtersFromText =
       getFiltersFromTextArea(myTextFilterModel.getFilter());
   return new VcsLogFilterCollectionImpl(
       myBranchFilterModel.getFilter(),
       myUserFilterModel.getFilter(),
       filtersFromText.second,
       myDateFilterModel.getFilter(),
       filtersFromText.first,
       myStructureFilterModel.getFilter() == null
           ? null
           : myStructureFilterModel.getFilter().getStructureFilter(),
       myStructureFilterModel.getFilter() == null
           ? null
           : myStructureFilterModel.getFilter().getRootFilter());
 }
コード例 #3
0
 @Override
 void setFilter(@Nullable VcsLogTextFilter filter) {
   super.setFilter(filter);
   myText = null;
 }