private void setSelectionExternal(List<RowSelectionItem> items) {
selectionLayer.clear(true);
for (RowSelectionItem item : items) {
- for (int c : item.columnIndex)
- selectionLayer.selectCell(c, item.rowIndex, false, true);
+ for (int c : item.columnIndex) {
+ int r = selectionLayer.getRowPositionByIndex(item.rowIndex);
+ selectionLayer.selectCell(c, r, false, true);
+ }
}
selection = new StructuredSelection(items);
fireEvents();