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
/**
     * Creates a new <code>GenerateActionGroup</code>. The group 
     * requires that the selection provided by the part's selection provider 
     * is of type <code>org.eclipse.jface.viewers.IStructuredSelection</code>.
     * 
     * @param part the view part that owns this action group
     */
    public GenerateBuildPathActionGroup(IViewPart part) {
        this(part.getSite(), part.getSite().getKeyBindingService());
    }
    
    private GenerateBuildPathActionGroup(IWorkbenchSite site, IKeyBindingService keyBindingService) {
        fSite= site;
    }
	private Action[] getActions() {
		if (fActions == null) {
			final BuildActionSelectionContext context= new BuildActionSelectionContext();
			final Action[] actions= new Action[] {
					createBuildPathAction(fSite, IClasspathInformationProvider.CREATE_LINK, context),
					createBuildPathAction(fSite, IClasspathInformationProvider.ADD_SEL_SF_TO_BP, context),
					createBuildPathAction(fSite, IClasspathInformationProvider.ADD_SEL_LIB_TO_BP, context),
					createBuildPathAction(fSite, IClasspathInformationProvider.REMOVE_FROM_BP, context),
					createBuildPathAction(fSite, IClasspathInformationProvider.ADD_JAR_TO_BP, context),
					createBuildPathAction(fSite, IClasspathInformationProvider.ADD_LIB_TO_BP, context),
					createBuildPathAction(fSite, IClasspathInformationProvider.EXCLUDE, context),
					createBuildPathAction(fSite, IClasspathInformationProvider.UNEXCLUDE, context),
					createBuildPathAction(fSite, IClasspathInformationProvider.EDIT_FILTERS, context),
					createBuildPathAction(fSite, IClasspathInformationProvider.EDIT_OUTPUT, context),
					createConfigureAction(fSite)
			};