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
applyAll(deltas);
		assertEquals(1, application.getChildren().size());
		assertEquals(window, application.getChildren().get(0));
		assertEquals(2, window.getChildren().size());
		assertEquals(partStack1, window.getChildren().get(0));
		assertEquals(1, partStack1.getChildren().size());
		assertEquals(part1, partStack1.getChildren().get(0));
		partStack2 = (MPartStack) window.getChildren().get(1);
		assertEquals(0, partStack2.getChildren().size());
		assertNull(partStack2.getSelectedElement());
	}
	public void testElementContainer_Children_Move_IdenticalToUserChange() {
		MApplication application = createApplication();
		MWindow window = BasicFactoryImpl.eINSTANCE.createWindow();
		application.getChildren().add(window);
		MPartStack partStack1 = BasicFactoryImpl.eINSTANCE.createPartStack();
		MPartStack partStack2 = BasicFactoryImpl.eINSTANCE.createPartStack();
		window.getChildren().add(partStack1);
		window.getChildren().add(partStack2);
		MPart part1 = BasicFactoryImpl.eINSTANCE.createPart();
		MPart part2 = BasicFactoryImpl.eINSTANCE.createPart();
		partStack1.getChildren().add(part1);
		partStack1.getChildren().add(part2);
		MPart part3 = BasicFactoryImpl.eINSTANCE.createPart();
		partStack2.getChildren().add(part3);
		saveModel();
		ModelReconciler reconciler = createModelReconciler();
		reconciler.recordChanges(application);
		partStack2.getChildren().add(part2);
		Object state = reconciler.serialize();