|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.TextSelection
org.eclipse.jface.text.BlockTextSelection
public class BlockTextSelection
Standard implementation of IBlockTextSelection.
| Constructor Summary | |
|---|---|
BlockTextSelection(IDocument document,
int startLine,
int startColumn,
int endLine,
int endColumn,
int tabWidth)
Creates a column selection for the given lines and columns. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getEndColumn()
Returns the exclusive column on the end line at which the selection ends. |
int |
getEndLine()
Returns the number of the line containing the last character of the selected text. |
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. |
int |
getStartLine()
Returns number of the line containing the offset of the selected text. |
java.lang.String |
getText()
Returns the selected text. |
int |
hashCode()
|
| Methods inherited from class org.eclipse.jface.text.TextSelection |
|---|
emptySelection, getDocument, getLength, getOffset, isEmpty |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.text.ITextSelection |
|---|
getLength, getOffset |
| Methods inherited from interface org.eclipse.jface.viewers.ISelection |
|---|
isEmpty |
| Constructor Detail |
|---|
public BlockTextSelection(IDocument document,
int startLine,
int startColumn,
int endLine,
int endColumn,
int tabWidth)
document - the document that this selection refers tostartLine - the start linestartColumn - the possibly virtual start column, measured in characters from the start
of startLineendLine - the inclusive end lineendColumn - the exclusive and possibly virtual end column, measured in characters from
the start of endLinetabWidth - the tabulator width used to compute the visual offsets from character offsets| Method Detail |
|---|
public int getStartLine()
ITextSelection
getStartLine in interface ITextSelectiongetStartLine in class TextSelectionpublic int getStartColumn()
IBlockTextSelection
getStartColumn in interface IBlockTextSelectionpublic int getEndLine()
ITextSelection
getEndLine in interface ITextSelectiongetEndLine in class TextSelectionpublic int getEndColumn()
IBlockTextSelection
getEndColumn in interface IBlockTextSelectionpublic java.lang.String getText()
ITextSelection
getText in interface IBlockTextSelectiongetText in interface ITextSelectiongetText in class TextSelectionnull if there is no valid text informationITextSelection.getText()public int hashCode()
hashCode in class TextSelectionpublic boolean equals(java.lang.Object obj)
equals in class TextSelectionpublic IRegion[] getRegions()
IBlockTextSelection
getRegions in interface IBlockTextSelection
|
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.