|
|
|
|
Re: Create Body Context Menu in E4 with NatTable [message #1220058 is a reply to message #1220054] |
Mon, 09 December 2013 11:56 |
Ludwig Moser Messages: 476 Registered: July 2009 |
Senior Member |
|
|
nope. the only thing i get injected is the EMenuService, and this one is not null.
i checked this like 10 times, before posting here. all parameters are filled and not null.
eg:
public EclipsePopupMenuBuilder(EMenuService menuService, NatTable natTable,
String menuId) {
System.out.println("building an PopupMenu for NatTable:");
System.out.println("\tmenuId: " + menuId);
System.out.println("\tmenuService: " + menuService);
System.out.println("\tnatTable: " + natTable);
if (menuService != null) {
popupMenu = new Menu(natTable.getShell(), SWT.POP_UP); // testing
natTable.setMenu(popupMenu);// testing
e4popupMenu = menuService.registerContextMenu(natTable, menuId);
System.out.println("\te4popupMenu : "
+ e4popupMenu);
System.out.println("\tswt menu : "
+ popupMenu);
}
}
and the output:
building an PopupMenu for NatTable:
menuId: at.biooffice.views.site.listview.menu
menuService: org.eclipse.e4.ui.workbench.swt.modeling.MenuService@146e54c
natTable: NatTable {}
e4popupMenu : null
swt menu : Menu {}
hope this helps
[Updated on: Mon, 09 December 2013 12:03] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04446 seconds