Bug 4360 Template - cursor at wrong position
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java
pattern= fInterpolator.interpolate(pattern, fArgumentEvaluator);		
		pattern= fInterpolator.interpolate(pattern, fContext);
		fInterpolator.interpolate(pattern, fModelEvaluator);
		TemplateModel model= fModelEvaluator.getModel();
		if (model.getEditableCount() == 0) {		
			pattern= fInterpolator.interpolate(pattern, fCursorSelectionEvaluator);
			
			int cursorStart= fCursorSelectionEvaluator.getStart();
			if (cursorStart == -1) {
				fSelectionStart= pattern.length();
				fSelectionEnd= fSelectionStart;
			} else {		
				fSelectionStart= cursorStart;
				fSelectionEnd= fCursorSelectionEvaluator.getEnd();			
			}			
		} else {
			
			TemplateEditorPopup popup= new TemplateEditorPopup(fContext, model);
	        
			if (!popup.open()) {
				
				fSelectionStart= fContext.getEnd() - fContext.getStart();
				fSelectionEnd= fSelectionStart;
				return;
			}
   			pattern= popup.getText();    
			
			int[] selection= popup.getSelection();
			if (selection[0] == -1) {