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
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.ui.PreferenceConstants;
import org.eclipse.jdt.ui.wizards.JavaCapabilityConfigurationPage;
import org.eclipse.jdt.internal.ui.util.ExceptionHandler;
/**
 * As addition to the JavaCapabilityConfigurationPage, the wizard does an
 * early project creation (so that linked folders can be defined) and, if an
 * existing external location was specified, offers to do a classpath detection
 */
public class JavaProjectWizardSecondPage extends JavaCapabilityConfigurationPage {
	private final JavaProjectWizardFirstPage fFirstPage;
	protected IPath fCurrProjectLocation;
	protected IProject fCurrProject;
	
	protected boolean fCanRemoveContent;
	/**
	 * Constructor for NewProjectCreationWizardPage.
	 */
	public JavaProjectWizardSecondPage(JavaProjectWizardFirstPage mainPage) {
		super();
		fFirstPage= mainPage;
		fCurrProjectLocation= null;
		fCurrProject= null;