|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.text.AbstractLineTracker | +--org.eclipse.jface.text.ConfigurableLineTracker
Standard implementation of a generic ILineTracker
.
The line tracker can be configured with the set of legal line delimiters.
Line delimiters are unconstrainted. 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.
Nested Class Summary |
Nested classes inherited from class org.eclipse.jface.text.AbstractLineTracker |
AbstractLineTracker.DelimiterInfo |
Constructor Summary | |
ConfigurableLineTracker(String[] legalLineDelimiters)
Creates a standard line tracker for the given line delimiters. |
Method Summary | |
String[] |
getLegalLineDelimiters()
Returns the strings this tracker considers as legal line delimiters. |
protected AbstractLineTracker.DelimiterInfo |
nextDelimiterInfo(String text,
int offset)
Returns the info of the first delimiter found in the given text starting at the given offset. |
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 |
Constructor Detail |
public ConfigurableLineTracker(String[] legalLineDelimiters)
legalLineDelimiters
- the tracker's legal line delimiters,
may not be null
and must be longer than 0Method Detail |
public String[] getLegalLineDelimiters()
ILineTracker
protected AbstractLineTracker.DelimiterInfo nextDelimiterInfo(String text, int offset)
AbstractLineTracker
nextDelimiterInfo
in class AbstractLineTracker
text
- the text to be searchedoffset
- the offset in the given text
null
if
there is no such info
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |