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/MToolItemTest.java
testMToolItem_Text("label", "label", "label2", "label2");
	}
	private void testMToolItem_Tooltip(String before, String beforeExpected,
			String after, String afterExpected) {
		MWindow window = MApplicationFactory.eINSTANCE.createWindow();
		MWindowTrim windowTrim = MApplicationFactory.eINSTANCE
				.createWindowTrim();
		MToolBar toolBar = MApplicationFactory.eINSTANCE.createToolBar();
		MToolItem toolItem = MApplicationFactory.eINSTANCE.createToolItem();
		toolItem.setTooltip(before);
		window.getChildren().add(windowTrim);
		toolBar.getChildren().add(toolItem);
		windowTrim.getChildren().add(toolBar);
		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 = toolItem.getWidget();
		assertNotNull(widget);
		assertTrue(widget instanceof ToolItem);
		ToolItem toolItemWidget = (ToolItem) widget;
		assertEquals(beforeExpected, toolItemWidget.getToolTipText());
		toolItem.setTooltip(after);
		assertEquals(afterExpected, toolItemWidget.getToolTipText());
	}
	public void testMToolItem_Tooltip_NullNull() {
		testMToolItem_Tooltip(null, null, null, null);