Bug 10654 Allow all jars in a folder to be added to build path
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java
elementsToAdd.add(curr);
					addAttachmentsFromExistingLibs(curr);
				}
			}
			fLibrariesList.addElements(elementsToAdd);
			fLibrariesList.postSetSelection(new StructuredSelection(libentries));
		}
	}
	
	private void libaryPageSelectionChanged(DialogField field) {
		List selElements= fLibrariesList.getSelectedElements();
		fLibrariesList.enableButton(6, canDoSourceAttachment(selElements));
	}
	
	private void libaryPageDialogFieldChanged(DialogField field) {
		if (fCurrJProject != null) {
			
			updateClasspathList();
		}
	}	
	
	private boolean canDoSourceAttachment(List selElements) {
		if (selElements != null && selElements.size() == 1) {
			CPListElement elem= (CPListElement) selElements.get(0);
			return (!(elem.getResource() instanceof IFolder));
		}
		return false;
	}		
	
	private void updateClasspathList() {