Bug 305807 iconURI does not work for HandledMenuItem
Given the following declaration, the menu item shows up but does not have the specified icon. The same iconURI attribute works when used with a part descriptor. <components parentID="org.eclipse.ui.main.menu"> <children xsi:type="application:MenuItem" label="Fa&amp;vorites"> <children xsi:type="application:HandledMenuItem" label="Open Favorites View" command="com.qualityeclipse.favorites.commands.openView" iconURI="platform:/plugin/com.qualityeclipse.favorites_e4/icons/sample.gif" /> </children> </components>
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/MenuItemRenderer.java
public Object getUIContainer(MUIElement element) {
		if (!(element instanceof MMenuItem))
			return null;
		if (!(element.getParent().getWidget() instanceof MenuItem))
			return null;
		MenuItem mi = (MenuItem) element.getParent().getWidget();
		if (mi.getMenu() == null) {
			mi.setMenu(new Menu(mi));
		}
		return mi.getMenu();
	}
	private ParameterizedCommand generateParameterizedCommand(
			final MHandledItem item, final IEclipseContext lclContext) {
		ECommandService cmdService = (ECommandService) lclContext
				.get(ECommandService.class.getName());
		Map<String, Object> parameters = null;
		EList<MParameter> modelParms = item.getParameters();
		if (modelParms != null && !modelParms.isEmpty()) {
			parameters = new HashMap<String, Object>();
			for (MParameter mParm : modelParms) {
				parameters.put(mParm.getTag(), mParm.getValue());
			}
		}
		ParameterizedCommand cmd = cmdService.createCommand(item.getCommand()
				.getId(), parameters);
		item.setWbCommand(cmd);
		return cmd;
	}
}