EMF Client Platform and EMFStore Release 0.9.2 available

July 2, 2012 | 1 min Read

We have just completed a service release (0.9.2) for EMF Client Platform and EMFStore. The release contains small fixes to work on Eclipse 4.2 Juno (compatibility layer). Generally, the migration went smoothly and only required minor changes to the code.

One fix might be interesting for other projects. The issue was that some context menus were displayed twice. To fix it you have to look at the order of operations in the context menu initialization. It’s important that the menu is set for the control before the context menu is registered.

menuMgr = new MenuManager();
menuMgr.add(new Separator("additions"));

Control control = viewer.getControl();
Menu menu = menuMgr.createContextMenu(control);
control.setMenu(menu);
getSite().registerContextMenu(menuMgr, viewer);
Jonas Helming

Jonas Helming

Dr. Jonas Helming is CEO of EclipseSource as well as consultant, trainer and software engineer. His focus is on web-based tools, IDEs, and tailored AI assistance in tools …