Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2016-03-18 10:53:41 +0000
committerDani Megert2016-03-18 10:53:41 +0000
commit25a4b22643b1a8e30a72350fd9cda69d7095ce1f (patch)
treee21aef069e6c71a9c8bf429cd6a72a36a807b11d /org.eclipse.text/src/org
parentadd07e1dc1af5913455858fb780c343b79facc9e (diff)
downloadeclipse.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.java11
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();

Back to the top