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
* method returns <code>true</code> for menu items and <code>false</code>
     * for everything else.
     */
    public boolean isDynamic() {
        if (widget instanceof MenuItem) {
             
            boolean itemIsCheck = (widget.getStyle() & SWT.CHECK) != 0;
            boolean actionIsCheck = getAction() != null
                    && getAction().getStyle() == IAction.AS_CHECK_BOX;
            boolean itemIsRadio = (widget.getStyle() & SWT.RADIO) != 0;
            boolean actionIsRadio = getAction() != null
                    && getAction().getStyle() == IAction.AS_RADIO_BUTTON;
            return (itemIsCheck != actionIsCheck)
                    || (itemIsRadio != actionIsRadio);
        }
        return false;
    }
    /* (non-Javadoc)
     * Method declared on IContributionItem.
     */
    public boolean isEnabled() {
        return action != null && action.isEnabled();
    }
    /**
     * Returns <code>true</code> if this item is allowed to enable,
     * <code>false</code> otherwise.
     * 
     * @return if this item is allowed to be enabled
     * @since 2.0
     */