Bug 5449 TVT Text Expansion/Truncations in new java class dialog
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/TypePage.java
lineDelimiter= StubUtility.getLineDelimiterUsed(enclosingType);
			String content= createTypeBody(imports, lineDelimiter);
			IJavaElement[] elems= enclosingType.getChildren();
			IJavaElement sibling= elems.length > 0 ? elems[0] : null;
			
			createdType= enclosingType.createType(content, sibling, false, new SubProgressMonitor(monitor, 1));
		
			indent= StubUtility.getIndentUsed(enclosingType) + 1;
		}
		
		
		imports.create(!isInnerClass, new SubProgressMonitor(monitor, 1));
		
		String[] methods= evalMethods(createdType, imports, new SubProgressMonitor(monitor, 1));
		if (methods.length > 0) {
			for (int i= 0; i < methods.length; i++) {
				createdType.createMethod(methods[i], null, false, null);
			}
			
			imports.create(!isInnerClass, null);
		} 
		monitor.worked(1);	
		
		String formattedContent= StubUtility.codeFormat(createdType.getSource(), indent, lineDelimiter);
		
		ISourceRange range= createdType.getSourceRange();
		IBuffer buf= createdType.getCompilationUnit().getBuffer();
		buf.replace(range.getOffset(), range.getLength(), formattedContent);
		if (!isInnerClass) {