예제 #1
0
 /** Undoes the changes of the person edit */
 public void undo() {
   allocation.startDate = oldStartDate;
   allocation.endDate = oldEndDate;
   Collections.sort(allocation.getProject().getTeamAllocations());
 }
예제 #2
0
 /** Executes/Redoes the changes of the allocation edit */
 public void execute() {
   allocation.startDate = startDate;
   allocation.endDate = endDate;
   Collections.sort(allocation.getProject().getTeamAllocations());
 }