Search in sources :

Example 36 with GroupMarker

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

the class AbstractTraceWidget method fillContextMenu.

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

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

the class LastValuesWidget method fillContextMenu.

/**
 * Fill context menu
 * @param mgr Menu manager
 */
protected void fillContextMenu(IMenuManager manager) {
    manager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    manager.add(new Separator());
    manager.add(actionExportToCsv);
    manager.add(new Separator());
    manager.add(new GroupMarker(GroupMarkers.MB_SECONDARY));
    manager.add(new Separator());
    manager.add(actionUseMultipliers);
    manager.add(actionShowErrors);
    manager.add(actionShowDisabled);
    manager.add(actionShowUnsupported);
}
Also used : GroupMarker(org.eclipse.jface.action.GroupMarker) Separator(org.eclipse.jface.action.Separator)

Example 38 with GroupMarker

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

the class SummaryTableWidget method fillContextMenu.

/**
 * Fill context menu
 * @param mgr Menu manager
 */
protected void fillContextMenu(IMenuManager manager, MenuManager nodeMenuManager) {
    manager.add(actionUseMultipliers);
    manager.add(new Separator());
    manager.add(nodeMenuManager);
    manager.add(new GroupMarker(GroupMarkers.MB_OBJECT_TOOLS));
    manager.add(new Separator());
    manager.add(actionShowObjectDetails);
    manager.add(new Separator());
    if (// $NON-NLS-1$
    (currentColumn != null) && ((Integer) currentColumn.getData("ID") > 0)) {
        manager.add(new Action(String.format(Messages.get().SummaryTableWidget_ForcePollForNode, currentColumn.getText())) {

            @Override
            public void run() {
                forcePoll(false);
            }
        });
    }
    manager.add(actionForcePollAll);
    manager.add(actionExportToCsv);
}
Also used : ExportToCsvAction(org.netxms.ui.eclipse.actions.ExportToCsvAction) Action(org.eclipse.jface.action.Action) GroupMarker(org.eclipse.jface.action.GroupMarker) Separator(org.eclipse.jface.action.Separator)

Example 39 with GroupMarker

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

the class DataCollectionEditor method fillContextMenu.

/**
 * Fill context menu
 *
 * @param mgr Menu manager
 */
protected void fillContextMenu(final IMenuManager manager) {
    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(actionExportToCsv);
    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));
}
Also used : GroupMarker(org.eclipse.jface.action.GroupMarker) Separator(org.eclipse.jface.action.Separator)

Example 40 with GroupMarker

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

the class ApplicationActionBarAdvisor method fillCoolBar.

/* (non-Javadoc)
	 * @see org.eclipse.ui.application.ActionBarAdvisor#fillCoolBar(org.eclipse.jface.action.ICoolBarManager)
	 */
@Override
protected void fillCoolBar(ICoolBarManager coolBar) {
    IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.TRAIL);
    toolbar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    // $NON-NLS-1$
    coolBar.add(new ToolBarContributionItem(toolbar, "product"));
    toolbar = new ToolBarManager(SWT.FLAT | SWT.TRAIL);
    toolbar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    // $NON-NLS-1$
    coolBar.add(new ToolBarContributionItem(toolbar, "view"));
    toolbar = new ToolBarManager(SWT.FLAT | SWT.TRAIL);
    toolbar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    // $NON-NLS-1$
    coolBar.add(new ToolBarContributionItem(toolbar, "logs"));
    toolbar = new ToolBarManager(SWT.FLAT | SWT.TRAIL);
    toolbar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    // $NON-NLS-1$
    coolBar.add(new ToolBarContributionItem(toolbar, "tools"));
    toolbar = new ToolBarManager(SWT.FLAT | SWT.TRAIL);
    toolbar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    // $NON-NLS-1$
    coolBar.add(new ToolBarContributionItem(toolbar, "config"));
    if (// $NON-NLS-1$
    Activator.getDefault().getPreferenceStore().getBoolean("SHOW_SERVER_CLOCK")) {
        coolBar.add(new ServerClockContributionItem());
    }
    // $NON-NLS-1$
    ConsoleSharedData.setProperty("CoolBarManager", coolBar);
}
Also used : ToolBarContributionItem(org.eclipse.jface.action.ToolBarContributionItem) IToolBarManager(org.eclipse.jface.action.IToolBarManager) GroupMarker(org.eclipse.jface.action.GroupMarker) IToolBarManager(org.eclipse.jface.action.IToolBarManager) ToolBarManager(org.eclipse.jface.action.ToolBarManager)

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