|
|||||||||
| Home >> All >> org >> eclipse >> jface >> [ text overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.jface.text
Class TextViewer.SelectionPosition

java.lang.Objectorg.eclipse.jface.text.Position
org.eclipse.jface.text.TextViewer.SelectionPosition
- Enclosing class:
- TextViewer
- static class TextViewer.SelectionPosition
- extends Position
A position reflecting a viewer selection and the selection anchor. The anchor is represented by the caret.
- Since:
- 2.1
| Field Summary | |
private boolean |
reverse
The flag indicating the anchor of this selection |
| Fields inherited from class org.eclipse.jface.text.Position |
isDeleted, length, offset |
| Constructor Summary | |
TextViewer.SelectionPosition(org.eclipse.swt.graphics.Point point)
Creates a new selection position for the specified selection. |
|
| Method Summary | |
org.eclipse.swt.graphics.Point |
getNormalizedSelection()
Returns the selection in a format where the selection length is always non-negative. |
org.eclipse.swt.graphics.Point |
getSelection()
Returns the selection reflecting its anchor. |
| Methods inherited from class org.eclipse.jface.text.Position |
delete, equals, getLength, getOffset, hashCode, includes, isDeleted, overlapsWith, setLength, setOffset, undelete |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
reverse
private boolean reverse
- The flag indicating the anchor of this selection
| Constructor Detail |
TextViewer.SelectionPosition
public TextViewer.SelectionPosition(org.eclipse.swt.graphics.Point point)
- Creates a new selection position for the specified selection.
| Method Detail |
getNormalizedSelection
public org.eclipse.swt.graphics.Point getNormalizedSelection()
- Returns the selection in a format where the selection length
is always non-negative.
getSelection
public org.eclipse.swt.graphics.Point getSelection()
- Returns the selection reflecting its anchor.
|
|||||||||
| Home >> All >> org >> eclipse >> jface >> [ text overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC