Bug 182714 [Contributions] Improve toolbar configurability
bundles/org.eclipse.jface/src/org/eclipse/jface/action/CoolBarManager.java
&& (!items[i].getControl().isDisposed())) {
                        children.add(items[i].getControl());
                    }
                }
                
                Control[] childrenArray = new Control[0];
                childrenArray = (Control[]) children.toArray(childrenArray);
                if (childrenArray != null) {
                    coolBar.setTabList(childrenArray);
                }
            }
        }
    }
    /**
     * Updates the indices at which the cool bar should wrap.
     */
    private void updateWrapIndices() {
        final IContributionItem[] items = getItems();
        final int numRows = getNumRows(items) - 1;
        
        final int[] wrapIndices = new int[numRows];
        boolean foundSeparator = false;
        int j = 0;
        CoolItem[] coolItems = (coolBar == null) ? null : coolBar.getItems();
        for (int i = 0; i < items.length; i++) {
            IContributionItem item = items[i];
            CoolItem coolItem = findCoolItem(coolItems, item);
            if (item.isSeparator()) {
                foundSeparator = true;
            }