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
}
		}
		return lastThrows;
	}
	private static int findReturnInsertPosition(JavaDocTag[] tags) {
		int res= tags.length;
		for (int i= tags.length - 1; i >= 0; i--) {
			JavaDocTag curr= tags[i];
			if (JavaDocTag.THROWS.equals(curr.getName())) {
				res= i;
			} else if (JavaDocTag.PARAM.equals(curr.getName())) {
				return i + 1;
			}
		}
		return res;
	}
	private static int findParamInsertPosition(JavaDocTag[] tags, MethodDeclaration methodDecl, ASTNode node) {
		Set previousArgs= new HashSet();
		List list= methodDecl.parameters();
		for (int i= 0; i < list.size() && (list.get(i) != node); i++) {
			SingleVariableDeclaration curr= (SingleVariableDeclaration) list.get(i);
			previousArgs.add(curr.getName().getIdentifier());
		}
		for (int i= tags.length - 1; i >= 0; i--) {
			JavaDocTag curr= tags[i];
			if (JavaDocTag.PARAM.equals(curr.getName())) {
				String arg= getArgument(curr.getContent());
				if (previousArgs.contains(arg)) {
					return i + 1;
				}