use of org.eclipse.jface.action.Separator in project meclipse by flaper87.
the class MeclipseView method fillContextMenu.
private void fillContextMenu(IMenuManager manager) {
manager.add(connection);
manager.add(new Separator());
// drillDownAdapter.addNavigationActions(manager);
// Other plug-ins can contribute there actions here
// manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
}
use of org.eclipse.jface.action.Separator in project meclipse by flaper87.
the class MeclipseView method hookContextMenu.
private void hookContextMenu() {
MenuManager menuMgr = new MenuManager("#PopupMenu");
menuMgr.setRemoveAllWhenShown(true);
menuMgr.addMenuListener(new IMenuListener() {
public void menuAboutToShow(IMenuManager manager) {
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
if (selection.isEmpty()) {
MeclipseView.this.fillContextMenu(manager);
return;
}
TreeObject obj = (TreeObject) selection.getFirstElement();
manager.add(new Separator());
obj.fillContextMenu(manager);
}
});
Menu menu = menuMgr.createContextMenu(viewer.getControl());
viewer.getControl().setMenu(menu);
getSite().registerContextMenu(menuMgr, viewer);
}
use of org.eclipse.jface.action.Separator in project meclipse by flaper87.
the class Collection method fillContextMenu.
@Override
public void fillContextMenu(IMenuManager manager) {
manager.add(insert);
manager.add(rename);
manager.add(delete);
manager.add(new Separator());
super.fillContextMenu(manager);
}
use of org.eclipse.jface.action.Separator in project meclipse by flaper87.
the class Connection method fillContextMenu.
/*
* @Override public void doubleClickAction() { if (getChildren().length ==
* 0) { loadDatabases(); } }
*/
@Override
public void fillContextMenu(IMenuManager manager) {
manager.add(delete);
manager.add(new Separator());
super.fillContextMenu(manager);
}
use of org.eclipse.jface.action.Separator in project meclipse by flaper87.
the class TreeObject method fillContextMenu.
public void fillContextMenu(IMenuManager manager) {
manager.add(reflesh);
manager.add(showPropertiesView);
manager.add(new Separator());
// Other plug-ins can contribute there actions here
manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
}
Aggregations