Bug 73715 [Workbench] (regression) Workbench menus disappeared after closing the perspective
We have several menu items on the RCP workbench, when we close the perspective from the perspective bar,(right mouse click on the perspective tab and select close) the menu items on the workbench all disappeared. This leaves the workbench in a state that is not useable. I am attaching the RCP tutorial part3, the only change I made to the tutorial code was to add configurer.setShowPerspectiveBar(true); We are running Eclipse 3.0.1 M2, this used to work in Eclipse 3.0
bundles/org.eclipse.jface/src/org/eclipse/jface/action/SubMenuManager.java
*/
    public boolean getRemoveAllWhenShown() {
        return false;
    }
    /**
     * Returns the menu wrapper for a menu manager.
     * <p>
     * The sub menus within this menu are wrapped within a <code>SubMenuManager</code> to
     * monitor additions and removals.  If the visibility of this menu is modified
     * the visibility of the sub menus is also modified.
     * <p>
     *
     * @return the menu wrapper
     */
    protected IMenuManager getWrapper(IMenuManager mgr) {
        if (mapMenuToWrapper == null) {
            mapMenuToWrapper = new HashMap(4);
        }
        SubMenuManager wrapper = (SubMenuManager) mapMenuToWrapper.get(mgr);
        if (wrapper == null) {
            wrapper = wrapMenu(mgr);
            mapMenuToWrapper.put(mgr, wrapper);
        }
        return wrapper;
    }
    /* (non-Javadoc)
     * @see org.eclipse.jface.action.IContributionItem#isDynamic()
     */
    public boolean isDynamic() {
        return getParentMenuManager().isDynamic();