use of org.eclipse.nebula.widgets.nattable.command.ILayerCommand in project nebula.widgets.nattable by eclipse.
the class SearchDialog method doSelect.
private void doSelect(SelectionItem selection) {
ILayerCommand command;
if (selection.pos.columnPosition != SelectionLayer.NO_SELECTION) {
command = createSelectCellCommand(selection.pos);
} else {
command = new ClearAllSelectionsCommand();
}
final ILayerCommand finalCommand = command;
BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() {
@Override
public void run() {
SearchDialog.this.natTable.doCommand(finalCommand);
}
});
}
Aggregations