Пример #1
0
 /** Undoes the command */
 public void undo() {
   team.getProjectAllocations().add(allocation);
   project.getTeamAllocations().add(allocation);
 }
Пример #2
0
 /** Executes the command */
 public void execute() {
   team.getProjectAllocations().remove(allocation);
   project.getTeamAllocations().remove(allocation);
 }