use of org.eclipse.jface.action.GroupMarker in project netxms by netxms.
the class LastValues 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(new GroupMarker(GroupMarkers.MB_SECONDARY));
}
use of org.eclipse.jface.action.GroupMarker in project netxms by netxms.
the class TabbedObjectView method fillLocalPullDown.
/**
* Fill local pull-down menu
* @param manager
*/
private void fillLocalPullDown(IMenuManager manager) {
manager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
manager.add(new Separator());
manager.add(actionRefresh);
}
use of org.eclipse.jface.action.GroupMarker in project netxms by netxms.
the class ObjectToolsEditor method fillContextMenu.
/**
* Fill context menu
*
* @param mgr Menu manager
*/
protected void fillContextMenu(final IMenuManager mgr) {
mgr.add(actionNew);
mgr.add(actionDelete);
mgr.add(actionClone);
mgr.add(new Separator());
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
if (containsEnabled(selection)) {
mgr.add(actionDisable);
}
if (containsDisabled(selection)) {
mgr.add(actionEnable);
}
mgr.add(new Separator());
mgr.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
mgr.add(new Separator());
mgr.add(actionEdit);
}
use of org.eclipse.jface.action.GroupMarker in project netxms by netxms.
the class ObjectContextMenu method fill.
/**
* Fill default object context menu
*
* @param manager
*/
public static void fill(IMenuManager manager, IShellProvider shellProvider, ISelectionProvider selectionProvider) {
manager.add(new GroupMarker(GroupMarkers.MB_OBJECT_CREATION));
manager.add(new Separator());
manager.add(new GroupMarker(GroupMarkers.MB_ATM));
manager.add(new Separator());
manager.add(new GroupMarker(GroupMarkers.MB_NXVS));
manager.add(new Separator());
manager.add(new GroupMarker(GroupMarkers.MB_OBJECT_MANAGEMENT));
manager.add(new GroupMarker(GroupMarkers.MB_OBJECT_TOOLS));
manager.add(new Separator());
manager.add(new GroupMarker(GroupMarkers.MB_OBJECT_BINDING));
manager.add(new Separator());
manager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
manager.add(new Separator());
manager.add(new GroupMarker(GroupMarkers.MB_EVENTS_AND_LOGS));
manager.add(new Separator());
manager.add(new GroupMarker(GroupMarkers.MB_TOPOLOGY));
manager.add(new Separator());
manager.add(new GroupMarker(GroupMarkers.MB_DATA_COLLECTION));
manager.add(new Separator());
manager.add(new GroupMarker(GroupMarkers.MB_PROPERTIES));
if ((shellProvider != null) && (selectionProvider != null) && (((IStructuredSelection) selectionProvider.getSelection()).size() == 1)) {
PropertyDialogAction action = new PropertyDialogAction(shellProvider, selectionProvider);
manager.add(action);
action.setEnabled((selectionProvider.getSelection() instanceof IStructuredSelection) && (((IStructuredSelection) selectionProvider.getSelection()).size() == 1));
}
}
use of org.eclipse.jface.action.GroupMarker in project netxms by netxms.
the class HostSearchResults method fillContextMenu.
/**
* Fill context menu
* @param mgr Menu manager
*/
protected void fillContextMenu(IMenuManager manager) {
/*
manager.add(actionCopyRecord);
manager.add(actionCopyIP);
manager.add(actionCopyMAC);
manager.add(new Separator());
*/
manager.add(actionClearLog);
manager.add(new Separator());
manager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
}
Aggregations