Bug 10403 Project creation should confirm the bin directory can be scrubbed
When a user creates a new project for an existing directory structure, we should confirm that the output directory can be deleted then rebuilt. Some users are creating projects & pointing the output folder at a bin directory which contains more than just .class files which can be rebuilt from the available .java files.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
return;
		}
		IPath path= getOutputLocation();
		
		IResource res= fWorkspaceRoot.findMember(path);
		if (res != null) {
			
			if (res.getType() == IResource.FILE) {
				fBuildPathStatus.setError(NewWizardMessages.getString("BuildPathsBlock.error.InvalidBuildPath")); 
				return;
			}
		}
		fOutputLocationPath= path;
		
		List elements= fClassPathList.getElements();
		IClasspathEntry[] entries= new IClasspathEntry[elements.size()];
		
		for (int i= elements.size()-1 ; i >= 0 ; i--) {
			CPListElement currElement= (CPListElement)elements.get(i);
			entries[i]= currElement.getClasspathEntry();
		}
		
		IStatus status= JavaConventions.validateClasspath(fCurrJProject, entries, path);
		if (!status.isOK()) {
			fBuildPathStatus.setError(status.getMessage());
			return;
		}
				
		fBuildPathStatus.setOK();
	}