Bug 117015 [refactoring] Rename type should not rely on ".java"
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java
needsSave= true;
				parentCU.becomeWorkingCopy(null, new SubProgressMonitor(monitor, 1)); 
				connectedCU= parentCU;
				
				
				String content= CodeGeneration.getCompilationUnitContent(parentCU, getFileComment(parentCU, lineDelimiter), getTypeComment(parentCU, lineDelimiter), "", lineDelimiter); 
				if (content != null) {
					parentCU.getBuffer().setContents(content);
				}
				existingImports= getExistingImports(parentCU);
							
				imports= new ImportsManager(parentCU);
				
				imports.addImport(JavaModelUtil.concatenateName(pack.getElementName(), typeName));
				
				String typeContent= constructTypeStub(parentCU, imports, lineDelimiter);
				
				String cuContent= constructCUContent(parentCU, typeContent, lineDelimiter);
				
				parentCU.getBuffer().setContents(cuContent);
				
				createdType= parentCU.getType(typeName);
			} else {
				IType enclosingType= getEnclosingType();
				
				ICompilationUnit parentCU= enclosingType.getCompilationUnit();
				
				needsSave= !parentCU.isWorkingCopy();