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()); } }
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; }
private void copySelection(SelectionProvider from, SelectionProvider to) { to.clearSelection(); Collection selection = from.getSelection(); for (Iterator each = selection.iterator(); each.hasNext();) { to.addSelection(each.next()); } }