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
String comment= getTypeComment(parentCU, lineDelimiter);
					if (comment != null) {
						content.append(comment);
						content.append(lineDelimiter);
					}
				}
				content.append(constructTypeStub(new ImportsManager(imports), lineDelimiter));
				IJavaElement[] elems= enclosingType.getChildren();
				IJavaElement sibling= elems.length > 0 ? elems[0] : null;
				
				createdType= enclosingType.createType(content.toString(), sibling, false, new SubProgressMonitor(monitor, 1));
			
				indent= StubUtility.getIndentUsed(enclosingType) + 1;
			}
			
			
			boolean needsSave= !imports.getCompilationUnit().isWorkingCopy();
			imports.create(needsSave, new SubProgressMonitor(monitor, 1));
	
			ICompilationUnit cu= createdType.getCompilationUnit();	
			synchronized(cu) {
				cu.reconcile();
			}			
			createTypeMembers(createdType, new ImportsManager(imports), new SubProgressMonitor(monitor, 1));
	
			
			imports.create(needsSave, new SubProgressMonitor(monitor, 1));
			
			synchronized(cu) {
				cu.reconcile();