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
/*		private void createEditsNew(TextBuffer buffer, ICompilationUnit cu, TextEdit root) throws JavaModelException {
			IBuffer cuBuffer= cu.getBuffer();
			String comment= cuBuffer.getText(fJavadoc.getStartPosition(), fJavadoc.getLength());
			
			try {
				String cat= "cat"; 
				
				Document doc= new Document(comment);
				doc.addPositionCategory(cat);
				
				int offset= fJavadoc.getStartPosition();
				
				int currPos= 3;
				for (int i= fChangedList.size() - 1; i > 0; i--) {
					Event curr= (Event) fChangedList.get(i);
					JavaDocTag origTag= curr.originalTag;
					JavaDocTag newTag= curr.newTag;
					if (origTag == newTag) {
						int start= origTag.getOffset();
						int end= origTag.getContentOffset() + origTag.getContentLength();
						doc.addPosition(cat, new Position(start  - offset, end - start));
						currPos= origTag.getOffset() + origTag.getLength() - offset;
					} else if (newTag == null) {
						// remove
						doc.replace(origTag.getOffset() - offset, origTag.getLength(), ""); 
						currPos= origTag.getOffset() + origTag.getLength() - offset;
					} else if (origTag == null) {
						// insert
						String string= getNewTagString(curr.newTag);