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
* @param newLayout
     *            a list of new order of contribution items.
     */
    public void setLayout(ArrayList newLayout) {
        IContributionItem[] newItems = new IContributionItem[0];
        newItems = (IContributionItem[]) newLayout.toArray(newItems);
        
        if (coolBar != null) {
            CoolItem[] coolItems = coolBar.getItems();
            for (int i = 0; i < coolItems.length; i++) {
                dispose(coolItems[i]);
            }
        }
        
        internalSetItems(newItems);
        
        update(true);
    }
    /*
     * (non-Javadoc)
     * 
     * @see org.eclipse.jface.action.ICoolBarManager#lockLayout(boolean)
     */
    public void setLockLayout(boolean value) {
        if (!coolBarExist()) { return; }
        coolBar.setLocked(value);
    }
    /**
     * Subclasses may extend this <code>IContributionManager</code> method,
     * but must call <code>super.update</code>.