1 | public void actionPerformed(ActionEvent e) {↵ | | 1 | public void actionPerformed(ActionEvent e) {↵
|
2 | ICalendarMediator m = (ICalendarMediator) getFrameMediator();↵ | | 2 | ICalendarMediator m = (ICalendarMediator) getFrameMediator();↵
|
|
3 | ICalendarView c = m.getCalendarView();↵ | | 3 | ICalendarView c = m.getCalendarView();↵
|
|
4 | IActivity activity = c.getSelectedActivity();↵ | | 4 | IActivity activity = c.getSelectedActivity();↵
|
|
5 | ICalendarStore store = CalendarStoreFactory.getInstance()↵ | | 5 | ICalendarStore store = CalendarStoreFactory.getInstance()↵
|
6 | .getLocaleStore();↵ | | 6 | .getLocaleStore();↵
|
|
7 | Command command = new ActivityMovedCommand(↵ | | 7 | Command command = new DeleteEventCommand(↵
|
8 | new CalendarCommandReference(↵ | | 8 | new CalendarCommandReference(↵
|
9 | store, activity));↵ | | 9 | store, activity));↵
|
|
10 | CommandProcessor.getInstance().addOp(command);↵ | | 10 | CommandProcessor.getInstance().addOp(command);
|
11 | | | | |