Search in sources :

Example 1 with VcsLogStructureFilterImpl

use of com.intellij.vcs.log.data.VcsLogStructureFilterImpl in project intellij-community by JetBrains.

the class FileHistoryFilterUi method getFilters.

@NotNull
@Override
public VcsLogFilterCollection getFilters() {
    VcsLogStructureFilterImpl fileFilter = new VcsLogStructureFilterImpl(Collections.singleton(myPath));
    VcsLogBranchFilterImpl branchFilter = myProperties.get(FileHistoryUiProperties.SHOW_ALL_BRANCHES) ? null : VcsLogBranchFilterImpl.fromBranch("HEAD");
    return new VcsLogFilterCollectionBuilder().with(fileFilter).with(branchFilter).build();
}
Also used : VcsLogBranchFilterImpl(com.intellij.vcs.log.data.VcsLogBranchFilterImpl) VcsLogStructureFilterImpl(com.intellij.vcs.log.data.VcsLogStructureFilterImpl) VcsLogFilterCollectionBuilder(com.intellij.vcs.log.impl.VcsLogFilterCollectionImpl.VcsLogFilterCollectionBuilder) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

VcsLogBranchFilterImpl (com.intellij.vcs.log.data.VcsLogBranchFilterImpl)1 VcsLogStructureFilterImpl (com.intellij.vcs.log.data.VcsLogStructureFilterImpl)1 VcsLogFilterCollectionBuilder (com.intellij.vcs.log.impl.VcsLogFilterCollectionImpl.VcsLogFilterCollectionBuilder)1 NotNull (org.jetbrains.annotations.NotNull)1