Bug 11546 Progress bar gets cleared during project creation
IMPORTANT: Start a new empty workspace Start to create a Java project Enter "JUnit" as name Press "Finish" ==> Progress bar goes to right, then gets cleared and user has to wait without knowing what's going to happen.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewProjectCreationWizardPage.java
}
				}
				init(JavaCore.create(project), outputLocation, entries, false);
				monitor.worked(1);
			}
		} finally {
			monitor.done();
		}
		
	}
	
	private boolean doVisit(IResource resource, HashSet sourceFolders) throws JavaModelException {
		if (!sourceFolders.isEmpty()) {
			IResource curr= resource;
			while (curr.getType() != IResource.ROOT) {
				if (sourceFolders.contains(curr.getFullPath())) {
					return false;
				}
				curr= curr.getParent();
			}
		}
		if (resource.getType() == IResource.FILE) {
			if ("java".equals(resource.getFileExtension())) { 
				ICompilationUnit cu= JavaCore.createCompilationUnitFrom((IFile) resource);
				if (cu != null) {
					IPath packPath= resource.getParent().getFullPath();
					IPackageDeclaration[] decls= cu.getPackageDeclarations();
					if (decls.length == 0) {
						sourceFolders.add(packPath);
					} else {