use of com.intellij.vcs.log.ui.actions.history.CompareRevisionsFromHistoryAction in project intellij-community by JetBrains.
the class VcsLogActionPromoter method promote.
@Override
public List<AnAction> promote(@NotNull List<AnAction> actions, @NotNull DataContext context) {
List<AnAction> promoted = ContainerUtil.newArrayList();
VcsLogUi ui = VcsLogDataKeys.VCS_LOG_UI.getData(context);
if (ui != null && ui instanceof FileHistoryUi) {
CompareRevisionsFromHistoryAction compareAction = ContainerUtil.findInstance(actions, CompareRevisionsFromHistoryAction.class);
if (compareAction != null)
promoted.add(compareAction);
}
return promoted;
}
Aggregations