protected Menu buildMenu(Menu menu) {
    /*
     * we create two items: Run to.., Run for..
     */

    buildSubMenu(menu, "Run for ...", _controller.getRunForContentProvider(), false);
    buildSubMenu(menu, "Skip to ...", _controller.getRunToContentProvider(), true);

    menu.addMenuListener(
        new MenuListener() {

          public void menuHidden(MenuEvent e) {}

          public void menuShown(MenuEvent e) {
            _root.setEnabled(_controller.isRunning());
          }
        });

    return menu;
  }
 public void refresh() {
   for (ITimeBasedAction action : _allActions) action.update(_controller.getCurrentTime());
 }