Bug 62097 [Perspectives] Toolbar MenuDetect listeners leaking
When I reset perspective we are leaking ToolBarContributionItem MenuDetect Listeners. STEPS 1) Look at workbench with Optimize It 2) Reset perspective 3) 10 menu detect listeners on items will be left around. Toolbars are not being leaked and we create this listener in ToolBarContributionItem fill(Coolbar,int) using an inner class that we have no reference too. The reference graphs indicates that the Display still has the listener in the event table
bundles/org.eclipse.jface/src/org/eclipse/jface/action/ToolBarContributionItem.java
}
    /**
     * Returns the current width of the corresponding cool item.
     * 
     * @return the current size
     */
    public int getCurrentWidth() {
        if (checkDisposed()) {
            return -1;
        }
        return currentWidth;
    }
    /**
     * Returns the minimum number of tool items to show in the cool item.
     * 
     * @return the minimum number of tool items to show, or <code>SHOW_ALL_ITEMS</code>
     *         if a value was not set
     * @see #setMinimumItemsToShow(int)
     */
    public int getMinimumItemsToShow() {
        if (checkDisposed()) {
            return -1;
        }
        return minimumItemsToShow;
    }
    /**
     * Returns the internal tool bar manager of the contribution item.
     * 
     * @return the tool bar manager, or <code>null</code> if one is not
     *         defined.