* Takes the last cmdsCount actions back and combines them into a single action
* (for when the user wants to undo the join action)
* @param message The commit message to display
*/
private void makeCommitsOneAction(String message) {
UndoRedoHandler ur = Main.main.undoRedo;
cmds.clear();
int i = Math.max(ur.commands.size() - cmdsCount, 0);
for (; i < ur.commands.size(); i++) {
cmds.add(ur.commands.get(i));
}
for (i = 0; i < cmds.size(); i++) {
ur.undo();
}
commitCommands(message == null ? marktr("Join Areas Function") : message);
cmdsCount = 0;
}