Java 类com.intellij.ui.table.SelectionProvider 实例源码

项目:intellij-ce-playground    文件:DualView.java   
private static void copySelection(SelectionProvider from, SelectionProvider to) {
  to.clearSelection();

  Collection selection = from.getSelection();

  for (Iterator each = selection.iterator(); each.hasNext();) {
    to.addSelection(each.next());
  }
}
项目:intellij-ce-playground    文件:DualView.java   
public List getSelection() {
  ArrayList result = new ArrayList();
  SelectionProvider visibleTable = (SelectionProvider)getVisibleTable();
  Collection selection = visibleTable.getSelection();
  for (Iterator each = selection.iterator(); each.hasNext();) {
    result.add(each.next());
  }
  return result;
}
项目:tools-idea    文件:DualView.java   
private void copySelection(SelectionProvider from, SelectionProvider to) {
  to.clearSelection();

  Collection selection = from.getSelection();

  for (Iterator each = selection.iterator(); each.hasNext();) {
    to.addSelection(each.next());
  }
}
项目:tools-idea    文件:DualView.java   
public List getSelection() {
  ArrayList result = new ArrayList();
  SelectionProvider visibleTable = (SelectionProvider)getVisibleTable();
  Collection selection = visibleTable.getSelection();
  for (Iterator each = selection.iterator(); each.hasNext();) {
    result.add(each.next());
  }
  return result;
}
项目:consulo    文件:DualView.java   
private static void copySelection(SelectionProvider from, SelectionProvider to) {
  to.clearSelection();

  Collection selection = from.getSelection();

  for (Iterator each = selection.iterator(); each.hasNext();) {
    to.addSelection(each.next());
  }
}
项目:consulo    文件:DualView.java   
public List getSelection() {
  ArrayList result = new ArrayList();
  SelectionProvider visibleTable = (SelectionProvider)getVisibleTable();
  Collection selection = visibleTable.getSelection();
  for (Iterator each = selection.iterator(); each.hasNext();) {
    result.add(each.next());
  }
  return result;
}