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
IResourceVisitor visitor= new IResourceVisitor() {
					public boolean visit(IResource resource) throws CoreException {
						return doVisit(resource, sourceFolders);
					}
				};
				project.accept(visitor);
				monitor.worked(1);
								
				IClasspathEntry[] entries= null;
				IPath outputLocation= null;
				
				if (!sourceFolders.isEmpty()) {
					int nSourceFolders= sourceFolders.size();
					IClasspathEntry[] jreEntries= NewJavaProjectPreferencePage.getDefaultJRELibrary();
					entries= new IClasspathEntry[nSourceFolders + jreEntries.length];
					Iterator iter = sourceFolders.iterator();
					for (int i = 0; i < nSourceFolders; i++) {
						entries[i]= JavaCore.newSourceEntry((IPath) iter.next());
					}
					System.arraycopy(jreEntries, 0, entries, nSourceFolders, jreEntries.length);
					
					IPath projPath= project.getFullPath();
					if (nSourceFolders == 1 && entries[0].getPath().equals(projPath)) {
						outputLocation= projPath;
					} else {
						outputLocation= projPath.append(NewJavaProjectPreferencePage.getOutputLocationName());
					} 				
					if (!JavaConventions.validateClasspath(JavaCore.create(project), entries, outputLocation).isOK()) {
						outputLocation= null;
						entries= null;