|
|||||||||
| Home >> All >> org >> eclipse >> jface >> [ text overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.jface.text
Interface ITextViewerExtension

- All Known Implementing Classes:
- TextViewer
- public interface ITextViewerExtension
Extension interface for ITextViewer.
This extension interface replaces the event consumer mechanism (
ITextViewer.setEventConsumer(IEventConsumer) 55 )
with a set of methods that allow to manage a sequence of
org.eclipse.swt.custom.VerifyKeyListenerobjects. It also adds
- access to the control of this viewer
- marked region support as in emacs
- control of the viewer's redraw behavior by introducing
setRedraw(boolean) - access to the viewer's rewrite target.
- Since:
- 2.0
| Method Summary | |
void |
appendVerifyKeyListener(org.eclipse.swt.custom.VerifyKeyListener listener)
Appends a verify key listener to the viewer's list of verify key listeners. |
org.eclipse.swt.widgets.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(org.eclipse.swt.custom.VerifyKeyListener listener)
Inserts the verify key listener at the beginning of the viewer's list of verify key listeners. |
void |
removeVerifyKeyListener(org.eclipse.swt.custom.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 |
prependVerifyKeyListener
public void prependVerifyKeyListener(org.eclipse.swt.custom.VerifyKeyListener listener)
- Inserts the verify key listener at the beginning of the viewer's list of
verify key listeners. If the listener is already registered with the
viewer this call moves the listener to the beginning of the list.
appendVerifyKeyListener
public void appendVerifyKeyListener(org.eclipse.swt.custom.VerifyKeyListener listener)
- Appends a verify key listener to the viewer's list of verify key
listeners. If the listener is already registered with the viewer this
call moves the listener to the end of the list.
removeVerifyKeyListener
public void removeVerifyKeyListener(org.eclipse.swt.custom.VerifyKeyListener listener)
- Removes the verify key listener from the viewer's list of verify key listeners.
If the listener is not registered with this viewer, this call has no effect.
getControl
public org.eclipse.swt.widgets.Control getControl()
- Returns the control of this viewer.
setMark
public void setMark(int offset)
- Sets a mark at the given offset or clears the mark if the specified
offset is
-1. If a mark is set and the selection is empty, cut and copy actions performed on this text viewer work on the region described by the positions of the mark and the cursor.
getMark
public int getMark()
- Returns the position of the mark,
-1if the mark is not set.
setRedraw
public void setRedraw(boolean redraw)
- Enables/disables the redrawing of this text viewer. This temporarily
disconnects the viewer from its underlying
org.eclipse.swt.custom.StyledTextwidget. While being
disconnected only the viewer's selection may be changed using
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 causing a view port changed notification.
getRewriteTarget
public IRewriteTarget getRewriteTarget()
- Returns the viewer's rewrite target.
|
|||||||||
| Home >> All >> org >> eclipse >> jface >> [ text overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC