Overview

 
Package  Use  Tree  Deprecated  Index  Help 
Eclipse Platform
Release 3.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

org.eclipse.jface.text
Class DefaultLineTracker

java.lang.Object
  extended byorg.eclipse.jface.text.AbstractLineTracker
      extended byorg.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.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.jface.text.AbstractLineTracker
AbstractLineTracker.DelimiterInfo
 
Field Summary
static String[] DELIMITERS
          The predefined delimiters of this tracker
 
Constructor Summary
DefaultLineTracker()
          Creates a standard line tracker.
 
Method Summary
 String[] getLegalLineDelimiters()
          Returns the strings this tracker considers as legal line delimiters.
protected  AbstractLineTracker.DelimiterInfo nextDelimiterInfo(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.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
 

 

Field Detail

 

 

DELIMITERS

public static final String[] DELIMITERS

The predefined delimiters of this tracker

Constructor Detail

 

 

DefaultLineTracker

public DefaultLineTracker()

Creates a standard line tracker.

Method Detail

 

 

getLegalLineDelimiters

public String[] getLegalLineDelimiters()

Description copied from interface: ILineTracker
Returns the strings this tracker considers as legal line delimiters.

Returns:
the legal line delimiters


 

 

nextDelimiterInfo

protected AbstractLineTracker.DelimiterInfo nextDelimiterInfo(String text,
                                                              int offset)

Description copied from class: AbstractLineTracker
Returns the information about the first delimiter found in the given text starting at the given offset.

Specified by:
nextDelimiterInfo in 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


 

Overview

 
Package  Use  Tree  Deprecated  Index  Help 
Eclipse Platform
Release 3.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.