Bug 6009 New class wizard doesn't get context right for nested classes
Build 20011106. - with a .java file open in the editor, - click the new class button - check "Enclosing Type" - the field is blank - it should default to the current type in the editor
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/TypePage.java
monitor.worked(1);
		
		String clName= fTypeNameDialogField.getText();
		
		boolean isInnerClass= isEnclosingTypeSelected();
		
		IType createdType;
		ImportsStructure imports;
		int indent= 0;
		String[] prefOrder= ImportOrganizePreferencePage.getImportOrderPreference();
		int threshold= ImportOrganizePreferencePage.getImportNumberThreshold();			
		
		String lineDelimiter= null;	
		if (!isInnerClass) {
			ICompilationUnit parentCU= pack.getCompilationUnit(clName + ".java"); 
			
			imports= new ImportsStructure(parentCU, prefOrder, threshold, false);
			
			lineDelimiter= StubUtility.getLineDelimiterUsed(parentCU);
			
			String content= createTypeBody(imports, lineDelimiter);
			createdType= parentCU.createType(content, null, false, new SubProgressMonitor(monitor, 5));
		} else {
			IType enclosingType= getEnclosingType();
			
			
			
			IType workingCopy= (IType) EditorUtility.getWorkingCopy(enclosingType);
			if (workingCopy != null) {
				enclosingType= workingCopy;