ObjectInfo object,
IMenuManager manager) throws Exception {
if (object instanceof Cell && isParentOf(object)) {
final Cell cell = (Cell) object;
final Row row = (Row) cell.getParent();
addAction(manager, "Insert cell", "insertCell", new RunnableEx() {
public void run() throws Exception {
createCell(row, cell);
}
});
addAction(manager, "Append cell", "appendCell", new RunnableEx() {
public void run() throws Exception {
Cell nextCell = GenericsUtils.getNextOrNull(row.getCells(), cell);
createCell(row, nextCell);
}
});