Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.jface.text
Class TextViewer.SelectionPosition  view TextViewer.SelectionPosition download TextViewer.SelectionPosition.java

java.lang.Object
  extended byorg.eclipse.jface.text.Position
      extended byorg.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.