Search in sources :

Example 26 with GroupMarker

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

the class ServerJobManager method fillContextMenu.

/**
 * Fill context menu
 * @param manager Menu manager
 */
protected void fillContextMenu(IMenuManager manager) {
    manager.add(actionRestartJob);
    manager.add(actionCancelJob);
    manager.add(new Separator());
    manager.add(actionHoldJob);
    manager.add(actionUnholdJob);
    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 27 with GroupMarker

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

the class Dot1xStatusView method fillContextMenu.

/**
 * Fill context menu
 * @param mgr Menu manager
 */
protected void fillContextMenu(IMenuManager manager) {
    manager.add(actionExportToCsv);
    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 28 with GroupMarker

use of org.eclipse.jface.action.GroupMarker in project mdw-designer by CenturyLinkCloud.

the class MdwActionBarAdvisor method fillMenuBar.

protected void fillMenuBar(IMenuManager menuBar) {
    MenuManager fileMenu = new MenuManager("&File", IWorkbenchActionConstants.M_FILE);
    menuBar.add(fileMenu);
    fileMenu.add(newAction);
    fileMenu.add(new Separator());
    fileMenu.add(closeAction);
    fileMenu.add(closeAllAction);
    fileMenu.add(new Separator());
    fileMenu.add(saveAction);
    fileMenu.add(saveAllAction);
    fileMenu.add(new Separator());
    fileMenu.add(importAction);
    fileMenu.add(exportAction);
    fileMenu.add(new Separator());
    fileMenu.add(exitAction);
    MenuManager editMenu = new MenuManager("&Edit", IWorkbenchActionConstants.M_EDIT);
    menuBar.add(editMenu);
    editMenu.add(copyAction);
    editMenu.add(pasteAction);
    editMenu.add(new Separator());
    editMenu.add(deleteAction);
    editMenu.add(new GroupMarker(IWorkbenchActionConstants.FIND_EXT));
    editMenu.add(new GroupMarker(ActionFactory.SELECT_ALL.getId()));
    menuBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    MenuManager windowMenu = new MenuManager("&Window", IWorkbenchActionConstants.M_WINDOW);
    menuBar.add(windowMenu);
    MenuManager showViewMenu = new MenuManager("Show View", "mdw.rcp.show.view");
    showViewMenu.add(viewShortcutsContribItem);
    windowMenu.add(showViewMenu);
    windowMenu.add(resetPerspectiveAction);
    windowMenu.add(new Separator());
    windowMenu.add(preferencesAction);
    MenuManager helpMenu = new MenuManager("&Help", IWorkbenchActionConstants.M_HELP);
    menuBar.add(helpMenu);
    helpMenu.add(helpContentsAction);
    helpMenu.add(new Separator());
    helpMenu.add(aboutAction);
}
Also used : MenuManager(org.eclipse.jface.action.MenuManager) IMenuManager(org.eclipse.jface.action.IMenuManager) GroupMarker(org.eclipse.jface.action.GroupMarker) Separator(org.eclipse.jface.action.Separator)

Example 29 with GroupMarker

use of org.eclipse.jface.action.GroupMarker in project mdw-designer by CenturyLinkCloud.

the class ProcessEditorActionBarContributor method init.

public void init(IActionBars bars, IWorkbenchPage page) {
    lockAction = createLockAction();
    runAction = createRunAction();
    debugAction = createDebugAction();
    instancesAction = createInstancesAction();
    linkTypeMenuCreator = new LinkTypeMenuCreator();
    linkTypeAction = createLinkTypeAction();
    iconShapeMenuCreator = new IconShapeMenuCreator();
    iconShapeAction = createIconShapeAction();
    processDefinitionAction = createProcessDefinitionAction();
    zoomLevelMenuCreator = new ZoomLevelMenuCreator();
    zoomLevelAction = createZoomLevelAction();
    exportAsAction = createExportAsAction();
    refreshAction = createRefreshAction();
    displayPrefsMenuCreator = new DisplayPrefsMenuCreator();
    displayPrefsAction = createDisplayPrefsAction();
    recordChangesAction = createRecordChangesAction();
    commitChangesAction = createCommitChangesAction();
    IToolBarManager toolbar = bars.getToolBarManager();
    toolbar.add(new GroupMarker("mdw.process.instance.group"));
    toolbar.add(lockAction);
    toolbar.add(runAction);
    toolbar.add(debugAction);
    toolbar.add(instancesAction);
    toolbar.add(linkTypeAction);
    toolbar.add(iconShapeAction);
    toolbar.add(processDefinitionAction);
    toolbar.add(zoomLevelAction);
    toolbar.add(displayPrefsAction);
    toolbar.add(exportAsAction);
    toolbar.add(refreshAction);
    toolbar.add(recordChangesAction);
    toolbar.add(commitChangesAction);
}
Also used : IToolBarManager(org.eclipse.jface.action.IToolBarManager) GroupMarker(org.eclipse.jface.action.GroupMarker)

Example 30 with GroupMarker

use of org.eclipse.jface.action.GroupMarker in project mdw-designer by CenturyLinkCloud.

the class ProcessExplorerActionGroup method fillActionBars.

@Override
public void fillActionBars(IActionBars actionBars) {
    super.fillActionBars(actionBars);
    IToolBarManager toolbar = actionBars.getToolBarManager();
    toolbar.add(new GroupMarker("mdw.process.explorer.group"));
    toolbar.add(collapseAllAction);
    toolbar.add(sortToolbarAction);
    toolbar.add(filterToolbarAction);
    toolbar.add(refreshToolbarAction);
    toolbar.add(new Separator());
    toolbar.add(newPackageToolbarAction);
}
Also used : IToolBarManager(org.eclipse.jface.action.IToolBarManager) 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