Bug 30630 nested source folders: unclear error message
20030129 create a jproject, a source folder s1 and a nested in it source folder s2 delete s1 open the 'new' wizard and try creating a source folder s1 the error message is very long and compilicated while it should be a simple warning saying 'You have a folder s1 - I will turn it into a source folder fo you' (and then it could automagically add excelusion filter so that s2 is still a source folder)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java
dialog.addFilter(filter);
		dialog.setInput(fCurrJProject.getProject().getParent());
		dialog.setSorter(new ResourceSorter(ResourceSorter.NAME));
		if (existing == null) {
			dialog.setInitialSelection(fCurrJProject.getProject());
		} else {
			dialog.setInitialSelection(existing.getResource());
		}		
		if (dialog.open() == FolderSelectionDialog.OK) {
			Object[] elements= dialog.getResult();	
			CPListElement[] res= new CPListElement[elements.length];
			for (int i= 0; i < res.length; i++) {
				IResource elem= (IResource)elements[i];
				res[i]= newCPSourceElement(elem);
			}
			return res;
		}
		return null;
	}
	
	private List getExistingContainers(CPListElement existing) {
		List res= new ArrayList();
		List cplist= fFoldersList.getElements();
		for (int i= 0; i < cplist.size(); i++) {
			CPListElement elem= (CPListElement)cplist.get(i);
			if (elem != existing) {
				IResource resource= elem.getResource();
				if (resource instanceof IContainer) { 
					res.add(resource);	
				}