|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBlockTextSelection
A rectangular selection in a text document. A column selection spans the visually identical range of columns on a contiguous range of lines. The character count of the same visually perceived column may not be equal for two different lines, therefore computing the set of disjunct character ranges covered by a column selection is influenced by the used font and tabulator width. Using column selections with proportional fonts may render unexpected results.
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
Method Summary | |
---|---|
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. The returned text does not necessarily correspond to the total offset and length ,
as only the text within the selected columns is returned. |
Methods inherited from interface org.eclipse.jface.text.ITextSelection |
---|
getEndLine, getLength, getOffset, getStartLine |
Methods inherited from interface org.eclipse.jface.viewers.ISelection |
---|
isEmpty |
Method Detail |
---|
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()
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.