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);
}
Aggregations