diff options
author | Dani Megert | 2016-03-18 10:53:41 +0000 |
---|---|---|
committer | Dani Megert | 2016-03-18 10:53:41 +0000 |
commit | 25a4b22643b1a8e30a72350fd9cda69d7095ce1f (patch) | |
tree | e21aef069e6c71a9c8bf429cd6a72a36a807b11d /org.eclipse.text/src/org | |
parent | add07e1dc1af5913455858fb780c343b79facc9e (diff) | |
download | eclipse.platform.text-25a4b22643b1a8e30a72350fd9cda69d7095ce1f.tar.gz eclipse.platform.text-25a4b22643b1a8e30a72350fd9cda69d7095ce1f.tar.xz eclipse.platform.text-25a4b22643b1a8e30a72350fd9cda69d7095ce1f.zip |
Document that a document always has at least one line
Diffstat (limited to 'org.eclipse.text/src/org')
-rw-r--r-- | org.eclipse.text/src/org/eclipse/jface/text/IDocument.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/IDocument.java b/org.eclipse.text/src/org/eclipse/jface/text/IDocument.java index 6c106405773..4351ace33c8 100644 --- a/org.eclipse.text/src/org/eclipse/jface/text/IDocument.java +++ b/org.eclipse.text/src/org/eclipse/jface/text/IDocument.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. + * Copyright (c) 2000, 2016 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -584,9 +584,12 @@ public interface IDocument { IRegion getLineInformationOfOffset(int offset) throws BadLocationException; /** - * Returns the number of lines in this document - * - * @return the number of lines in this document + * Returns the number of lines in this document. + * <p> + * Note that a document always has at least one line. + * </p> + * + * @return the number of lines in this document. */ int getNumberOfLines(); |