Bug 316558 [XMI] Changes to a window's main menu is not being persisted properly
Additions to an MWindow's main menu is not being persisted correctly.
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/reconciler/ModelReconcilerScenarioTest.java
MApplication application = createApplication();
		MWindow window = createWindow(application);
		MMenu menu = MenuFactoryImpl.eINSTANCE.createMenu();
		window.setMainMenu(menu);
		MMenuItem fileMenuItem = MenuFactoryImpl.eINSTANCE
				.createDirectMenuItem();
		fileMenuItem.setLabel("File");
		MMenuItem editMenuItem = MenuFactoryImpl.eINSTANCE
				.createDirectMenuItem();
		editMenuItem.setLabel("Edit");
		MMenuItem helpMenuItem = MenuFactoryImpl.eINSTANCE
				.createDirectMenuItem();
		helpMenuItem.setLabel("Help");
		menu.getChildren().add(fileMenuItem);
		menu.getChildren().add(editMenuItem);
		menu.getChildren().add(helpMenuItem);
		saveModel();
		ModelReconciler reconciler = createModelReconciler();
		reconciler.recordChanges(application);
		MMenuItem cvsMenuItem = MenuFactoryImpl.eINSTANCE
				.createDirectMenuItem();
		cvsMenuItem.setLabel("CVS");
		menu.getChildren().add(2, cvsMenuItem);
		Object state = reconciler.serialize();
		application = createApplication();
		window = application.getChildren().get(0);
		menu = window.getMainMenu();
		fileMenuItem = (MMenuItem) menu.getChildren().get(0);
		editMenuItem = (MMenuItem) menu.getChildren().get(1);
		helpMenuItem = (MMenuItem) menu.getChildren().get(2);