Calendar context menu confusing usage

If I add an Action.Handler to the Calendar, as described in the Book, getActions()’ target is a CalendarDateRange related to the time slot clicked. In case of a right-click outside any event. Because if an event is right-clicked, getActions() seems to be called multiple times (per each 1/2h time slot), giving me a long list if items in the context menu, This happens if I implement something like this:

@Override public Action[] getActions(Object target, Object sender) { return new Action[]{new Action(target.toString())}; } If I have:

final Action action = new Action("ACTION"); addActionHandler(new Action.Handler() { @Override public Action[] getActions(Object target, Object sender) { action.setCaption(target.toString()); return new Action[]{action}; } ... } I get a String related to last call made, i.e. last time slot within event’s time range.

In effect it seems to be impossible to distinguish between clicking on vs. outside an event (and one would like to offer different actions for each of these situations, right? - this is why we call it a context menu) - in either case CalendarDateRange is a target. In case of clicking outside, at least a right time slot is given (however this information is rather useless). Clicking on event gives no information at all, maybe except its end as in my second example (but, again - nothing says it was an event what was clicked, so - useless either).

Any ideas? Or I misunderstood something and went wrong way?