Search in sources :

Example 1 with PerspectiveMenuManager

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);
}
Also used : CheatSheetCategoryBasedSelectionAction(org.eclipse.ui.internal.cheatsheets.actions.CheatSheetCategoryBasedSelectionAction) PerspectiveMenuManager(org.talend.dataprofiler.core.ui.perspective.PerspectiveMenuManager) MenuManager(org.eclipse.jface.action.MenuManager) IMenuManager(org.eclipse.jface.action.IMenuManager) PerspectiveMenuManager(org.talend.dataprofiler.core.ui.perspective.PerspectiveMenuManager) GroupMarker(org.eclipse.jface.action.GroupMarker) Separator(org.eclipse.jface.action.Separator)

Aggregations

GroupMarker (org.eclipse.jface.action.GroupMarker)1 IMenuManager (org.eclipse.jface.action.IMenuManager)1 MenuManager (org.eclipse.jface.action.MenuManager)1 Separator (org.eclipse.jface.action.Separator)1 CheatSheetCategoryBasedSelectionAction (org.eclipse.ui.internal.cheatsheets.actions.CheatSheetCategoryBasedSelectionAction)1 PerspectiveMenuManager (org.talend.dataprofiler.core.ui.perspective.PerspectiveMenuManager)1