if (event != null) {
timesheet.setStartDate(event.getStartDate());
timesheet.setStopTime(event.getEndDate());
}
if (returnToPage == null) {
returnToPage = new TeamCalCalendarPage(new PageParameters());
}
setResponsePage(new TimesheetEditPage(timesheet).setReturnToPage(returnToPage));
};
}.setDefaultFormProcessing(false), getString("plugins.teamcal.switchToTimesheetButton"));
addContentMenuEntry(menu);