if (items.length == 0)
if (fInputGroup.getAllCheckedTreeItems().size() == 0)
	private void doValidation(int validate) {		switch (validate) {			case PREFERENCESTATUS :				fPreferenceStatus= new StatusInfo();				fDocletStatus= new StatusInfo();				if (JavadocPreferencePage.getJavaDocCommand().length() == 0) {					fPreferenceStatus.setError(JavadocExportMessages.getString("JavadocTreeWizardPage.javadoccommand.error")); //$NON-NLS-1$				}				updateStatus(findMostSevereStatus());				break;			case CUSTOMSTATUS :				if (fCustomButton.getSelection()) {					fDestinationStatus= new StatusInfo();					fDocletStatus= new StatusInfo();					String doclet= fDocletTypeText.getText();					String docletPath= fDocletText.getText();					if (doclet.length() == 0) {						fDocletStatus.setError(JavadocExportMessages.getString("JavadocTreeWizardPage.nodocletname.error")); //$NON-NLS-1$					} else if (JavaConventions.validateJavaTypeName(doclet).matches(IStatus.ERROR)) {						fDocletStatus.setError(JavadocExportMessages.getString("JavadocTreeWizardPage.invaliddocletname.error")); //$NON-NLS-1$					} else if ((docletPath.length() == 0) || !validDocletPath(docletPath)) {						fDocletStatus.setError(JavadocExportMessages.getString("JavadocTreeWizardPage.invaliddocletpath.error")); //$NON-NLS-1$					}					updateStatus(findMostSevereStatus());				}				break;			case STANDARDSTATUS :				if (fStandardButton.getSelection()) {					fDestinationStatus= new StatusInfo();					fDocletStatus= new StatusInfo();					IPath path= new Path(fDestinationText.getText());					if (Path.ROOT.equals(path) || Path.EMPTY.equals(path)) {						fDestinationStatus.setError(JavadocExportMessages.getString("JavadocTreeWizardPage.nodestination.error")); //$NON-NLS-1$					}					File file= new File(path.toOSString());					if (!path.isValidPath(path.toOSString()) || file.isFile()) {						fDestinationStatus.setError(JavadocExportMessages.getString("JavadocTreeWizardPage.invaliddestination.error")); //$NON-NLS-1$					}					if((path.append("package-list").toFile().exists()) || (path.append("index.html").toFile().exists())) //$NON-NLS-1$						fDestinationStatus.setWarning("Javadoc generation may overwrite existing files");					updateStatus(findMostSevereStatus());				}				break;			case TREESTATUS :				fTreeStatus= new StatusInfo();				Object[] items= fInputGroup.getAllCheckedTreeItems().toArray();				if (items.length == 0)					fTreeStatus.setError(JavadocExportMessages.getString("JavadocTreeWizardPage.invalidtreeselection.error")); //$NON-NLS-1$				updateStatus(findMostSevereStatus());				break;		} //end switch	}