View | Details | Raw Unified | Return to bug 203662 | Differences between
and this patch

Collapse All | Expand All

(-)model/org/eclipse/jdt/internal/core/builder/IncrementalImageBuilder.java (-4 / +8 lines)
Lines 501-510 Link Here
501
				    if (!isExcluded) {
501
				    if (!isExcluded) {
502
						IPath addedPackagePath = resource.getFullPath().removeFirstSegments(segmentCount);
502
						IPath addedPackagePath = resource.getFullPath().removeFirstSegments(segmentCount);
503
						createFolder(addedPackagePath, md.binaryFolder); // ensure package exists in the output folder
503
						createFolder(addedPackagePath, md.binaryFolder); // ensure package exists in the output folder
504
						// add dependents even when the package thinks it exists to be on the safe side
504
						
505
						if (JavaBuilder.DEBUG)
505
                        String packageName = addedPackagePath.toString();
506
							System.out.println("Found added package " + addedPackagePath); //$NON-NLS-1$
506
                        // see if any known source file is from the same package... classpath already includes new package
507
						addDependentsOf(addedPackagePath, true);
507
                        if (!newState.isKnownPackage(packageName)) {
508
    						if (JavaBuilder.DEBUG)
509
    							System.out.println("Found added package " + addedPackagePath); //$NON-NLS-1$
510
    						addDependentsOf(addedPackagePath, true);
511
                        }
508
				    }
512
				    }
509
					// fall thru & collect all the source files
513
					// fall thru & collect all the source files
510
				case IResourceDelta.CHANGED :
514
				case IResourceDelta.CHANGED :

Return to bug 203662