| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a selection within a document. It is possible to get or set the start, or the end positions of this selection.
To select the whole line you should set the selection's end to the beginning of the next line. For example,
to select the line #20:
import com.togethersoft.openapi.util.text.TextPosition;
...
IdeEditorSelection selection = someEditor.getSelection(IdeEditorSelectionType.PRIMARY);
selection.setSelectionStart(new TextPosition(20,1));
selection.setSelectionEnd(new TextPosition(21,1));
| Method Summary | |
TextPosition | getSelectionEnd()Returns a TextPosition object containing information about the end of this selection. |
TextPosition | getSelectionStart()Returns a TextPosition object containing information about the start of this selection. |
void | setSelectionEnd(TextPosition position)Sets the end position of this selection. |
void | setSelectionStart(TextPosition position)Sets the start position of this selection. |
| Method Detail |
public TextPosition getSelectionEnd()
TextPosition object containing information about the end of this selection.TextPositionpublic TextPosition getSelectionStart()
TextPosition object containing information about the start of this selection.TextPositionpublic void setSelectionEnd(TextPosition position)
TextPosition instancepublic void setSelectionStart(TextPosition position)
TextPosition instance
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||