public Point getSelection(IDocument document) {
		return new Point(replacementPosition.getOffset() + cursorPosition, 0);
	}
The additional info of this proposal
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/templates/SQLVariableCompletionProposal.java