Search in sources :

Example 86 with GroupMarker

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

the class LogViewer method fillContextMenu.

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

Example 87 with GroupMarker

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

the class EventConfigurator method fillContextMenu.

/**
 * Fill context menu
 *
 * @param mgr Menu manager
 */
protected void fillContextMenu(final IMenuManager mgr) {
    mgr.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    mgr.add(dataView.getActionRefresh());
    mgr.add(dataView.getActionDelete());
    mgr.add(dataView.getActionNewGroup());
    mgr.add(dataView.getActionRemoveFromGroup());
    mgr.add(new Separator());
    mgr.add(dataView.getActionShowGroups());
    mgr.add(dataView.getActionEdit());
}
Also used : GroupMarker(org.eclipse.jface.action.GroupMarker) Separator(org.eclipse.jface.action.Separator)

Example 88 with GroupMarker

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

the class ObjectBrowser method createMenu.

/**
 * Create view menu
 */
private void createMenu() {
    IMenuManager manager = getViewSite().getActionBars().getMenuManager();
    FilteringMenuManager.add(manager, actionShowFilter, Activator.PLUGIN_ID);
    FilteringMenuManager.add(manager, actionShowStatusIndicator, Activator.PLUGIN_ID);
    FilteringMenuManager.add(manager, actionHideSubInterfaces, Activator.PLUGIN_ID);
    FilteringMenuManager.add(manager, actionHideUnmanaged, Activator.PLUGIN_ID);
    FilteringMenuManager.add(manager, actionHideTemplateChecks, Activator.PLUGIN_ID);
    manager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    manager.add(new Separator());
    FilteringMenuManager.add(manager, actionRefresh, Activator.PLUGIN_ID);
}
Also used : GroupMarker(org.eclipse.jface.action.GroupMarker) IMenuManager(org.eclipse.jface.action.IMenuManager) Separator(org.eclipse.jface.action.Separator)

Example 89 with GroupMarker

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

the class SwitchForwardingDatabaseView 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 90 with GroupMarker

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

the class CertificateView method fillContextMenu.

/**
 * Fill context menu
 *
 * @param mgr Menu manager
 */
protected void fillContextMenu(final IMenuManager mgr) {
    mgr.add(actionNew);
    mgr.add(actionDelete);
    mgr.add(new Separator());
    mgr.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    mgr.add(new Separator());
    mgr.add(actionEdit);
}
Also used : 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