TableRowColumnDeleteRequest deleteReq = (TableRowColumnDeleteRequest) request;
if (deleteReq.isRow()) {
return new TableDeleteRowCommand(viewer, table, deleteReq
.getIndex());
}
return new TableDeleteColumnCommand(viewer, table,
deleteReq.getIndex());
} else if (request instanceof InsertHeaderFooterRequest) {
InsertHeaderFooterRequest hfRequest = (InsertHeaderFooterRequest) request;
return new TableInsertHeaderFooterCommand(viewer, table,
hfRequest.isHeader());