if (resources == null) setErrorMessage(JarPackagerMessages.JarManifestWizardPage_error_noResourceSelected);
if (resources == null) { setErrorMessage(JarPackagerMessages.JarManifestWizardPage_error_noResourceSelected); return null; }
	private IType findMainMethodByName(String name) {		if (fMainTypes == null) {			List resources= JarPackagerUtil.asResources(fJarPackage.getElements());			if (resources == null)				setErrorMessage(JarPackagerMessages.JarManifestWizardPage_error_noResourceSelected); 			IJavaSearchScope searchScope= JavaSearchScopeFactory.getInstance().createJavaSearchScope((IResource[])resources.toArray(new IResource[resources.size()]), true);			MainMethodSearchEngine engine= new MainMethodSearchEngine();			try {				fMainTypes= engine.searchMainMethods(getContainer(), searchScope, 0);			} catch (InvocationTargetException ex) {				// null			} catch (InterruptedException e) {				// null			}		}		for (int i= 0; i < fMainTypes.length; i++) {			if (fMainTypes[i].getFullyQualifiedName().equals(name))			 return fMainTypes[i];		}		return null;	}