Object obj= e.getElement(); if (obj instanceof IJavaElement) { IJavaElement iJavaElement= (IJavaElement) obj; IJavaProject iJavaProject= iJavaElement.getJavaProject(); if (iJavaProject != null  && e.getChecked()) { fWizard.addSelectedProject(iJavaProject); } else fWizard.removeSelectedProject(iJavaProject); }
fWizard.removeAllProjects(); setProjects();
			public void checkStateChanged(CheckStateChangedEvent e) {				doValidation(TREESTATUS);				Object obj= e.getElement();				if (obj instanceof IJavaElement) {					IJavaElement iJavaElement= (IJavaElement) obj;					IJavaProject iJavaProject= iJavaElement.getJavaProject();					if (iJavaProject != null  && e.getChecked()) {						fWizard.addSelectedProject(iJavaProject);					} else						fWizard.removeSelectedProject(iJavaProject);				}			}