org.eclipse.jface.text
Class DefaultLineTracker
java.lang.Object
|
+--org.eclipse.jface.text.AbstractLineTracker
|
+--org.eclipse.jface.text.DefaultLineTracker
- All Implemented Interfaces:
- ILineTracker
- public class DefaultLineTracker
- extends AbstractLineTracker
Standard implementation of ILineTracker
.
The line tracker considers the three common line
delimiters which are '\n', '\r', '\r\n'.
This class is not intended to be subclassed.
Field Summary |
static String[] |
DELIMITERS
The predefined delimiters of this tracker |
Methods inherited from class org.eclipse.jface.text.AbstractLineTracker |
computeNumberOfLines, getLineDelimiter, getLineInformation, getLineInformationOfOffset, getLineLength, getLineNumberOfOffset, getLineOffset, getNumberOfLines, getNumberOfLines, replace, set |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DELIMITERS
public static final String[] DELIMITERS
- The predefined delimiters of this tracker
DefaultLineTracker
public DefaultLineTracker()
- Creates a standard line tracker.
getLegalLineDelimiters
public String[] getLegalLineDelimiters()
- Description copied from interface:
ILineTracker
- Returns the strings this tracker considers as legal line delimiters.
- Following copied from interface:
org.eclipse.jface.text.ILineTracker
- Returns:
- the legal line delimiters
nextDelimiterInfo
protected AbstractLineTracker.DelimiterInfo nextDelimiterInfo(String text,
int offset)
- Description copied from class:
AbstractLineTracker
- Returns the info of the first delimiter found in the given
text starting at the given offset.
- Overrides:
nextDelimiterInfo
in class AbstractLineTracker
- Following copied from class:
org.eclipse.jface.text.AbstractLineTracker
- Parameters:
text
- the text to be searchedoffset
- the offset in the given text- Returns:
- the info of the first found delimiter or
null
if
there is no such info
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.