Bug 35767 Hook method getTypeComment(ICompilationUnit) is not called [code manipulation]
In org.eclipse.jdt.ui.wizards.NewTypeWizardPage the hook method getTypeComment(ICompilationUnit parentCU) should be called from createType(IProgressMonitor monitor). This is true for inner classes; but otherwise only the new type comment template mechanism is used, without giving getTypeComment (and thus overloading sub-classes) a chance to hook in. (I've written a Wizard subclassing NewTypeWizardPage which provides a type comment containing xDoclet Tags. Now only the temlate type comment is inserted in the generated code) Version 2.1, Build id: 200303211418
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java
}
			monitor.done();
		}
	}	
	/**
	 * Uses the New Java file template from the code template page to generate a
	 * compilation unit with the given type content.
	 * @param cu The new created compilation unit
	 * @param typeContent The content of the type, including signature and type
	 * body.
	 * @param lineDelimiter The line delimiter to be used.
	 * @return String Returns the result of evaluating the new file template
	 * with the given type content.
	 * @throws CoreException
	 * @since 2.1
	 */
	protected String constructCUContent(ICompilationUnit cu, String typeContent, String lineDelimiter) throws CoreException {
		StringBuffer typeQualifiedName= new StringBuffer();
		if (isEnclosingTypeSelected()) {
			typeQualifiedName.append(JavaModelUtil.getTypeQualifiedName(getEnclosingType())).append('.');
		}
		typeQualifiedName.append(getTypeName());
		String typeComment= CodeGeneration.getTypeComment(cu, typeQualifiedName.toString(), lineDelimiter);
		IPackageFragment pack= (IPackageFragment) cu.getParent();
		String content= CodeGeneration.getCompilationUnitContent(cu, typeComment, typeContent, lineDelimiter);
		if (content != null) {
			CompilationUnit unit= AST.parseCompilationUnit(content.toCharArray());
			if ((pack.isDefaultPackage() || unit.getPackage() != null) && !unit.types().isEmpty()) {
				return content;
			}