Java Code Examples for com.intellij.util.ui.ColumnInfo#getName()

The following examples show how to use com.intellij.util.ui.ColumnInfo#getName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DualView.java    From consulo with Apache License 2.0 6 votes vote down vote up
private ColumnInfo[] createTreeColumns(DualViewColumnInfo[] columns) {
  Collection<ColumnInfo> result = new ArrayList<ColumnInfo>();

  final ColumnInfo firstColumn = columns[0];
  ColumnInfo firstTreeColumn = new ColumnInfo(firstColumn.getName()) {
    public Object valueOf(Object object) {
      return firstColumn.valueOf(object);
    }

    public Class getColumnClass() {
      return TreeTableModel.class;
    }

    public boolean isCellEditable(Object o) {
      return true;
    }
  };
  result.add(firstTreeColumn);
  for (int i = 1; i < columns.length; i++) {
    DualViewColumnInfo column = columns[i];
    if (column.shouldBeShownIsTheTree()) result.add(column);
  }

  return result.toArray(new ColumnInfo[result.size()]);
}
 
Example 2
Source File: SearchSelectPanel.java    From p4ic4idea with Apache License 2.0 4 votes vote down vote up
private ProxyColumnInfo(ColumnInfo<T, Aspect> proxy,
        Runnable listener) {
    super(proxy.getName());
    this.proxy = proxy;
    this.listener = listener;
}
 
Example 3
Source File: FileHistoryColumnWrapper.java    From consulo with Apache License 2.0 4 votes vote down vote up
public FileHistoryColumnWrapper(@Nonnull ColumnInfo<VcsFileRevision, T> additionalColumn) {
  super(additionalColumn.getName());
  myBaseColumn = additionalColumn;
}