IClasspathEntry libEntry= JavaCore.newLibraryEntry(curr.getPath()); JavaCore.setClasspathVariable(curr.getName(), libEntry);
JavaCore.setClasspathVariable(curr.getName(), curr.getPath());
	public boolean performOk() {		try {			List existing= new ArrayList();			existing.addAll(Arrays.asList(JavaCore.getClasspathVariableNames()));						List elements= fVariablesList.getElements();			for (int i= 0; i < elements.size(); i++) {				CPVariableElement curr= (CPVariableElement) elements.get(i);				IClasspathEntry libEntry= JavaCore.newLibraryEntry(curr.getPath());				JavaCore.setClasspathVariable(curr.getName(), libEntry);				existing.remove(curr.getName());			}						for (int i= 0; i < existing.size(); i++) {				JavaCore.removeClasspathVariable((String) existing.get(i));			}		} catch (JavaModelException e) {			JavaPlugin.log(e.getStatus());			ErrorDialog.openError(getShell(), "Error", "", e.getStatus());			return true;		}				return true;	}	