Search in sources :

Example 1 with DualView

use of com.intellij.ui.dualView.DualView in project intellij-community by JetBrains.

the class FileHistoryPanelImpl method createColumnList.

@NotNull
private DualViewColumnInfo[] createColumnList(@NotNull Project project, @NotNull VcsHistoryProvider provider, @Nullable ColumnInfo[] additionalColumns) {
    ArrayList<DualViewColumnInfo> columns = new ArrayList<>();
    columns.add(new RevisionColumnInfo(myRevisionsInOrderComparator));
    if (!provider.isDateOmittable())
        columns.add(new DateColumnInfo());
    columns.add(new AuthorColumnInfo());
    ArrayList<DualViewColumnInfo> additionalColumnInfo = new ArrayList<>();
    if (additionalColumns != null) {
        for (ColumnInfo additionalColumn : additionalColumns) {
            additionalColumnInfo.add(new FileHistoryColumnWrapper(additionalColumn) {

                @Override
                protected DualView getDualView() {
                    return myDualView;
                }
            });
        }
    }
    columns.addAll(additionalColumnInfo);
    columns.add(new MessageColumnInfo(project));
    return columns.toArray(new DualViewColumnInfo[columns.size()]);
}
Also used : DualView(com.intellij.ui.dualView.DualView) ColumnInfo(com.intellij.util.ui.ColumnInfo) DualViewColumnInfo(com.intellij.ui.dualView.DualViewColumnInfo) DualViewColumnInfo(com.intellij.ui.dualView.DualViewColumnInfo) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

DualView (com.intellij.ui.dualView.DualView)1 DualViewColumnInfo (com.intellij.ui.dualView.DualViewColumnInfo)1 ColumnInfo (com.intellij.util.ui.ColumnInfo)1 NotNull (org.jetbrains.annotations.NotNull)1