Bug 306738 Renderer does not synchronize ToolItem selection state with MToolItem
Build: I20100318-2100 I have an app with an MToolBar defining a set of tool items of type "radio". When I select a different tool item, the button states change. Upon quitting the application, however, the change of state is not written to the delta. As a result, when running the application again, the toolbar item states are not what they should be.
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/MMenuItemTest.java
}
	protected Control[] getPresentationControls(Shell shell) {
		TrimmedPartLayout tpl = (TrimmedPartLayout) shell.getLayout();
		return tpl.clientArea.getChildren();
	}
	private void testMMenuItem_Text(String before, String beforeExpected,
			String after, String afterExpected) {
		MWindow window = MApplicationFactory.eINSTANCE.createWindow();
		MMenu menu = MApplicationFactory.eINSTANCE.createMenu();
		MMenuItem menuItem = MApplicationFactory.eINSTANCE.createMenuItem();
		menuItem.setLabel(before);
		window.setMainMenu(menu);
		menu.getChildren().add(menuItem);
		MApplication application = MApplicationFactory.eINSTANCE
				.createApplication();
		application.getChildren().add(window);
		application.setContext(appContext);
		appContext.set(MApplication.class.getName(), application);
		wb = new E4Workbench(window, appContext);
		wb.createAndRunUI(window);
		Object widget = menuItem.getWidget();
		assertNotNull(widget);
		assertTrue(widget instanceof MenuItem);
		MenuItem menuItemWidget = (MenuItem) widget;
		assertEquals(beforeExpected, menuItemWidget.getText());
		menuItem.setLabel(after);
		assertEquals(afterExpected, menuItemWidget.getText());
	}
	public void testMMenuItem_Text_NullNull() {
		testMMenuItem_Text(null, "", null, "");