|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMarkSelection
A mark selection can be sent out by text viewers. By checking the type of the selection selection listeners can determine whether a selection event is about a mark or a normal text selection.
This interface is not intended to be implemented by clients other than
ITextViewer implementers.
| Method Summary | |
|---|---|
IDocument |
getDocument()
Returns the marked document. |
int |
getLength()
Returns the length of the mark selection. |
int |
getOffset()
Returns the mark position. |
| Methods inherited from interface org.eclipse.jface.viewers.ISelection |
|---|
isEmpty |
| Method Detail |
|---|
IDocument getDocument()
int getOffset()
-1 if there's no marked region.
-1 if there is no marked regionint getLength()
getOffset()
returns -1.
getOffset == -1
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.