} else if (request instanceof TableInsertRequest) {
TableInsertRequest tableInsertRequest = (TableInsertRequest) request;
int index = tableInsertRequest.getIndex()
+ (tableInsertRequest.isBefore() ? 0 : 1);
if (tableInsertRequest.isRow()) {
return new TableInsertRowCommand(viewer, table, index,
tableInsertRequest.isBefore());
}
return new TableInsertColumnCommand(viewer, table, index);
} else if (request instanceof TableRowColumnDeleteRequest) {
TableRowColumnDeleteRequest deleteReq = (TableRowColumnDeleteRequest) request;