Merge pull request #224 from eclipse/se/bug466667

[xtend] don’t index xtend sources from jars (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=466667)
This commit is contained in:
Sven Efftinge 2015-05-21 14:28:02 +02:00
commit 9bea9f7542
2 changed files with 11 additions and 0 deletions

View file

@ -374,6 +374,13 @@ public class JavaProjectSetupUtil {
addToClasspath(javaProject, newLibraryEntry);
return newLibraryEntry;
}
public static IClasspathEntry addExternalJarToClasspath(IJavaProject javaProject, File file) throws JavaModelException {
IClasspathEntry newLibraryEntry = JavaCore.newLibraryEntry(new Path(file.getAbsolutePath()), null, null);
addToClasspath(javaProject, newLibraryEntry);
return newLibraryEntry;
}
public static File createExternalJar(InputStream data, String nameWithoutJarSuffix) throws IOException,
FileNotFoundException {

View file

@ -94,6 +94,10 @@ class ResourceStorageFacade implements IResourceStorageFacade {
if (resource.resourceSet.URIConverter.exists(resource.URI.getBinaryStorageURI, emptyMap)) {
return true
}
// if it's an archive URI, we don't need to look up the source folder-output folder scheme
if (resource.URI.isArchive) {
return false
}
// check for source project locations, i.e. use generator config
val fsa = getFileSystemAccess(resource);