Bug 14943 Code Assist does not respect platform line ends
I performed the following scenario: 1. Created a new class 2. Added a method. 3. Defined a local variable for an array 4. Used code assist to create a for loop with temporary variable. The resulting code has LF as linefeeds on a windows machine. They should be CR/LF.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateEngine.java
private ContextType fContextType;
	private ITableLabelProvider fLabelProvider= new TemplateLabelProvider();
	
	private ArrayList fProposals= new ArrayList();
	/**
	 * Creates the template engine for a particular context type.
	 * See <code>TemplateContext</code> for supported context types.
	 */
	public TemplateEngine(ContextType contextType) {
		Assert.isNotNull(contextType);
		fContextType= contextType;
	}
	/**
	 * Empties the collector.
	 * 
	 * @param viewer the text viewer  
	 * @param unit   the compilation unit (may be <code>null</code>)
	 */
	public void reset() {
		fProposals.clear();
	}
	/**
	 * Returns the array of matching templates.
	 */
	public IJavaCompletionProposal[] getResults() {
		return (IJavaCompletionProposal[]) fProposals.toArray(new IJavaCompletionProposal[fProposals.size()]);
	}