|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extension interface for ITextViewer
. Extends ITextViewer
with
VerifyKeyListener
)
Method Summary | |
void |
appendVerifyKeyListener(VerifyKeyListener listener)
Appends a verify key listener to the viewer's list of verify key listeners. |
Control |
getControl()
Returns the control of this viewer. |
int |
getMark()
Returns the mark position, -1 if mark is not set. |
IRewriteTarget |
getRewriteTarget()
Returns the viewer's rewrite target. |
void |
prependVerifyKeyListener(VerifyKeyListener listener)
Inserts the verify key listener at the beginning of the viewer's list of verify key listeners. |
void |
removeVerifyKeyListener(VerifyKeyListener listener)
Removes the verify key listener from the viewer's list of verify key listeners. |
void |
setMark(int offset)
Sets or clears the mark. |
void |
setRedraw(boolean redraw)
Enables/disables the redrawing of this text viewer. |
Method Detail |
public void prependVerifyKeyListener(VerifyKeyListener listener)
listener
- the listener to be insertedpublic void appendVerifyKeyListener(VerifyKeyListener listener)
listener
- the listener to be addedpublic void removeVerifyKeyListener(VerifyKeyListener listener)
listener
- the listener to be removedpublic Control getControl()
public void setMark(int offset)
-1
, the mark is cleared.
If a mark is set and the selection is empty, cut and copy actions performed on this
text viewer peform on the region limited by the positions of the mark and the cursor.
offset
- the offset of the markpublic int getMark()
-1
if mark is not set.
-1
if no mark is setpublic void setRedraw(boolean redraw)
setSelectedRange
.
Any direct manipulation of the widget as well as calls to methods that change the viewer's
presentation state (such as enabling the segmented view) are not allowed.
When redrawing is disabled the viewer does not send out any selection or
view port change notification. When redrawing is enabled again, a selection
change notification is sent out for the selected range and this range is revealed.
public IRewriteTarget getRewriteTarget()
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |