Bug 51665 [CoolBar] Extra flashiness when switching between perspectives
build I20040210-0800 In same window, - open a java perspective - open several java editors - open debug perspective - switch back and forth between java and debug perspectives The coolbar is noticeably flashier than it was in M6.
bundles/org.eclipse.jface/src/org/eclipse/jface/action/CoolBarManager.java
if ((control != null) && !control.isDisposed()) {
                item.setControl(null);
            }
            item.dispose();
        }
    }
    /**
     * Finds the cool item associated with the given contribution item.
     * 
     * @param item
     *            the contribution item
     * @return the associated cool item, or <code>null</code> if not found
     */
    private CoolItem findCoolItem(IContributionItem item) {
        if (coolBar == null) return null;
        CoolItem[] items = coolBar.getItems();
        for (int i = 0; i < items.length; i++) {
            CoolItem coolItem = items[i];
            IContributionItem data = (IContributionItem) coolItem.getData();
            if (data != null && data.equals(item)) return coolItem;
        }
        return null;
    }
    /**
     * Return a consistent set of wrap indices. The return value will always
     * include at least one entry and the first entry will always be zero.
     * CoolBar.getWrapIndices() is inconsistent in whether or not it returns an
     * index for the first row.
     * 
     * @param wraps