Bug 153280 [ActivityMgmt] Examples are shown even when capability disabled
there are two ways to open examples: - file->new->project - examples for this way any example which is disabled through a capability isn't shown - file->example when an example is placed directly as "root" node in the list, it is always shown. when the same example is put in a subcategory, it disappears when the capability is disabled
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/NewWizardMenu.java
for (int i = 0; i < items.length; i++) {
            innerMgr.add(items[i]);
        }
    }
    /**
     * Removes all listeners from the containing workbench window.
     * <p>
     * This method should only be called if the shortcut menu is created with
     * <code>register = true</code>.
     * </p>
     * 
     * @deprecated has no effect
     */
    public void deregisterListeners() {
        
    }
    /**
     * Return whether or not any examples are in the current install.
     * 
     * @return boolean
     */
    private boolean hasExamples() {
        return registryHasCategory(WizardsRegistryReader.FULL_EXAMPLES_WIZARD_CATEGORY);
    }
    /* (non-Javadoc)
     * @see org.eclipse.ui.actions.BaseNewWizardMenu#addItems(org.eclipse.jface.action.IContributionManager)
     */
    protected void addItems(List list) {
    	ArrayList shortCuts= new ArrayList();
    	addShortcuts(shortCuts);