Search in sources :

Example 41 with GroupMarker

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

the class EventObjectList method fillContextMenu.

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

Example 42 with GroupMarker

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

the class AbstractNetworkMapView method fillMapContextMenu.

/**
 * Fill context menu for map view
 *
 * @param manager Menu manager
 */
protected void fillMapContextMenu(IMenuManager manager) {
    MenuManager zoom = new MenuManager(Messages.get().AbstractNetworkMapView_Zoom);
    for (int i = 0; i < actionZoomTo.length; i++) zoom.add(actionZoomTo[i]);
    MenuManager figureType = new MenuManager(Messages.get().AbstractNetworkMapView_DisplayObjectAs);
    figureType.add(actionFiguresIcons);
    figureType.add(actionFiguresSmallLabels);
    figureType.add(actionFiguresLargeLabels);
    figureType.add(actionFiguresStatusIcons);
    figureType.add(actionFiguresFloorPlan);
    manager.add(actionShowStatusBackground);
    manager.add(actionShowStatusIcon);
    manager.add(actionShowStatusFrame);
    manager.add(actionShowLinkDirection);
    manager.add(new Separator());
    manager.add(createLayoutSubmenu());
    manager.add(createRoutingSubmenu());
    manager.add(figureType);
    manager.add(new Separator());
    manager.add(actionZoomIn);
    manager.add(actionZoomOut);
    manager.add(actionZoomFit);
    manager.add(zoom);
    manager.add(new Separator());
    manager.add(actionAlignToGrid);
    manager.add(actionSnapToGrid);
    manager.add(actionShowGrid);
    manager.add(new Separator());
    manager.add(actionHideLinkLabels);
    manager.add(actionHideLinks);
    manager.add(new Separator());
    manager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    manager.add(new Separator());
    manager.add(actionSelectAllObjects);
    manager.add(new Separator());
    manager.add(actionRefresh);
}
Also used : MenuManager(org.eclipse.jface.action.MenuManager) IMenuManager(org.eclipse.jface.action.IMenuManager) FilteringMenuManager(org.netxms.ui.eclipse.tools.FilteringMenuManager) GroupMarker(org.eclipse.jface.action.GroupMarker) Point(org.eclipse.draw2d.geometry.Point) Separator(org.eclipse.jface.action.Separator)

Example 43 with GroupMarker

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

the class ObjectBrowser method createToolBar.

/**
 * Create view toolbar
 */
private void createToolBar() {
    IToolBarManager manager = getViewSite().getActionBars().getToolBarManager();
    manager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    manager.add(actionRefresh);
}
Also used : IToolBarManager(org.eclipse.jface.action.IToolBarManager) GroupMarker(org.eclipse.jface.action.GroupMarker)

Example 44 with GroupMarker

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

the class HistoricalDataView method fillContextMenu.

/**
 * Fill context menu
 * @param manager
 */
private void fillContextMenu(IMenuManager manager) {
    manager.add(actionDeleteDciEntry);
    manager.add(actionSelectRange);
    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 45 with GroupMarker

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

the class PredefinedGraphTree method fillLocalPullDown.

/**
 * Fill local pull-down menu
 *
 * @param manager
 *           Menu manager for pull-down menu
 */
private void fillLocalPullDown(IMenuManager manager) {
    manager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    manager.add(new Separator());
    manager.add(actionShowFilter);
    manager.add(new Separator());
    manager.add(actionRefresh);
}
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