|
Eclipse Platform 2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | 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 offset| Method Detail |
public IDocument getDocument()
IMarkSelectiongetDocument in interface IMarkSelectionorg.eclipse.jface.text.IMarkSelectionpublic int getOffset()
IMarkSelection-1 if there's no marked region.getOffset in interface IMarkSelectionorg.eclipse.jface.text.IMarkSelection-1 if there is no marked regionpublic int getLength()
IMarkSelectiongetOffset()
returns -1.getLength in interface IMarkSelectionorg.eclipse.jface.text.IMarkSelectiongetOffset == -1public boolean isEmpty()
ISelectionisEmpty in interface ISelectionorg.eclipse.jface.viewers.ISelectiontrue if this selection is empty,
and false otherwise
|
Eclipse Platform 2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||