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/ModelReconcilerWindowTest.java
assertEquals(window, application.getChildren().get(0));
		assertEquals(1, window.getSharedElements().size());
		assertTrue(window.getSharedElements().get(0) instanceof MPart);
	}
	public void testWindow_SharedElements_Remove() {
		MApplication application = createApplication();
		MWindow window = createWindow(application);
		MPart part = BasicFactoryImpl.eINSTANCE.createPart();
		window.getSharedElements().add(part);
		System.out.println(part.getParent());
		saveModel();
		ModelReconciler reconciler = createModelReconciler();
		reconciler.recordChanges(application);
		window.getSharedElements().remove(part);
		Object state = reconciler.serialize();
		application = createApplication();
		window = application.getChildren().get(0);
		part = (MPart) window.getSharedElements().get(0);
		Collection<ModelDelta> deltas = constructDeltas(application, state);
		assertEquals(1, application.getChildren().size());
		assertEquals(window, application.getChildren().get(0));
		assertEquals(1, window.getSharedElements().size());
		assertEquals(part, window.getSharedElements().get(0));
		applyAll(deltas);
		assertEquals(1, application.getChildren().size());
		assertEquals(window, application.getChildren().get(0));
		assertEquals(0, window.getSharedElements().size());
	}
}