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
MMenu menu = MenuFactoryImpl.eINSTANCE.createMenu();
		window.setMainMenu(menu);
		saveModel();
		ModelReconciler reconciler = createModelReconciler();
		reconciler.recordChanges(application);
		window.setMainMenu(null);
		Object state = reconciler.serialize();
		application = createApplication();
		window = application.getChildren().get(0);
		menu = window.getMainMenu();
		Collection<ModelDelta> deltas = constructDeltas(application, state);
		assertEquals(menu, window.getMainMenu());
		applyAll(deltas);
		assertNull(window.getMainMenu());
	}
	private void testWindow_Menu_Visible(boolean before, boolean after) {
		MApplication application = createApplication();
		MWindow window = createWindow(application);
		MMenu menu = MenuFactoryImpl.eINSTANCE.createMenu();
		menu.setToBeRendered(before);
		window.setMainMenu(menu);
		saveModel();
		ModelReconciler reconciler = createModelReconciler();
		reconciler.recordChanges(application);
		menu.setToBeRendered(after);
		Object state = reconciler.serialize();
		application = createApplication();
		window = application.getChildren().get(0);
		menu = window.getMainMenu();
		Collection<ModelDelta> deltas = constructDeltas(application, state);