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

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.source
Class LineRange

java.lang.Object
  extended by 
org.eclipse.jface.text.source.LineRange
All Implemented Interfaces:
ILineRange

public final class LineRange
extends Object
implements ILineRange

Default implementation of ILineRange.

Since:
3.0

Constructor Summary
LineRange (int startLine, int numberOfLines)
          Creates a new line range with the given specification.
 
Method Summary
 int getNumberOfLines ()
          Returns the number of lines of this line range or -1.
 int getStartLine ()
          Returns the start line of this line range or -1.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineRange

public LineRange(int startLine,
                 int numberOfLines)
Creates a new line range with the given specification.

Parameters:
startLine - the start line
numberOfLines - the number of lines
Method Detail

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.

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