Bug 13034 Cannot create a Source Folder in a new Java Project
build 20020404 If you try and create a Source Folder in a Java Project you have just created you get an error preventing you from hitting finish. STEPS 1) Create Java Project Foo 2) Open New->Source Folder 3) Enter Bar as the name - you will get "Cannot nest entry Bar inside entry Foo/Bar" 4) Create a folder Bar. 5) Add it as a source folder in the Properties Dialog for Foo. No problem.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
res[0]= IRemoveOldBinariesQuery.YES;
						} else if (returnVal == 1) {
							res[0]= IRemoveOldBinariesQuery.NO;
						} else {
							res[0]= IRemoveOldBinariesQuery.CANCEL;
						}
					}
				});
				return res[0];
			}
		};
	}
	
	/**
	 * Creates the Java project and sets the configured build path and output location.
	 * If the project already exists only build paths are updated.
	 */
	private void createJavaProject(List classPathEntries, IPath outputLocation, IRemoveOldBinariesQuery reorgQuery, IProgressMonitor monitor) throws CoreException, InterruptedException {
		
		
		if (reorgQuery != null) {
			IPath oldOutputLocation= fCurrJProject.getOutputLocation();
			if (!outputLocation.equals(oldOutputLocation)) {
				IResource res= fWorkspaceRoot.findMember(oldOutputLocation);
				if (res instanceof IContainer && hasClassfiles(res)) {
					int result= reorgQuery.doQuery(oldOutputLocation);
					if (result == reorgQuery.CANCEL) {
						throw new InterruptedException();
					} else if (result == reorgQuery.YES) {
						removeOldClassfiles(res);