Package org.eclipse.jface.text
Class ConfigurableLineTracker
java.lang.Object
org.eclipse.jface.text.AbstractLineTracker
org.eclipse.jface.text.ConfigurableLineTracker
- All Implemented Interfaces:
- ILineTracker,- ILineTrackerExtension
Standard implementation of a generic
 
ILineTracker.
 The line tracker can be configured with the set of legal line delimiters. Line delimiters are unconstrained. The line delimiters are used to compute the tracker's line structure. In the case of overlapping line delimiters, the longest line delimiter is given precedence of the shorter ones.
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
- 
Constructor SummaryConstructorsConstructorDescriptionConfigurableLineTracker(String[] legalLineDelimiters) Creates a standard line tracker for the given line delimiters.
- 
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
- 
Constructor Details- 
ConfigurableLineTrackerCreates a standard line tracker for the given line delimiters.- Parameters:
- legalLineDelimiters- the tracker's legal line delimiters, may not be- nulland must be longer than 0
 
 
- 
- 
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
 
 
-