Eclipse Platform
Release 3.3

org.eclipse.jface.text.revisions
Class RevisionRange

java.lang.Object
  extended byorg.eclipse.jface.text.revisions.RevisionRange
All Implemented Interfaces:
ILineRange

public final class RevisionRange
extends Object
implements ILineRange

An unmodifiable line range that belongs to a Revision.

Since:
3.3

Method Summary
 int getNumberOfLines()
          Returns the number of lines of this line range or -1.
 Revision getRevision()
          Returns the revision that this range belongs to.
 int getStartLine()
          Returns the start line of this line range or -1.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getRevision

public Revision getRevision()
Returns the revision that this range belongs to.

Returns:
the revision that this range belongs to

getStartLine

public int getStartLine()
Description copied from interface: ILineRange
Returns the start line of this line range or -1.

Specified by:
getStartLine in interface ILineRange
Returns:
the start line of this line range or -1 if this line range is invalid.

getNumberOfLines

public int getNumberOfLines()
Description copied from interface: ILineRange
Returns the number of lines of this line range or -1.

Specified by:
getNumberOfLines in interface ILineRange
Returns:
the number of lines in this line range or -1 if this line range is invalid.

toString

public String toString()

Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

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