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
synchronized(cu) {
				cu.reconcile();
			}			
			createTypeMembers(createdType, new ImportsManager(imports), new SubProgressMonitor(monitor, 1));
	
			
			imports.create(false, new SubProgressMonitor(monitor, 1));
			
			synchronized(cu) {
				cu.reconcile();
			}
			ISourceRange range= createdType.getSourceRange();
			
			IBuffer buf= cu.getBuffer();
			String originalContent= buf.getText(range.getOffset(), range.getLength());
			String formattedContent= StubUtility.codeFormat(originalContent, indent, lineDelimiter);
			buf.replace(range.getOffset(), range.getLength(), formattedContent);
			if (!isInnerClass) {
				String fileComment= getFileComment(cu);
				if (fileComment != null && fileComment.length() > 0) {
					buf.replace(0, 0, fileComment + lineDelimiter);
				}
				cu.commit(false, new SubProgressMonitor(monitor, 1));
			} else {
				monitor.worked(1);
			}
			fCreatedType= createdType;
		} finally {
			if (createdWorkingCopy != null) {
				createdWorkingCopy.destroy();