*/
@Override
protected IStatus containerChanged() {
IStatus status = super.containerChanged();
IPackageFragmentRoot root = getPackageFragmentRoot();
if ((fTypeKind == ANNOTATION_TYPE || fTypeKind == ENUM_TYPE) && !status.matches(IStatus.ERROR)) {
if (root != null && !JavaModelUtil.is50OrHigher(root.getJavaProject())) {
// error as createType will fail otherwise (bug 96928)
return new StatusInfo(IStatus.ERROR, Messages.format(NewWizardMessages.NewTypeWizardPage_warning_NotJDKCompliant, BasicElementLabels.getJavaElementName(root.getJavaProject().getElementName())));
}
if (fTypeKind == ENUM_TYPE) {