|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.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 offset| Method Detail |
public IDocument getDocument()
IMarkSelection
getDocument in interface IMarkSelectionpublic int getOffset()
IMarkSelection-1 if there's no marked region.
getOffset in interface IMarkSelection-1 if there is no marked regionpublic int getLength()
IMarkSelectiongetOffset()
returns -1.
getLength in interface IMarkSelectiongetOffset == -1public boolean isEmpty()
ISelection
isEmpty in interface ISelectiontrue if this selection is empty,
and false otherwise
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.