Bug 125011 [Contributions] ActionContributionItem should use text for tooltip in toolitems
If an action is added to a toolbar, and it has a name, but no tooltip set, the name should be used as the tooltip (except when the text is actually displayed on the toolitem using setText()) Clients sometimes forget to set the tooltip text when no specific tooltip message exists.
bundles/org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.java
if (image == null) {
                    image = action.getImageDescriptor();
                }
                ImageDescriptor disabledImage = action
                        .getDisabledImageDescriptor();
                
                if (image == null && forceImage) {
                    image = ImageDescriptor.getMissingImageDescriptor();
                }
        
                LocalResourceManager localManager = new LocalResourceManager(parentResourceManager);
                
                
                ((ToolItem) widget).setDisabledImage(disabledImage == null ? null : localManager.createImageWithDefault(disabledImage));
                ((ToolItem) widget).setImage(image == null ? null : localManager.createImageWithDefault(image));
                disposeOldImages();
                imageManager = localManager;
                
                return image != null;
            }
            ImageDescriptor image = action.getImageDescriptor();
            ImageDescriptor hoverImage = action
                    .getHoverImageDescriptor();
            ImageDescriptor disabledImage = action
                    .getDisabledImageDescriptor();
            
            
            if (image == null && hoverImage != null) {
                image = ImageDescriptor.createWithFlags(action.getHoverImageDescriptor(), SWT.IMAGE_GRAY); 
            } else {