.getValue(ToolBar.ACTION_VALUE);
JPopupMenu popup = null;
if (item == mFilterAction) {
ScrollableMenu menu = new SelectFilterPopup(MainFrame.getInstance());
popup = menu.getPopupMenu();
} else if (item == mGoToDateAction) {
popup = new JPopupMenu();
Date curDate = Date.getCurrentDate().addDays(-1);
if(TvDataBase.getInstance().dataAvailable(curDate)) {
popup.add(createDateMenuItem(curDate));
}
curDate = curDate.addDays(1);
Date maxDate = TvDataBase.getInstance().getMaxSupportedDate();
while (maxDate.getNumberOfDaysSince(curDate) >= 0) {
if(!TvDataBase.getInstance().dataAvailable(curDate)) {
break;
}
if (curDate.isFirstDayOfWeek()) {
popup.addSeparator();
}
popup.add(createDateMenuItem(curDate));
curDate = curDate.addDays(1);
}
} else if (item == mScrollToChannelAction) {
ScrollableMenu menu = new ScrollableMenu();
popup = menu.getPopupMenu();
Channel[] channels = Settings.propSubscribedChannels.getChannelArray();
for (Channel channel : channels) {
menu.add(createChannelMenuItem(channel, btn));
}
} else if (item == mScrollToTimeAction) {
popup = new JPopupMenu();
int[] array = Settings.propTimeButtons.getIntArray();