Example #1
0
 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);
 }
Example #2
0
 public void execute(StudentModel model) {
   ModelUtils.addNode(node, model, false);
 }