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
MMenuItem e4MenuItem = MenuFactoryImpl.eINSTANCE.createDirectMenuItem();
		e4MenuItem.setLabel("e4");
		menu.getChildren().add(2, e4MenuItem);
		Collection<ModelDelta> deltas = constructDeltas(application, state);
		assertEquals(1, application.getChildren().size());
		assertEquals(window, application.getChildren().get(0));
		assertEquals(menu, window.getMainMenu());
		assertEquals(4, menu.getChildren().size());
		assertEquals(fileMenuItem, menu.getChildren().get(0));
		assertEquals(editMenuItem, menu.getChildren().get(1));
		assertEquals(e4MenuItem, menu.getChildren().get(2));
		assertEquals(helpMenuItem, menu.getChildren().get(3));
		applyAll(deltas);
		assertEquals(1, application.getChildren().size());
		assertEquals(window, application.getChildren().get(0));
		assertEquals(menu, window.getMainMenu());
		assertEquals(5, menu.getChildren().size());
		assertEquals(fileMenuItem, menu.getChildren().get(0));
		assertEquals(editMenuItem, menu.getChildren().get(1));
		assertEquals("CVS", menu.getChildren().get(2).getLabel());
		assertEquals(e4MenuItem, menu.getChildren().get(3));
		assertEquals(helpMenuItem, menu.getChildren().get(4));
	}
	/**
	 * Tests that the changes pertaining to multiple key bindings that map to
	 * the same command gets applied properly.
	 * <p>
	 * The application defines one command with an id of "commandId". The
	 * application also has a child window. Both the application and the window
	 * has a key binding that points to the "commandId" command. The test will