Search in sources :

Example 1 with AppMenuItem

use of org.rstudio.core.client.command.AppMenuItem in project rstudio by rstudio.

the class ToolbarPopupMenu method addItem.

public void addItem(MenuItem menuItem) {
    ScheduledCommand command = menuItem.getScheduledCommand();
    if (command == null && menuItem instanceof AppMenuItem)
        command = ((AppMenuItem) menuItem).getScheduledCommand(true);
    if (command != null)
        menuItem.setScheduledCommand(new ToolbarPopupMenuCommand(command));
    menuBar_.addItem(menuItem);
}
Also used : ScheduledCommand(com.google.gwt.core.client.Scheduler.ScheduledCommand) AppMenuItem(org.rstudio.core.client.command.AppMenuItem)

Aggregations

ScheduledCommand (com.google.gwt.core.client.Scheduler.ScheduledCommand)1 AppMenuItem (org.rstudio.core.client.command.AppMenuItem)1