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
ITypeBinding binding= exception.resolveTypeBinding();
			if (binding != null) {
				String name= binding.getName();
				if (findThrowsTag(existingTags, name) == null) {
					int insertPosition= findThrowsInsertPosition(existingTags, methodDecl, exception);
					addAllMissing.insertNewTag(insertPosition, new JavaDocTag(JavaDocTag.THROWS, name)); 
				}
			}
		}
		proposals.add(addAllMissing);
	}
	
	private static JavaDocTag findTag(JavaDocTag[] existingTags, String name, String arg) {
		for (int i= 0; i < existingTags.length; i++) {
			JavaDocTag curr= existingTags[i];
			if (name.equals(curr.getName())) {
				if (arg != null) {
					String argument= getArgument(curr.getContent());
					if (argument.equals(arg)) {
						return curr;
					}
				} else {
					return curr;
				}
			}
		}
		return null;
	}
	
	private static JavaDocTag findThrowsTag(JavaDocTag[] existingTags, String arg) {