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
int insertPos;
			for (insertPos= 0; insertPos < fChangedList.size(); insertPos++) {
				Event curr= (Event) fChangedList.get(insertPos);
				if (!curr.isInserted()) {
					if (count == index) {
						break;
					}
					count++;
				}
			}
			fChangedList.add(insertPos, new Event(null, tag));
		}	
		
		/* (non-Javadoc)
		 * @see org.eclipse.jdt.internal.ui.text.correction.CUCorrectionProposal#createCompilationUnitChange(String, ICompilationUnit, TextEdit)
		 */
		protected CompilationUnitChange createCompilationUnitChange(String name, ICompilationUnit cu, TextEdit rootEdit) throws CoreException {
			CompilationUnitChange change= super.createCompilationUnitChange(name, cu, rootEdit);
			TextBuffer buffer= null;
			try {
				buffer= TextBuffer.acquire(change.getFile());
				createEdits(buffer, cu, rootEdit);
			} finally {
				if (buffer != null) {
					TextBuffer.release(buffer);
				}
			}
			return change;
		}