Bug 55487 List from "Edit Working Set" doesn't show all projects [working sets]
I've noticed this on the I20040318 build, but might have been partially true before. If I try to create a new working set (or edit an existing one) not all projects show up to add to the working set. The one's I've noticed (tested) missing are 'simple' projects and 'feature' projects (as created with PDE). Is the "working set type" supposed to be that restrictive? If I select all the types, then they still don't show up, so no way I can add these 'simple' projects to any type of working set. This ie pretty important for the way we us projects and working sets. The work around for the above is to define/pretend the projects are java projects, even though they have no code in them. (Plus, I noticed while researching this, it seems once a working set is defined, there's no way to change it's type ... can't say there's a great need for it, but seem kind of inconsistent). BTW, I noticed this while using the filter in the package navigator while in Java perspective, which is why I picked JDT/UI .. not sure of source of problem.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/JavaWorkingSetPageContentProvider.java
/*******************************************************************************
 * Copyright (c) 2000, 2003 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.ui.workingsets;
import java.util.ArrayList;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.IJavaModel;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.ui.StandardJavaElementContentProvider;
class JavaWorkingSetPageContentProvider extends StandardJavaElementContentProvider {
	
	public boolean hasChildren(Object element) {
		if (element instanceof IProject && !((IProject)element).isAccessible())
			return false;
		if (element instanceof IPackageFragment) {
			IPackageFragment pkg= (IPackageFragment)element;
			try {
				if (pkg.getKind() == IPackageFragmentRoot.K_BINARY)
					return pkg.getChildren().length > 0;
			} catch (JavaModelException ex) {