public interface ITextSelection extends ISelection
If, for example, the selection provider is a text viewer (
ITextViewer), and a text selection is created
for the range [5, 10], the line formation for the 5th character must not be
determined and remembered at the point of creation. It can rather be
determined at the point, when
getStartLine is called. If the
source viewer range [0, 15] has been changed in the meantime between the
creation of the text selection object and the invocation of
getStartLine, the returned line number may differ from the
line number of the 5th character at the point of creation of the text
The contract of this interface is that weak in order to allow for efficient implementations.
Clients may implement this interface or use the default implementation
|Modifier and Type||Method and Description|
Returns the number of the line containing the last character of the selected text.
Returns the length of the selected text.
Returns the offset of the selected text.
Returns number of the line containing the offset of the selected text.
Returns the selected text.
nullif there is no valid text information
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.