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 (tags.length > 0 && tags[0].getName() == null) {
			return 1;
		}
		return 0;
	}
	
	private static String getArgument(String content) {
		int i= 0;
		while (i < content.length() && !Character.isWhitespace(content.charAt(i))) {
			i++;
		}
		return content.substring(0, i);
	}
	private static class JavadocRewriteProposal extends CUCorrectionProposal {
		private static class Event {
			JavaDocTag originalTag;
			JavaDocTag newTag;
			public Event(JavaDocTag originalTag, JavaDocTag newTag) {
				this.originalTag= originalTag;
				this.newTag= newTag;
			}
			
			public boolean isInserted() {
				return originalTag == null && newTag != null;
			}
			
			public boolean isRemoved() {
				return originalTag != null && newTag == null;