private void detectClasspath() { ArrayList cpEntries= new ArrayList();  detectSourceFolders(cpEntries); IPath outputLocation= detectOutputFolder(cpEntries);  detectLibraries(cpEntries, outputLocation);
private void detectClasspath(IProgressMonitor monitor) throws CoreException { try { monitor.beginTask(NewWizardMessages.getString("ClassPathDetector.operation.description"), 4);
	private void detectClasspath() {		ArrayList cpEntries= new ArrayList();				detectSourceFolders(cpEntries);		IPath outputLocation= detectOutputFolder(cpEntries);				detectLibraries(cpEntries, outputLocation);					if (cpEntries.isEmpty() && fClassFiles.isEmpty()) {			return;		}		IClasspathEntry[] jreEntries= PreferenceConstants.getDefaultJRELibrary();		for (int i= 0; i < jreEntries.length; i++) {			cpEntries.add(jreEntries[i]);		}				IClasspathEntry[] entries= (IClasspathEntry[]) cpEntries.toArray(new IClasspathEntry[cpEntries.size()]);		if (!JavaConventions.validateClasspath(JavaCore.create(fProject), entries, outputLocation).isOK()) {			return;		}					fResultClasspath= entries;		fResultOutputFolder= outputLocation;	}