Bug 12116 [Contributions] widgets: MenuManager.setImageDescriptor() method needed
Currently there seems to be no API to assign image to menu item that contains submenu, the only way is to override MenuManager.fill() methods. That seems to be inconsistent.
bundles/org.eclipse.jface/src/org/eclipse/jface/action/MenuManager.java
if (ci.isSeparator()) {
                         
                        
                        separator = ci;
                    } else {
                        if (separator != null) {
                            if (clean.size() > 0) {
								clean.add(separator);
							}
                            separator = null;
                        }
                        clean.add(ci);
                    }
                }
                
                MenuItem[] mi = menu.getItems();
                for (int i = 0; i < mi.length; i++) {
                    Object data = mi[i].getData();
                    if (data == null || !clean.contains(data)) {
                        mi[i].dispose();
                    } else if (data instanceof IContributionItem
                            && ((IContributionItem) data).isDynamic()
                            && ((IContributionItem) data).isDirty()) {
                        mi[i].dispose();
                    }
                }
                
                mi = menu.getItems();
                int srcIx = 0;
                int destIx = 0;