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
public void testPart_Addition_PlacedAfterRemovedPart_UserWins() {
		MApplication application = createApplication();
		MWindow window = createWindow(application);
		MPart partA = BasicFactoryImpl.eINSTANCE.createPart();
		MPart partB = BasicFactoryImpl.eINSTANCE.createPart();
		MPart partC = BasicFactoryImpl.eINSTANCE.createPart();
		window.getChildren().add(partA);
		window.getChildren().add(partB);
		window.getChildren().add(partC);
		saveModel();
		ModelReconciler reconciler = createModelReconciler();
		reconciler.recordChanges(application);
		window.getChildren().remove(partB);
		Object state = reconciler.serialize();
		application = createApplication();
		window = application.getChildren().get(0);
		partA = (MPart) window.getChildren().get(0);
		partB = (MPart) window.getChildren().get(1);
		partC = (MPart) window.getChildren().get(2);
		MPart partD = BasicFactoryImpl.eINSTANCE.createPart();
		window.getChildren().add(partD);
		Collection<ModelDelta> deltas = constructDeltas(application, state);
		List<MWindowElement> children = window.getChildren();
		assertEquals(4, children.size());
		assertEquals(partA, children.get(0));
		assertEquals(partB, children.get(1));
		assertEquals(partC, children.get(2));
		assertEquals(partD, children.get(3));
		applyAll(deltas);
		children = window.getChildren();