int numSheet = book.getNumberOfSheets();
Ranges.range(sheet).createSheet(prefix + " " + (numSheet + 1));
} else if ("delete".equals(action)) {
int numSheet = book.getNumberOfSheets();
if (numSheet > 1) {
Worksheet sel = null;
int index = book.getSheetIndex(sheet);
if (index == numSheet - 1) {//delete last sheet, move select sheet left
sel = book.getWorksheetAt(index - 1);
} else { //move sheet right
sel = book.getWorksheetAt(index + 1);
}
Ranges.range(sheet).deleteSheet();
spreadsheet.setSelectedSheet(sel.getSheetName());
}
} else if ("rename".equals(action)) {
String name = (String) data.get("name");
Ranges.range(sheet).setSheetName(name);
} else if ("protect".equals(action)) {