Java 类com.intellij.util.ui.TableViewModel 实例源码

项目:consulo    文件:FileHistoryPanelImpl.java   
private void setupDualView(@Nonnull DefaultActionGroup group) {
  myDualView.setShowGrid(true);
  PopupHandler.installPopupHandler(myDualView.getTreeView(), group, ActionPlaces.UPDATE_POPUP, ActionManager.getInstance());
  PopupHandler.installPopupHandler(myDualView.getFlatView(), group, ActionPlaces.UPDATE_POPUP, ActionManager.getInstance());
  IdeFocusManager.getGlobalInstance().doForceFocusWhenFocusSettlesDown(myDualView);

  myDualView.addListSelectionListener(e -> updateMessage());

  myDualView.setRootVisible(false);

  myDualView.expandAll();

  final TreeCellRenderer defaultCellRenderer = myDualView.getTree().getCellRenderer();

  final Getter<VcsHistorySession> sessionGetter = () -> myHistorySession;
  myDualView.setTreeCellRenderer(new MyTreeCellRenderer(defaultCellRenderer, sessionGetter));

  myDualView.setCellWrapper(new MyCellWrapper(sessionGetter));

  myDualView.installDoubleClickHandler(new MyDiffAction());

  final TableView flatView = myDualView.getFlatView();
  TableViewModel sortableModel = flatView.getTableViewModel();
  sortableModel.setSortable(true);

  final RowSorter<? extends TableModel> rowSorter = flatView.getRowSorter();
  if (rowSorter != null) {
    rowSorter.setSortKeys(Collections.singletonList(new RowSorter.SortKey(0, SortOrder.DESCENDING)));
  }
}
项目:intellij-ce-playground    文件:TableView.java   
public TableViewModel<Item> getTableViewModel() {
  return getListTableModel();
}
项目:tools-idea    文件:TableView.java   
public TableViewModel getTableViewModel() {
  return getListTableModel();
}
项目:consulo    文件:TableView.java   
public TableViewModel getTableViewModel() {
  return getListTableModel();
}