fHintTextGroup.setSelection(cpEntries);
fPackageExplorer.setSelection(cpEntries);
    public void setSelection(List selection) {        if (selection.size() == 0)            return;        IJavaProject project= ((CPListElement)selection.get(0)).getJavaProject();        List cpEntries= new ArrayList();        for(int i= 0; i < selection.size(); i++) {            CPListElement element= (CPListElement) selection.get(i);            IPackageFragmentRoot root= project.findPackageFragmentRoots(element.getClasspathEntry())[0];            if (root.getPath().equals(root.getJavaProject().getPath()))                cpEntries.add(project);            else                cpEntries.add(root);        }                // refresh classpath        List list= fClassPathList.getElements();        IClasspathEntry[] entries= new IClasspathEntry[list.size()];        for(int i= 0; i < list.size(); i++) {            CPListElement entry= (CPListElement)list.get(i);            entries[i]= entry.getClasspathEntry();         }        try {            project.setRawClasspath(entries, null);            fPackageExplorer.refresh();        } catch (JavaModelException e) {            JavaPlugin.log(e);        }                fHintTextGroup.setSelection(cpEntries);    }