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();
	protected void createInputGroup(Composite composite) {		createLabel(composite, SWT.NONE, JavadocExportMessages.getString("JavadocTreeWizardPage.checkboxtreeandlistgroup.label"), createGridData(6)); //$NON-NLS-1$		Composite c= new Composite(composite, SWT.NONE);		GridLayout layout= new GridLayout();		layout.numColumns= 1;		layout.makeColumnsEqualWidth= true;		c.setLayout(layout);		c.setLayoutData(createGridData(GridData.FILL_BOTH, 6, 0));		ITreeContentProvider treeContentProvider= new JavadocProjectContentProvider();		ITreeContentProvider listContentProvider= new JavadocMemberContentProvider();		fInputGroup= new CheckboxTreeAndListGroup(c, fStore.getRoot(), treeContentProvider, new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT), listContentProvider, new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT), SWT.NONE, convertWidthInCharsToPixels(60), convertHeightInCharsToPixels(10));		fInputGroup.addCheckStateListener(new ICheckStateListener() {			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);				}			}		});		//fFilter= new JavadocTreeViewerFilter();		//fInputGroup.getTableViewer().addFilter(fFilter);		try {			//the store will contain at least one project in it's list so long as			//the workspace is not empty.			setTreeChecked(fStore.getSelectedElements(), (IJavaProject) fStore.getJavaProjects().get(0));		} catch (JavaModelException e) {			JavaPlugin.log(e);		}		fInputGroup.aboutToOpen();	}