public void setSelection(List selection) {
public void setSelection(List selection, boolean expand) {
    public void setSelection(List selection) {		// page switch		        if (selection.size() == 0)            return;	    		List cpEntries= new ArrayList();				for (int i= 0; i < selection.size(); i++) {			CPListElement element= (CPListElement) selection.get(i);			if (element.getEntryKind() == IClasspathEntry.CPE_SOURCE) {				cpEntries.add(element);			}		}		        // 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 {			fJavaProject.setRawClasspath(entries, null);            fPackageExplorer.refresh();        } catch (JavaModelException e) {            JavaPlugin.log(e);        }                fPackageExplorer.setSelection(cpEntries);    }