public interface IBlockTextSelection extends ITextSelection
The offset and
length of an IBlockTextSelection
refer to the
smallest non-virtual range that comprises the entire rectangular selection.
Clients may implement this interface or use the default implementation provided by
BlockTextSelection
.
BlockTextSelection
Modifier and Type | Method and Description |
---|---|
int |
getEndColumn()
Returns the exclusive column on the end line at which the
selection ends.
|
IRegion[] |
getRegions()
Returns a non-empty array containing the selected text range for each line covered by the
selection.
|
int |
getStartColumn()
Returns the column on the start line at which the
selection starts.
|
String |
getText()
Returns the selected text.
|
getEndLine, getLength, getOffset, getStartLine
isEmpty
int getStartColumn()
int getEndColumn()
String getText()
The returned text does not necessarily correspond to the total
offset and length
,
as only the text within the selected columns is returned.
Any virtual spaces beyond the end of the selected lines are materialized and returned as text.
getText
in interface ITextSelection
null
if there is no valid text informationITextSelection.getText()
IRegion[] getRegions()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.