Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.text
Class ConfigurableLineTracker


java.lang.Object
  extended by 

org.eclipse.jface.text.AbstractLineTracker
      extended by 
org.eclipse.jface.text.ConfigurableLineTracker
All Implemented Interfaces:
ILineTracker, ILineTrackerExtension

public class ConfigurableLineTracker
extends AbstractLineTracker

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 Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.text. AbstractLineTracker
AbstractLineTracker.DelimiterInfo, AbstractLineTracker.Request
 
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 information about the first delimiter found in the given text starting at the given offset.
 
Methods inherited from class org.eclipse.jface.text. AbstractLineTracker
checkRewriteSession, computeNumberOfLines, flushRewriteSession, getLineDelimiter, getLineInformation, getLineInformationOfOffset, getLineLength, getLineNumberOfOffset, getLineOffset, getNumberOfLines, getNumberOfLines, hasActiveRewriteSession, replace, set, startRewriteSession, stopRewriteSession
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableLineTracker

public ConfigurableLineTracker(
String[] legalLineDelimiters)
Creates a standard line tracker for the given line delimiters.

Parameters:
legalLineDelimiters - the tracker's legal line delimiters, may not be null and must be longer than 0
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

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire