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
* to be disposed. Dynamic items are also removed.
             */
            CoolItem[] coolItems = coolBar.getItems();
            final ArrayList coolItemsToRemove = new ArrayList(coolItems.length);
            for (int i = 0; i < coolItems.length; i++) {
                final Object data = coolItems[i].getData();
                if ((data == null)
                        || (!visibleItems.contains(data))
                        || ((data instanceof IContributionItem) && ((IContributionItem) data)
                                .isDynamic())) {
                    coolItemsToRemove.add(coolItems[i]);
                }
            }
            /*
             * Redraw should always be turned off.  One cool item can represent
             * a new line in the cool bar or many individual tool items.
             */
            coolBar.setRedraw(false);
            
            for (int i = coolItemsToRemove.size() - 1; i >= 0; i--) {
                CoolItem coolItem = (CoolItem) coolItemsToRemove.get(i);
                if (!coolItem.isDisposed()) {
                    Control control = coolItem.getControl();
                    if (control != null) {
                        coolItem.setControl(null);
                        control.dispose();
                    }
                    coolItem.dispose();
                }
            }