if (selection.length == 1 && (selection[0] instanceof IFile)) res.setOK(); else res.setError("");
for (int i= 0; i < selection.length; i++) { if (!(selection[i] instanceof IPackageFragment)) { res.setError(JarPackagerMessages.getString("JarManifestWizardPage.error.mustContainPackages")); return res; } } res.setOK();
			public IStatus validate(Object[] selection) {				StatusInfo res= new StatusInfo();				// only single selection				if (selection.length == 1 && (selection[0] instanceof IFile))					res.setOK();				else					res.setError(""); //$NON-NLS-1$				return res;			}