Bug 293357 [context] Switch annotation processing to JSR 330
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/MenuItemRenderer.java
@Inject
	public void init(IEventBroker eventBroker) {
		EventHandler itemUpdater = new EventHandler() {
			public void handleEvent(Event event) {
				
				if (!(event.getProperty(IUIEvents.EventTags.Element) instanceof MMenuItem))
					return;
				MMenuItem itemModel = (MMenuItem) event
						.getProperty(IUIEvents.EventTags.Element);
				MenuItem menuItem = (MenuItem) itemModel.getWidget();
				
				if (menuItem == null)
					return;
				String attName = (String) event
						.getProperty(IUIEvents.EventTags.AttName);
				if (IUIEvents.UIItem.Name.equals(attName)) {
					String newValue = (String) event
							.getProperty(IUIEvents.EventTags.NewValue);
					menuItem.setText(newValue);
				} else if (IUIEvents.UIItem.IconURI.equals(attName)) {
					menuItem.setImage(getImage(itemModel));
				}
			}
		};
		eventBroker.subscribe(IUIEvents.UIItem.Topic, itemUpdater);
	}
	public Object createWidget(final MUIElement element, Object parent) {
		if (!(element instanceof MMenuItem) || !(parent instanceof Menu))