Bug 32478 Create inner subclass generate invalid import
When we have a class with an inner protected class like that, package test1; public class Parent { protected class Inner { } } and an other one like that package test2; import test1.Parent; public class Child extends Parent { } and we want to generate a inner class in Child that extends the inner class Protected.Inner, we obtain package test2; import test1.Parent; import test1.Parent.Inner; public class Child extends Parent { public class Generated extends Inner { } } but the import statement is not valid. It should not be generated.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java
updateEnableState();
	}	
	/**
	 * Returns the enclosing type corresponding to the current input.
	 * 
	 * @return the enclosing type or <code>null</code> if the enclosing type is 
	 * not selected or the input could not be resolved
	 */
	public IType getEnclosingType() {
		if (isEnclosingTypeSelected()) {
			return fCurrEnclosingType;
		}
		return null;
	}
	/**
	 * Sets the enclosing type. The method updates the underlying model 
	 * and the text of the control.
	 * 
	 * @param type the enclosing type
	 * @param canBeModified if <code>true</code> the enclosing type field is
	 * editable; otherwise it is read-only.
	 */	
	public void setEnclosingType(IType type, boolean canBeModified) {
		fCurrEnclosingType= type;
		fCanModifyEnclosingType= canBeModified;
		String str= (type == null) ? "" : JavaModelUtil.getFullyQualifiedName(type); 
		fEnclosingTypeDialogField.setText(str);
		updateEnableState();
	}