Bug 94632 [Build path] Build path submenu shown on working sets
I20050509-2010 The build path submenu is shown in the context menu of working sets in the package explorer.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/GenerateBuildPathActionGroup.java
Action[] actions= getActions();
        for (int i= 0; i < actions.length; i++) {
            if (i == 1)
                source.add(new Separator(GROUP_BUILDPATH));
            else if (i == 6)
                source.add(new Separator(GROUP_FILTER));
            else if (i == 8)
                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;
    }
    
}