Bug 114360 [templates][content assist] Template completion proposal in javadoc inserts a '<' and duplicates last character
I20051025-0800 + ZRH plugins from 20051028_1210 - Select a word in a javadoc comment - press Ctrl+Space => a '<' is inserted (common prefix?) - select the <code></code> proposal => the template is correctly applied, but the last character of the original selection is (wrongly) added to the end of the inserted proposal
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateProposal.java
document.addPositionCategory(getCategory());
			final InclusivePositionUpdater updater= new InclusivePositionUpdater(getCategory());
			document.addPositionUpdater(updater);
			model.addLinkingListener(new ILinkedModeListener() {
				/*
				 * @see org.eclipse.jface.text.link.ILinkedModeListener#left(org.eclipse.jface.text.link.LinkedModeModel, int)
				 */
				public void left(LinkedModeModel environment, int flags) {
					try {
						document.removePositionCategory(getCategory());
					} catch (BadPositionCategoryException e) {
						
					}
					document.removePositionUpdater(updater);
				}
				public void suspend(LinkedModeModel environment) {}
				public void resume(LinkedModeModel environment, int flags) {}
			});
		}
	}
	private String getCategory() {
		return "TemplateProposalCategory_" + toString(); 
	}
	private int getCaretOffset(TemplateBuffer buffer) {
	    TemplateVariable[] variables= buffer.getVariables();
		for (int i= 0; i != variables.length; i++) {
			TemplateVariable variable= variables[i];
			if (variable.getType().equals(GlobalTemplateVariables.Cursor.NAME))
				return variable.getOffsets()[0];
		}