public void undo(StudentModel model) { System.out.println("Undoing add command."); int index = model.findIndexByElement(node); if (index >= 0) ModelUtils.removeElement(model.getElement(index), model, true); }
public void execute(StudentModel model) { ModelUtils.addNode(node, model, false); }