Lines 206-218
Link Here
|
206 |
roots = new IPackageFragmentRoot[0]; |
206 |
roots = new IPackageFragmentRoot[0]; |
207 |
reverseMap.clear(); |
207 |
reverseMap.clear(); |
208 |
} |
208 |
} |
|
|
209 |
|
210 |
DeltaProcessingState deltaState = JavaModelManager.getJavaModelManager().deltaState; |
211 |
HashMap otherRoots = deltaState.oldOtherRoots; |
212 |
if (otherRoots == null) { |
213 |
deltaState.initializeRoots(); |
214 |
otherRoots = deltaState.otherRoots; |
215 |
} |
216 |
|
209 |
HashtableOfArrayToObject fragmentsCache = new HashtableOfArrayToObject(); |
217 |
HashtableOfArrayToObject fragmentsCache = new HashtableOfArrayToObject(); |
210 |
HashtableOfArrayToObject isPackageCache = new HashtableOfArrayToObject(); |
218 |
HashtableOfArrayToObject isPackageCache = new HashtableOfArrayToObject(); |
211 |
for (int i = 0, length = roots.length; i < length; i++) { |
219 |
for (int i = 0, length = roots.length; i < length; i++) { |
212 |
IPackageFragmentRoot root = roots[i]; |
220 |
IPackageFragmentRoot root = roots[i]; |
213 |
IJavaElement[] frags = null; |
221 |
IJavaElement[] frags = null; |
214 |
try { |
222 |
try { |
215 |
if (root.isArchive() && !root.isOpen()) { |
223 |
if (root.isArchive() |
|
|
224 |
&& !root.isOpen() |
225 |
&& otherRoots.get(((JarPackageFragmentRoot) root).jarPath) == null/*only if jar belongs to 1 project (https://bugs.eclipse.org/bugs/show_bug.cgi?id=161175)*/) { |
216 |
JarPackageFragmentRootInfo info = new JarPackageFragmentRootInfo(); |
226 |
JarPackageFragmentRootInfo info = new JarPackageFragmentRootInfo(); |
217 |
((JarPackageFragmentRoot) root).computeChildren(info, new HashMap()); |
227 |
((JarPackageFragmentRoot) root).computeChildren(info, new HashMap()); |
218 |
frags = info.children; |
228 |
frags = info.children; |