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
private final IAction newExampleAction;
    private final IAction newProjectAction;
    private boolean enabled = true;
    /**
     * Creates a new wizard shortcut menu for the IDE.
     * 
     * @param window
     *            the window containing the menu
     */
    public NewWizardMenu(IWorkbenchWindow window) {
        this(window, null);
        
    }
    
    /**
     * Creates a new wizard shortcut menu for the IDE.
     * 
     * @param window
     *            the window containing the menu
     * @param id
     *            the identifier for this contribution item 
     */
    public NewWizardMenu(IWorkbenchWindow window, String id) {
        super(window, id);
        newExampleAction = new NewExampleAction(window);
        newProjectAction = new NewProjectAction(window);
    }
    /**