else return null;
}
};
Collection<RibbonTask> ribbonTasks= menuManger.getRibbon(MenuManager.STANDARD_RIBBON, customBandsGenerator);
JRibbon ribbon=frame.getRibbon();
for (RibbonTask ribbonTask : ribbonTasks){
ribbon.addTask(ribbonTask);
}
RibbonApplicationMenu applicationMenu=new RibbonApplicationMenu();
ribbon.setApplicationMenu(applicationMenu);
Collection<AbstractCommandButton> taskBars=menuManger.getTaskBar(MenuManager.STANDARD_RIBBON);
for (AbstractCommandButton button : taskBars)
ribbon.addTaskbarComponent(button);
ribbon.configureHelp(IconManager.getRibbonIcon("menu24.help"), new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
showHelpDialog();
}
});
JLabel openprojLogo=ribbon.getOpenprojLogo();
openprojLogo.setIcon(IconManager.getIcon("logo.OpenProj"));
openprojLogo.addMouseListener(new MouseAdapter(){
public void mousePressed(MouseEvent me){
BrowserControl.displayURL("http://www.projity.com/");
}
});
JPanel projectViews=ribbon.getProjectViews();
projectViews.setBorder(new EmptyBorder(0,0,0,0));
getMenuManager().initComponent(MenuManager.VIEW_TOOL_BAR,projectViews);
JPanel fileSelector=ribbon.getFileSelector();
fileSelector.setLayout(new BorderLayout());
fileSelector.setBackground(ProjectLibreRibbonUI.RIBBON_MENU_COLOR);
JComponent filesComponent=((DefaultFrameManager)getFrameManager()).getProjectComboPanel();
filesComponent.setBackground(ProjectLibreRibbonUI.RIBBON_MENU_COLOR);
fileSelector.add(filesComponent,BorderLayout.EAST);