Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2010-10-26 07:50:58 +0000
committerDani Megert2010-10-26 07:50:58 +0000
commit02abf37edf358849a1e2ece127964283e328f953 (patch)
tree5b95fdfc85b77dce1ff416b333a4d988cc354dbe /org.eclipse.text
parentd0d05499b2c092a5446047b29217a173c890cd9f (diff)
downloadeclipse.platform.text-02abf37edf358849a1e2ece127964283e328f953.tar.gz
eclipse.platform.text-02abf37edf358849a1e2ece127964283e328f953.tar.xz
eclipse.platform.text-02abf37edf358849a1e2ece127964283e328f953.zip
Fixed bug 328395: [javadoc][find/replace] The Document 's Tree Line Tracker breaks when part of a line delimiter is replacedv20101027-1300
Diffstat (limited to 'org.eclipse.text')
-rw-r--r--org.eclipse.text/src/org/eclipse/jface/text/Document.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/Document.java b/org.eclipse.text/src/org/eclipse/jface/text/Document.java
index 64d61b3b5..6be4fb9a7 100644
--- a/org.eclipse.text/src/org/eclipse/jface/text/Document.java
+++ b/org.eclipse.text/src/org/eclipse/jface/text/Document.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * Copyright (c) 2000, 2010 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
@@ -15,7 +15,11 @@ package org.eclipse.jface.text;
* Default document implementation. Uses a {@link org.eclipse.jface.text.GapTextStore} wrapped
* inside a {@link org.eclipse.jface.text.CopyOnWriteTextStore} as text store.
* <p>
- * The used line tracker considers the following strings as line delimiters: "\n", "\r", "\r\n".
+ * The used line tracker considers the following strings as line delimiters: "\n", "\r", "\r\n". In
+ * case of a text replacement across line delimiter boundaries and with different line delimiters,
+ * the line tracker might have to be repaired. Use
+ * {@link #isLineInformationRepairNeeded(int, int, String)} before doing the text replace if you
+ * have the need to discover such a situation.
* </p>
* <p>
* The document is ready to use. It has a default position category for which a default position
@@ -32,7 +36,7 @@ package org.eclipse.jface.text;
* See {@link GapTextStore} and <code>TreeLineTracker</code> for algorithmic behavior of the used
* document structures.
* </p>
- *
+ *
* @see org.eclipse.jface.text.GapTextStore
* @see org.eclipse.jface.text.CopyOnWriteTextStore
*/

Back to the top