|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.text.MarkSelection
Default implementation of IMarkSelection
.
Constructor Summary | |
MarkSelection(IDocument document,
int offset,
int length)
Creates a MarkSelection. |
Method Summary | |
IDocument |
getDocument()
Returns the marked document. |
int |
getLength()
Returns the length of the mark selection. |
int |
getOffset()
Returns the mark position. |
boolean |
isEmpty()
Returns whether this selection is empty. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MarkSelection(IDocument document, int offset, int length)
document
- the marked documentoffset
- the offset of the marklength
- the length of the mark, may be negative if caret before offsetMethod Detail |
public IDocument getDocument()
IMarkSelection
getDocument
in interface IMarkSelection
public int getOffset()
IMarkSelection
-1
if there's no marked region.
getOffset
in interface IMarkSelection
-1
if there is no marked regionpublic int getLength()
IMarkSelection
getOffset()
returns -1
.
getLength
in interface IMarkSelection
getOffset == -1
public boolean isEmpty()
ISelection
isEmpty
in interface ISelection
true
if this selection is empty,
and false
otherwise
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |