Exemplo n.º 1
0
 public void undo() {
   try {
     MethodInvocationManager.invokeMethod( // frame,
         parentObject, addMethod, addParams);
     listener.commandActionPerformed();
   } catch (Exception e) {
     System.out.println("Could not undo: " + subtractMethod + " " + e);
   }
 }
Exemplo n.º 2
0
 public void redo() {
   execute();
   listener.commandActionPerformed();
 }