Bug 45517 Add a 'Field comment' code template
20031024 The user should be able to specify a 'field comment' template. See 'CodeTemplateContextType.TYPE_COMMENT' as an example You have to - define a new variable type - specify the variables avaiable in this template - create an API in Codetemplates so it can be used Users are: - AddJavadocCommentAction - JavadocTagsSubProcessor.getMissingJavadocCommentProposals
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/JavadocTagsSubProcessor.java
if (javadoc == null) {
			return;
		}
		
		MethodDeclaration methodDecl= (MethodDeclaration) declaration;
		
		Image image= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_JAVADOCTAG);
		JavadocRewriteProposal proposal= new JavadocRewriteProposal("", context.getCompilationUnit(), javadoc, 1, image); 
	
		JavaDocTag[] existingTags= proposal.getTags();
		
		switch (problem.getProblemId()) {
			case IProblem.AnnotationMissingParamTag: {
				String name= ASTNodes.asString(node);
				proposal.setDisplayName(CorrectionMessages.getString("JavadocTagsSubProcessor.addjavadoc.paramtag.description")); 
				int insertPosition= findParamInsertPosition(existingTags, methodDecl, node.getParent());
				proposal.insertNewTag(insertPosition, new JavaDocTag(JavaDocTag.PARAM, name));
				break;
			}
			case IProblem.AnnotationMissingReturnTag: {
				proposal.setDisplayName(CorrectionMessages.getString("JavadocTagsSubProcessor.addjavadoc.returntag.description")); 
				int insertPosition= findReturnInsertPosition(existingTags);
				proposal.insertNewTag(insertPosition, new JavaDocTag(JavaDocTag.RETURN, "")); 
				break;
			}
			case IProblem.AnnotationMissingThrowsTag: {
				String name= ASTNodes.asString(node);
				proposal.setDisplayName(CorrectionMessages.getString("JavadocTagsSubProcessor.addjavadoc.throwstag.description")); 
				int insertPosition= findThrowsInsertPosition(existingTags, methodDecl, node);
				proposal.insertNewTag(insertPosition, new JavaDocTag(JavaDocTag.THROWS, name));