IClasspathEntry entry= JavaCore.newVariableEntry(res.segment(0));
IClasspathEntry entry= JavaCore.newVariableEntry(res);
	private CPListElement[] chooseVariableEntries() {		List existing= fLibrariesList.getElements();				VariableSelectionDialog dialog= new VariableSelectionDialog(getShell(), existing);		if (dialog.open() == dialog.OK) {			IPath res= dialog.getVariable();			IClasspathEntry entry= JavaCore.newVariableEntry(res.segment(0));			return new CPListElement[] { new CPListElement(entry, null) };		}		return null;	}