Package org.eclipse.jface.text
Class DefaultLineTracker
java.lang.Object
org.eclipse.jface.text.AbstractLineTracker
org.eclipse.jface.text.DefaultLineTracker
- All Implemented Interfaces:
- ILineTracker,- ILineTrackerExtension
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.
- Restriction:
- This class is not intended to be subclassed by clients.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.jface.text.AbstractLineTrackerAbstractLineTracker.DelimiterInfo, AbstractLineTracker.Request
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionString[]Returns the strings this tracker considers as legal line delimiters.protected AbstractLineTracker.DelimiterInfonextDelimiterInfo(String text, int offset) Returns the information about the first delimiter found in the given text starting at the given offset.Methods inherited from class org.eclipse.jface.text.AbstractLineTrackercheckRewriteSession, computeNumberOfLines, flushRewriteSession, getLineDelimiter, getLineInformation, getLineInformationOfOffset, getLineLength, getLineNumberOfOffset, getLineOffset, getNumberOfLines, getNumberOfLines, hasActiveRewriteSession, replace, set, startRewriteSession, stopRewriteSession
- 
Field Details- 
DELIMITERSThe predefined delimiters of this tracker
 
- 
- 
Constructor Details- 
DefaultLineTrackerpublic DefaultLineTracker()Creates a standard line tracker.
 
- 
- 
Method Details- 
getLegalLineDelimitersDescription copied from interface:ILineTrackerReturns the strings this tracker considers as legal line delimiters.- Returns:
- the legal line delimiters
 
- 
nextDelimiterInfoDescription copied from class:AbstractLineTrackerReturns the information about the first delimiter found in the given text starting at the given offset.- Specified by:
- nextDelimiterInfoin class- AbstractLineTracker
- Parameters:
- text- the text to be searched
- offset- the offset in the given text
- Returns:
- the information of the first found delimiter or null
 
 
-