Bug 51608 project creation wizard: add folder button lets one add existing folder the first time
M7 test pass, I200402102000 1. Create a new java project 2. configure using src and bin folders 3. on the second page, press "add folder" 4. enter "src" as the folder name into the mask -> there is no complaint about the added folder, although it already existed -> when pressing "add folder" a second time, a different dialog comes up, allowing to specify where to add a new folder. Entering an existing folder name here gets flagged as an error. -> it seems that although there is an entry for the preconfigured "src" folder, it does not yet exist really.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardSecondPage.java
IClasspathEntry[] entries= null;
				IPath outputLocation= null;
		
				if (fFirstPage.getDetect()) {
					if (!fCurrProject.getFile(".classpath").exists()) { 
						final ClassPathDetector detector= new ClassPathDetector(fCurrProject);
						entries= detector.getClasspath();
						outputLocation= detector.getOutputLocation();
					}
				} else if (fFirstPage.isSrcBin()) {
					String srcName= PreferenceConstants.getPreferenceStore().getString(PreferenceConstants.SRCBIN_SRCNAME);
					String binName= PreferenceConstants.getPreferenceStore().getString(PreferenceConstants.SRCBIN_BINNAME);
					
					final IPath projectPath= fCurrProject.getFullPath();
					
					final List cpEntries= new ArrayList();
					cpEntries.add(JavaCore.newSourceEntry(projectPath.append(srcName)));
					cpEntries.addAll(Arrays.asList(PreferenceConstants.getDefaultJRELibrary()));
					entries= new IClasspathEntry[cpEntries.size()];
					cpEntries.toArray(entries);
					
					
					outputLocation= projectPath.append(binName);
				}
				init(JavaCore.create(fCurrProject), outputLocation, entries, false);
			}
			monitor.worked(1);
		} finally {
			monitor.done();
		}