MenuManager fileMenu = new MenuManager("&File", IWorkbenchActionConstants.M_FILE); //Create File menu as a normal Menu
menuBar.add(fileMenu); //add it to the MenuBar
MenuManager helpMenu = createMenu("&Help", IWorkbenchActionConstants.M_HELP); //Create the Help Menu with start, end, and additions as divisions
helpMenu.add(new Separator()); //Add a separator and then add the "About" MenuItem.
helpMenu.appendToGroup("end",aboutAction);
menuBar.add(new GroupMarker("start")); //Add divisions to the MenuBar so we can add
//additional menus to the MenuBar between File and Help menus //the File and Help menus.
menuBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
menuBar.add(new GroupMarker("end"));