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/VariableBlock.java
entry.setPath(newEntry.getPath());
			fVariablesList.refresh();
		}
		fVariablesList.selectElements(new StructuredSelection(entry));
	}
	
	public void performDefaults() {
		fVariablesList.removeAllElements();
		String[] reservedName= getReservedVariableNames();
		for (int i= 0; i < reservedName.length; i++) {
			CPVariableElement elem= new CPVariableElement(reservedName[i], null, true);
			elem.setReserved(true);
			fVariablesList.addElement(elem);
		}
	}
	public boolean performOk() {
		List toRemove= new ArrayList();
		toRemove.addAll(Arrays.asList(JavaCore.getClasspathVariableNames()));
		
		List elements= fVariablesList.getElements();
		for (int i= elements.size()-1; i >= 0; i--) {
			CPVariableElement curr= (CPVariableElement) elements.get(i);
			if (curr.isReserved()) {
				elements.remove(curr);
			} else {
				IPath path= curr.getPath();
				IPath prevPath= JavaCore.getClasspathVariable(curr.getName());
				if (prevPath != null && prevPath.equals(path)) {
					elements.remove(curr);
				}