2003-12-01 Olga Rodimina <rodimina@redhat.com>

* java/awt/TextComponent.java:
	(getSelectionStart): Updated javadocs.
	(getSelectionEnd): Ditto.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer:
	(getSelectionStart): Changed to return caret position if no
	text is selected
	(getSelectionEnd): Ditto.

From-SVN: r74124
This commit is contained in:
Olga Rodimina 2003-12-01 20:23:50 +00:00 committed by Tom Tromey
parent bde5dd2520
commit ea91ed0989
3 changed files with 32 additions and 2 deletions

View file

@ -163,7 +163,7 @@ getSelectedText()
/**
* Returns the starting position of the selected text region.
* // FIXME: What is returned if there is no selected text?
* If the text is not selected then caret position is returned.
*
* @return The starting position of the selected text region.
*/
@ -196,7 +196,7 @@ setSelectionStart(int selectionStart)
/**
* Returns the ending position of the selected text region.
* // FIXME: What is returned if there is no selected text.
* If the text is not selected, then caret position is returned
*
* @return The ending position of the selected text region.
*/