ActionGroup () { Calendar cal = Calendar.getInstance(); cal.setTime(new Date()); cal.add(Calendar.DAY_OF_YEAR, -1); Date oneDayBefore = cal.getTime(); cal.add(Calendar.DAY_OF_YEAR, -6); Date oneWeekBefore = cal.getTime(); return new DefaultActionGroup(new SelectAction(), new DateAction(oneDayBefore, VcsLogBundle.messagePointer("vcs.log.date.filter.action.last.day")), new DateAction(oneWeekBefore, VcsLogBundle.messagePointer("vcs.log.date.filter.action.last.week"))); }