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.
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/MenuItemRenderer.java
if (menuItem == null)
					return;
				String attName = (String) event
						.getProperty(UIEvents.EventTags.ATTNAME);
				if (UIEvents.UILabel.LABEL.equals(attName)) {
					setItemText(itemModel, menuItem);
				} else if (UIEvents.UILabel.ICONURI.equals(attName)) {
					menuItem.setImage(getImage(itemModel));
				}
			}
		};
		eventBroker.subscribe(UIEvents.buildTopic(UIEvents.UILabel.TOPIC),
				itemUpdater);
	}
	@PreDestroy
	public void contextDisposed() {
		eventBroker.unsubscribe(itemUpdater);
	}
	public Object createWidget(final MUIElement element, Object parent) {
		if (!(element instanceof MMenuItem) || !(parent instanceof Menu))
			return null;
		MMenuItem itemModel = (MMenuItem) element;
		Menu parentMenu = (Menu) parent;
		
		int addIndex = calcVisibleIndex(element);
		if (itemModel.getType() == ItemType.SEPARATOR) {
			return new MenuItem(parentMenu, SWT.SEPARATOR, addIndex);
		}