System.err.println("dataset browser ..set selected project to ..."+proj);
	public void setSelectedProject(BrowserProjectSummary proj) {		System.err.println("dataset browser ..set selected project to ..."+proj);		if (proj == selectedProject) // no change			return;		selectedProject = proj;		Collection datasetsToDisplay;		// ok. what to do now?				// cases:			if (proj == null) {			if (selectedDataset == null)				//1) project is null and selected dataset is null we display all				datasetsToDisplay = allDatasets;			else {				//2) project is null, selected dataset isn't. display it. 				datasetsToDisplay = new Vector();				datasetsToDisplay.add(selectedDataset);			}		}		else { 			if (selectedDataset == null) {				// 3)project is not null. and selected is null display 					//all for project				datasetsToDisplay = proj.getDatasets();			}			else { // selected is not null				if (!proj.hasDataset(selectedDataset)) {					// 4) project is not null, selected is not null, and selected 					// is not in project. display all for project and clear selected					datasetsToDisplay = proj.getDatasets();					selectedDataset = null;				}				else {					// 5) project is not null and selected is not null and selected  					// is in project display selected					datasetsToDisplay = new Vector();					datasetsToDisplay.add(selectedDataset);				}							}		}		displayDatasets(datasetsToDisplay);	}