return new TableInsertRowCommand(viewer, table, index,
tableInsertRequest.isBefore());
}
return new TableInsertColumnCommand(viewer, table, index);
} else if (request instanceof TableRowColumnDeleteRequest) {
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());
} else if (request instanceof DeleteHeaderFooterRequest) {