Search in sources :

Example 96 with GroupMarker

use of org.eclipse.jface.action.GroupMarker in project netxms by netxms.

the class DataCollectionEditor method fillLocalPullDown.

/**
 * Fill local pull-down menu
 *
 * @param manager
 *           Menu manager for pull-down menu
 */
private void fillLocalPullDown(IMenuManager manager) {
    manager.add(actionShowFilter);
    manager.add(new Separator());
    manager.add(actionCreateItem);
    manager.add(actionCreateTable);
    manager.add(actionEdit);
    manager.add(actionDelete);
    manager.add(actionCopy);
    manager.add(actionMove);
    manager.add(actionConvert);
    manager.add(actionDuplicate);
    manager.add(new Separator());
    manager.add(actionActivate);
    manager.add(actionDisable);
    manager.add(new Separator());
    manager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    manager.add(new Separator());
    manager.add(new GroupMarker(GroupMarkers.MB_SECONDARY));
    manager.add(new Separator());
    manager.add(actionRefresh);
    manager.add(actionExportAllToCsv);
}
Also used : GroupMarker(org.eclipse.jface.action.GroupMarker) Separator(org.eclipse.jface.action.Separator)

Example 97 with GroupMarker

use of org.eclipse.jface.action.GroupMarker in project netxms by netxms.

the class TemplateGraphView method fillContextMenu.

/**
 * Fill context menu
 * @param manager
 */
private void fillContextMenu(IMenuManager manager) {
    manager.add(actionAdd);
    manager.add(actionEdit);
    manager.add(actionDelete);
    manager.add(new Separator());
    manager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
}
Also used : GroupMarker(org.eclipse.jface.action.GroupMarker) Separator(org.eclipse.jface.action.Separator)

Example 98 with GroupMarker

use of org.eclipse.jface.action.GroupMarker in project netxms by netxms.

the class BaseTableValueViewer method fillContextMenu.

/**
 * Fill context menu
 *
 * @param manager
 */
protected void fillContextMenu(IMenuManager manager) {
    manager.add(actionUseMultipliers);
    manager.add(actionShowFilter);
    manager.add(new Separator());
    manager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
}
Also used : GroupMarker(org.eclipse.jface.action.GroupMarker) Separator(org.eclipse.jface.action.Separator)

Example 99 with GroupMarker

use of org.eclipse.jface.action.GroupMarker in project netxms by netxms.

the class MibExplorer method fillTreeContextMenu.

/**
 * Fill MIB tree context menu
 *
 * @param mgr Menu manager
 */
protected void fillTreeContextMenu(final IMenuManager manager) {
    manager.add(actionWalk);
    manager.add(new Separator());
    manager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    manager.add(new Separator());
    manager.add(actionRefresh);
}
Also used : GroupMarker(org.eclipse.jface.action.GroupMarker) Separator(org.eclipse.jface.action.Separator)

Example 100 with GroupMarker

use of org.eclipse.jface.action.GroupMarker 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)117 Separator (org.eclipse.jface.action.Separator)93 IMenuManager (org.eclipse.jface.action.IMenuManager)44 MenuManager (org.eclipse.jface.action.MenuManager)42 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)17 IToolBarManager (org.eclipse.jface.action.IToolBarManager)12 IAction (org.eclipse.jface.action.IAction)10 IMenuListener (org.eclipse.jface.action.IMenuListener)10 Menu (org.eclipse.swt.widgets.Menu)8 Action (org.eclipse.jface.action.Action)7 ISelection (org.eclipse.jface.viewers.ISelection)5 IWorkbenchWindow (org.eclipse.ui.IWorkbenchWindow)5 ActionContributionItem (org.eclipse.jface.action.ActionContributionItem)4 ToolBarContributionItem (org.eclipse.jface.action.ToolBarContributionItem)4 ToolBarManager (org.eclipse.jface.action.ToolBarManager)4 Iterator (java.util.Iterator)2 AddPVAction (org.csstudio.trends.databrowser3.ui.AddPVAction)2 IFindReplaceTarget (org.eclipse.jface.text.IFindReplaceTarget)2 Point (org.eclipse.swt.graphics.Point)2 Shell (org.eclipse.swt.widgets.Shell)2