if (!"".equals(pkgName) && !status.isOK()) {
if (!"".equals(pkgName) && status.getSeverity() == IStatus.ERROR) {
	private void validatePropertyPackage() {		String pkgName= fPropertyPackage.getText();				IStatus status= JavaConventions.validatePackageName(pkgName);		if (!"".equals(pkgName) && !status.isOK()) { //$NON-NLS-1$			setInvalid(fPropertyPackage, status.getMessage());			return;		} 				IPath pkgPath= new Path(pkgName.replace('.', IPath.SEPARATOR)).makeRelative();		IJavaProject project= getCu().getJavaProject();		try {			IJavaElement element= project.findElement(pkgPath);			if (element == null || !element.exists()) {				setInvalid(fPropertyPackage, NLSUIMessages.getString("wizardPage2.must_exist")); //$NON-NLS-1$				return;			}			fPkgFragment= (IPackageFragment)element;			if (! canAddPackage(fPkgFragment)){				setInvalid(fPropertyPackage, NLSUIMessages.getString("wizardPage2.incorrect_package")); //$NON-NLS-1$				return;			}			if (! canAddPackageRoot((IPackageFragmentRoot)fPkgFragment.getParent())){				setInvalid(fPropertyPackage, NLSUIMessages.getString("wizardPage2.incorrect_package")); //$NON-NLS-1$				return;			}		} catch (JavaModelException e) {			setInvalid(fPropertyPackage, e.getStatus().getMessage());			return;		}				setValid(fPropertyPackage);	}