@Override public void setFilter(@NotNull VcsLogFilter filter) { if (filter instanceof VcsLogBranchFilter) { Collection<String> values = ((VcsLogBranchFilter) filter).getBranchNames(); myBranchFilterComponent.apply( values, MultipleValueFilterPopupComponent.displayableText(values), MultipleValueFilterPopupComponent.tooltip(values)); } }
@NotNull @Override public VcsLogFilterCollection getFilters() { VcsLogTextFilter textFilter = !myTextFilter.getText().isEmpty() ? new VcsLogTextFilterImpl(myTextFilter.getText().trim()) : null; return new VcsLogFilterCollectionImpl( myBranchFilterComponent.getFilter(), myUserFilterComponent.getFilter(), myDateFilterComponent.getFilter(), textFilter, myStructureFilterComponent.getFilter()); }
public void updateDataPack(@NotNull DataPack dataPack) { myBranchFilterComponent.updateDataPack(dataPack); }