use of org.jkiss.dbeaver.ui.controls.lightgrid.GridPos in project dbeaver by dbeaver.
the class SpreadsheetFindReplaceTarget method setSelection.
@Override
public void setSelection(int offset, int length) {
int columnCount = owner.getSpreadsheet().getColumnCount();
List<GridPos> selRows = new ArrayList<>();
for (int rowNum = 0; rowNum < length; rowNum++) {
for (int col = 0; col < columnCount; col++) {
selRows.add(new GridPos(col, offset + rowNum));
}
}
owner.setSelection(new StructuredSelection(selRows));
}
Aggregations