Lines 1263-1269
Link Here
|
1263 |
return IJavaElement.COMPILATION_UNIT; |
1263 |
return IJavaElement.COMPILATION_UNIT; |
1264 |
} else if (Util.isValidClassFileName(fileName, sourceLevel, complianceLevel)) { |
1264 |
} else if (Util.isValidClassFileName(fileName, sourceLevel, complianceLevel)) { |
1265 |
return IJavaElement.CLASS_FILE; |
1265 |
return IJavaElement.CLASS_FILE; |
1266 |
} else if (this.rootInfo(res.getFullPath(), kind) != null) { |
1266 |
} else if ((rootInfo = this.rootInfo(res.getFullPath(), kind)) != null |
|
|
1267 |
&& rootInfo.project.getProject().getFullPath().isPrefixOf(res.getFullPath()) /*ensure root is a root of its project (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=185310) */) { |
1267 |
// case of proj=src=bin and resource is a jar file on the classpath |
1268 |
// case of proj=src=bin and resource is a jar file on the classpath |
1268 |
return IJavaElement.PACKAGE_FRAGMENT_ROOT; |
1269 |
return IJavaElement.PACKAGE_FRAGMENT_ROOT; |
1269 |
} else { |
1270 |
} else { |