use of org.talend.dataprofiler.core.ui.perspective.PerspectiveMenuManager in project tdq-studio-se by Talend.
the class ApplicationActionBarAdvisor method fillMenuBar.
@Override
protected void fillMenuBar(IMenuManager menuBar) {
this.beforefillMenuBar();
MenuManager fileMenu = new MenuManager(Messages.getString("ApplicationActionBarAdvisor.File"), // $NON-NLS-1$
IWorkbenchActionConstants.M_FILE);
MenuManager windowMenu = new MenuManager(Messages.getString("ApplicationActionBarAdvisor.Window"), // $NON-NLS-1$
IWorkbenchActionConstants.M_WINDOW);
MenuManager helpMenu = new MenuManager(Messages.getString("ApplicationActionBarAdvisor.Help"), // $NON-NLS-1$
IWorkbenchActionConstants.M_HELP);
menuBar.add(fileMenu);
menuBar.add(windowMenu);
// Add a group marker indicating where action set menus will appear.
menuBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
menuBar.add(helpMenu);
fileMenu.add(colseAction);
fileMenu.add(colseAllAction);
fileMenu.add(new Separator());
// File
fileMenu.add(saveAction);
fileMenu.add(saveAllAction);
fileMenu.add(exitAction);
// Window
MenuManager perspMenu = new PerspectiveMenuManager();
menuBar.add(windowMenu);
windowMenu.add(perspMenu);
windowMenu.add(preferenceAction);
windowMenu.add(resetPerspectiveAction);
windowMenu.add(new ShowViewAction());
windowMenu.add(savePerspectiveAsAction);
// Help
helpMenu.add(welcomeAction);
helpMenu.add(helpAction);
helpMenu.add(aboutAction);
// ADD qiongli 2010-6-3,bug 0012874
CheatSheetCategoryBasedSelectionAction cscAction = new CheatSheetCategoryBasedSelectionAction();
// $NON-NLS-1$
cscAction.setText(Messages.getString("ApplicationActionBarAdvisor.CheatSheets"));
helpMenu.add(cscAction);
}
Aggregations