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
/**
     * Returns the listener for SWT button widget events.
     * 
     * @return a listener for button events
     */
    private Listener getButtonListener() {
        if (buttonListener == null) {
            buttonListener = new Listener() {
                public void handleEvent(Event event) {
                    switch (event.type) {
                    case SWT.Dispose:
                        handleWidgetDispose(event);
                        break;
                    case SWT.Selection:
                        Widget ew = event.widget;
                        if (ew != null) {
                            handleWidgetSelection(event, ((Button) ew)
                                    .getSelection());
                        }
                        break;
                    }
                }
            };
        }
        return buttonListener;
    }
    /**
     * Returns the listener for SWT menu item widget events.
     * 
     * @return a listener for menu item events