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
* @see IRunnableWithProgress#run(IProgressMonitor)
		 */
		public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
			int steps= fToChange.size() + fToRemove.size();
			monitor.beginTask(NewWizardMessages.getString("VariableBlock.operation_desc"), steps); 
			try {
				for (int i= 0; i < fToChange.size(); i++) {
					CPVariableElement curr= (CPVariableElement) fToChange.get(i);
					SubProgressMonitor subMonitor= new SubProgressMonitor(monitor, 1);
					JavaCore.setClasspathVariable(curr.getName(), curr.getPath(), subMonitor);
					if (monitor.isCanceled()) {
						return;
					}
				}
				for (int i= 0; i < fToRemove.size(); i++) {
					SubProgressMonitor subMonitor= new SubProgressMonitor(monitor, 1);
					JavaCore.removeClasspathVariable((String) fToRemove.get(i), subMonitor);
					if (monitor.isCanceled()) {
						return;
					}					
				}
			} catch (JavaModelException e) {
				throw new InvocationTargetException(e);
			} finally {
				monitor.done();
			}
		}
	}
}