Bug 110998 [Problems] Remove the working set selection and switch to using global working sets
M2 We need to remove the working sets option in the filter and switch to using the current list of working sets. We should move this to a preference that says only "Use Working Sets"
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
/***************************************************************************
	 * Adds the paths of all resources in the given array to the given set.
	 */
	private void addResourcesAndChildren(HashSet result, IResource[] resources) {
		for (int idx = 0; idx < resources.length; idx++) {
			IResource currentResource = resources[idx];
			result.add(currentResource.getFullPath().toString());
			if (currentResource instanceof IContainer) {
				IContainer cont = (IContainer) currentResource;
				try {
					addResourcesAndChildren(result, cont.members());
				} catch (CoreException e) {
					
				}
			}
		}
	}
	/**
	 * Returns the set of projects that contain the given set of resources.
	 * 
	 * @param resources
	 * @return
	 */
	static IProject[] getProjects(IResource[] resources) {
		if (resources == null) {
			return new IProject[0];
		}
		Collection projects = getProjectsAsCollection(resources);
		return (IProject[]) projects.toArray(new IProject[projects.size()]);
	}