665666667668669670671672673674675
*/ public void undoCommandChanges() { if (changedCommands != null){ while (!changedCommands.isEmpty()){ final CommandProtectionEntry entry = changedCommands.remove(changedCommands.size() - 1); entry.restore(); } changedCommands = null; } }