use of org.eclipse.jface.action.Separator in project tdi-studio-se by Talend.
the class ThreadFilteredTree method createContextMenu.
/**
* Creates the context menu.
*
* @param actionBars The action bars
*/
private void createContextMenu(IActionBars actionBars) {
configureColumnsAction = new ConfigureColumnsAction(this);
final CopyAction copyAction = CopyAction.createCopyAction(actionBars);
getViewer().addSelectionChangedListener(copyAction);
//$NON-NLS-1$
MenuManager menuMgr = new MenuManager("#PopupMenu");
menuMgr.setRemoveAllWhenShown(true);
menuMgr.addMenuListener(new IMenuListener() {
@Override
public void menuAboutToShow(IMenuManager manager) {
manager.add(copyAction);
manager.add(new Separator());
manager.add(configureColumnsAction);
}
});
Menu menu = menuMgr.createContextMenu(getViewer().getControl());
getViewer().getControl().setMenu(menu);
}
use of org.eclipse.jface.action.Separator in project tdi-studio-se by Talend.
the class JSONFileOutputStep2Form method fillContextMenu.
private void fillContextMenu(IMenuManager manager) {
if (!JSONViewer.getSelection().isEmpty()) {
manager.add(createAction);
manager.add(createAttributeAction);
manager.add(createNamespaceAction);
manager.add(new Separator());
manager.add(deleteAction);
manager.add(disconnectAction);
manager.add(fixValueAction);
manager.add(new Separator());
manager.add(setLoopAction);
manager.add(new Separator());
manager.add(setGroupAction);
manager.add(removeGroupAction);
manager.add(new Separator());
manager.add(importFromJSONAction);
}
}
use of org.eclipse.jface.action.Separator in project sling by apache.
the class JcrPropertiesView method fillContextMenu.
private void fillContextMenu(IMenuManager manager) {
manager.add(insertAction);
manager.add(deleteAction);
manager.add(showInEditorAction);
if (pinAction != null) {
manager.add(pinAction);
}
if (synchedAction != null) {
manager.add(synchedAction);
}
// Other plug-ins can contribute there actions here
manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
}
use of org.eclipse.jface.action.Separator in project bndtools by bndtools.
the class RepositoriesView method fillToolBar.
private void fillToolBar(IToolBarManager toolBar) {
toolBar.add(advancedSearchAction);
toolBar.add(downloadAction);
toolBar.add(new Separator());
toolBar.add(refreshAction);
toolBar.add(collapseAllAction);
toolBar.add(addBundlesAction);
toolBar.add(new Separator());
toolBar.add(offlineAction);
toolBar.add(new Separator());
}
Aggregations