attach eclipse menus to the main window