Bug 127746 [build path] Build Path action "no actions available" should be disabled
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/GenerateBuildPathActionGroup.java
if (actions[i] instanceof IUpdate)
				((IUpdate) actions[i]).update();
        }
        
        for (int i= 0; i < actions.length; i++) {
            if (i == 2)
                source.add(new Separator(GROUP_BUILDPATH));
            else if (i == 8)
                source.add(new Separator(GROUP_FILTER));
            else if (i == 10)
                source.add(new Separator(GROUP_CUSTOMIZE));
            added+= addAction(source, actions[i]);
        }
        if (added == 0) {
        	source.add(fNoActionAvailable);
        }
        
    }
        
    private void setGlobalActionHandlers(IActionBars actionBar) {
        
    }
    
    private int addAction(IMenuManager menu, IAction action) {
        if (action != null && action.isEnabled()) {
            menu.add(action);
            return 1;
        }
        return 0;
    }