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/SubContributionManager.java
IContributionItem item = (IContributionItem) enum.next();
                item.setVisible(visible);
            }
            parentMgr.markDirty();
        }
    }
    /**
     * Wraps a contribution item in a sub contribution item, and returns the new wrapper.
     */
    protected SubContributionItem wrap(IContributionItem item) {
        return new SubContributionItem(item);
    }
    /**
     * Unwraps a nested contribution item. If the contribution item is an
     * instance of <code>SubContributionItem</code>, then its inner item is
     * returned. Otherwise, the item itself is returned.
     * 
     * @param item
     *            The item to unwrap; may be <code>null</code>.
     * @return The inner item of <code>item</code>, if <code>item</code> is
     *         a <code>SubContributionItem</code>;<code>item</code>
     *         otherwise.
     */
    protected IContributionItem unwrap(IContributionItem item) {
        if (item instanceof SubContributionItem) {
            return ((SubContributionItem) item).getInnerItem();
        }
        return item;
    }
}