|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITextViewerExtension4
Extension interface for ITextViewer.
Introduces the concept of text presentation listeners and improves focus
handling among widget token keepers.
A ITextPresentationListeneris a listener that
is informed by the viewer that a text presentation is about to be applied.
During this callback the listener is allowed to modify the presentation. Text
presentation listeners are thus a mean to participate in the process of text
presentation creation.
| Method Summary | |
|---|---|
void |
addTextPresentationListener(ITextPresentationListener listener)
Adds the given text presentation listener to this text viewer. |
boolean |
moveFocusToWidgetToken()
Instructs the receiver to request the IWidgetTokenKeeper
currently holding the widget token to take the keyboard focus. |
void |
removeTextPresentationListener(ITextPresentationListener listener)
Removes the given text presentation listener from this text viewer. |
| Method Detail |
|---|
boolean moveFocusToWidgetToken()
IWidgetTokenKeeper
currently holding the widget token to take the keyboard focus.
true if there was any
IWidgetTokenKeeper that was asked to take the
focus, false otherwisevoid addTextPresentationListener(ITextPresentationListener listener)
listener - the text presentation listenervoid removeTextPresentationListener(ITextPresentationListener listener)
listener - the text presentation listener
|
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.