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
}
			toRemove.remove(curr.getName());
		}
		int steps= elements.size() + toRemove.size();
		if (steps > 0) {
			IRunnableWithProgress runnable= new VariableBlockRunnable(toRemove, elements);
			
			ProgressMonitorDialog dialog= new ProgressMonitorDialog(getShell());
			try {
				dialog.run(true, true, runnable);
			} catch (InvocationTargetException e) {
				ExceptionHandler.handle(e, getShell(), NewWizardMessages.getString("VariableBlock.operation_errror.title"), NewWizardMessages.getString("VariableBlock.operation_errror.message")); 
				return false;
			} catch (InterruptedException e) {
				return true;
			}
		}
		return true;
	}
	
	private class VariableBlockRunnable implements IRunnableWithProgress {
		private List fToRemove;
		private List fToChange;
		
		public VariableBlockRunnable(List toRemove, List toChange) {
			fToRemove= toRemove;
			fToChange= toChange;
		}
		
		/*