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
*/
		protected INewWizard createWizard() throws CoreException {
			CPListElement[] existingEntries= CPListElement.createFromExisting(fSelectedProject);
			CPListElement elementToEdit= findElement(fSelectedElement, existingEntries);
			fEditFilterWizard= new EditFilterWizard(existingEntries, elementToEdit, getOutputLocation(fSelectedProject));
			return fEditFilterWizard;
		}
		/**
		 * {@inheritDoc}
		 */
		public boolean selectionChanged(IStructuredSelection selection) {
			if (selection.size() != 1)
				return false;
			
			try {
				Object element= selection.getFirstElement();
				if (element instanceof IJavaProject) {
					IJavaProject project= (IJavaProject)element;	
					if (ClasspathModifier.isSourceFolder(project)) {
						fSelectedProject= project;
						fSelectedElement= (IJavaElement)element;
						return true;
					}
				} else if (element instanceof IPackageFragmentRoot) {
					IPackageFragmentRoot packageFragmentRoot= ((IPackageFragmentRoot) element);
					IJavaProject project= packageFragmentRoot.getJavaProject();
					if (packageFragmentRoot.getKind() == IPackageFragmentRoot.K_SOURCE && project != null) {
						fSelectedProject= project;
						fSelectedElement= (IJavaElement)element;
						return true;