|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extension interface for ITextViewer.
This extension interface replaces the event consumer mechanism ( ITextViewer.setEventConsumer(IEventConsumer)) with a set of methods that allow to manage a sequence of VerifyKeyListenerobjects. It also adds
A rewrite target (IRewriteTarget) represents an facade offering the necessary methods to manipulate a document that is the input document of a text viewer.
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 position of the mark, -1 if the 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 a mark at the given offset or clears the mark if the specified offset is -1. |
void | setRedraw(boolean redraw)
Enables/disables the redrawing of this text viewer. |
Method Detail |
public void prependVerifyKeyListener(VerifyKeyListener listener)
public void appendVerifyKeyListener(VerifyKeyListener listener)
public void removeVerifyKeyListener(VerifyKeyListener listener)
public Control getControl()
public void setMark(int offset)
public int getMark()
public void setRedraw(boolean redraw)
public IRewriteTarget getRewriteTarget()
|
Eclipse Platform Release 3.0 | ||||||||||
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, 2004. All rights reserved.