Bug 182714 [Contributions] Improve toolbar configurability
bundles/org.eclipse.jface/src/org/eclipse/jface/action/MenuManager.java
return menu.getItemCount();
    	}
    	return 0;
    }
    /**
	 * Call an <code>IContributionItem</code>'s fill method with the
	 * implementation's widget. The default is to use the <code>Menu</code>
	 * widget.<br>
	 * <code>fill(Menu menu, int index)</code>
	 * 
	 * @param ci
	 *            An <code>IContributionItem</code> whose <code>fill()</code>
	 *            method should be called.
	 * @param index
	 *            The position the <code>fill()</code> method should start
	 *            inserting at.
	 * @since 3.4
	 */
    protected void doItemFill(IContributionItem ci, int index) {
        ci.fill(menu, index);
    }
    /**
     * Incrementally builds the menu from the contribution items.
     * This method leaves out double separators and separators in the first 
     * or last position.
     *
     * @param force <code>true</code> means update even if not dirty,
     *   and <code>false</code> for normal incremental updating
     * @param recursive <code>true</code> means recursively update 
     *   all submenus, and <code>false</code> means just this menu