Bug 64011 JavaProjectSourceContainer does not search for non-Java files
Java project source containers can only find Java Source and nothing else. It will only look java files from <JavaProject>/<JavaSource> directory. The Java Project may contain more than just Java files. For example, a web project which is also a Java Project contains JSP and HTML files. In this case, these other sources cannot be located by JavaProjectSourceContainer even though the project is part of the source lookup path. Adding a raw project source container to look for non-Java files may interfere with the source location function of the Java Project Source Container (depending on the order of which the projects are specified). If a Raw Project Source Container is placed in front of the Java Project Container, the Raw Project Source Container may not compute source for a Java file correctly due to its lack of knowledge about classpaths, source inclusion/exclusion filters, etc. JavaProjectSourceContainer should find source for non-Java files and it should look in directories other than the Java-Source directory.
org.eclipse.jdt.ui.examples.javafamily/src/org/eclipse/jsp/launching/TomcatSourcePathComputer.java
/*******************************************************************************
 * Copyright (c) 2000, 2004 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.jsp.launching;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.sourcelookup.ISourceContainer;
import org.eclipse.debug.core.sourcelookup.containers.FolderSourceContainer;
import org.eclipse.jdt.launching.sourcelookup.containers.JavaSourcePathComputer;
/**
 * Computes the default source lookup path for a Tomcat launch config.
 * The source path is the same as for a Java project with the addition
 * of the folder containing the JSPs. 
 */
public class TomcatSourcePathComputer extends JavaSourcePathComputer {