From a19c8c64d3a29cb93630e7fa887ba37518374a5c Mon Sep 17 00:00:00 2001 From: Markus Keller Date: Tue, 8 Jul 2014 18:23:21 +0200 Subject: Bug 439155: [block selection] Pasting multiple lines inserts \r instead of document line delimiter --- org.eclipse.text/src/org/eclipse/jface/text/TextUtilities.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'org.eclipse.text/src/org/eclipse') diff --git a/org.eclipse.text/src/org/eclipse/jface/text/TextUtilities.java b/org.eclipse.text/src/org/eclipse/jface/text/TextUtilities.java index 960c7826368..b30eef61bc1 100644 --- a/org.eclipse.text/src/org/eclipse/jface/text/TextUtilities.java +++ b/org.eclipse.text/src/org/eclipse/jface/text/TextUtilities.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2011 IBM Corporation and others. + * Copyright (c) 2000, 2014 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -471,8 +471,10 @@ public class TextUtilities { } /** - * Returns the default line delimiter for the given document. This is either the delimiter of the first line, or the platform line delimiter if it is - * a legal line delimiter or the first one of the legal line delimiters. The default line delimiter should be used when performing document + * Returns the default line delimiter for the given document. This is + * {@link IDocumentExtension4#getDefaultLineDelimiter()} if available. + * Otherwise, this is either the delimiter of the first line, or the platform line delimiter if it is + * a legal line delimiter, or the first one of the legal line delimiters. The default line delimiter should be used when performing document * manipulations that span multiple lines. * * @param document the document -- cgit v1.2.3