EMF Client Platform and EMFStore Release 0.9.2 available

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);

Comments are closed.

No responses yet

Written by . Published in Categories: Planet Eclipse

Author:
Published:
Jul 2nd, 2012
Follow:

Twitter Google+