Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 219335 | Differences between
and this patch

Collapse All | Expand All

(-)ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java (-4 / +2 lines)
Lines 310-317 Link Here
310
			return NO_CHILDREN;
310
			return NO_CHILDREN;
311
			
311
			
312
		List result= new ArrayList();
312
		List result= new ArrayList();
313
314
		boolean addJARContainer= false;
315
		
313
		
316
		IPackageFragmentRoot[] roots= project.getPackageFragmentRoots();
314
		IPackageFragmentRoot[] roots= project.getPackageFragmentRoots();
317
		for (int i= 0; i < roots.length; i++) {
315
		for (int i= 0; i < roots.length; i++) {
Lines 321-327 Link Here
321
			if (entryKind == IClasspathEntry.CPE_CONTAINER) {
319
			if (entryKind == IClasspathEntry.CPE_CONTAINER) {
322
				// all ClassPathContainers are added later 
320
				// all ClassPathContainers are added later 
323
			} else if (fShowLibrariesNode && (entryKind == IClasspathEntry.CPE_LIBRARY || entryKind == IClasspathEntry.CPE_VARIABLE)) {
321
			} else if (fShowLibrariesNode && (entryKind == IClasspathEntry.CPE_LIBRARY || entryKind == IClasspathEntry.CPE_VARIABLE)) {
324
				addJARContainer= true;
322
				// skip: will add the referenced library node later
325
			} else {
323
			} else {
326
				if (isProjectPackageFragmentRoot(root)) {
324
				if (isProjectPackageFragmentRoot(root)) {
327
					// filter out package fragments that correspond to projects and
325
					// filter out package fragments that correspond to projects and
Lines 336-342 Link Here
336
			}
334
			}
337
		}
335
		}
338
		
336
		
339
		if (addJARContainer) {
337
		if (fShowLibrariesNode) {
340
			result.add(new LibraryContainer(project));
338
			result.add(new LibraryContainer(project));
341
		}
339
		}
342
		
340
		

Return to bug 219335