Package org.eclipse.jface.text
Class TextViewer.WidgetCommand
java.lang.Object
org.eclipse.jface.text.TextViewer.WidgetCommand
- Enclosing class:
- TextViewer
Represents a replace command that brings the text viewer's text widget
back in synchronization with text viewer's document after the document
has been changed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe document event encapsulated by this command.intThe length of the event.The replaced text segments ofevent.intThe start of the event.The inserted and replaced text segments ofevent. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTranslates a document event into the presentation coordinates of this text viewer.
-
Field Details
-
event
The document event encapsulated by this command. -
start
public int startThe start of the event. -
length
public int lengthThe length of the event. -
text
The inserted and replaced text segments ofevent. -
preservedText
The replaced text segments ofevent.
-
-
Constructor Details
-
WidgetCommand
protected WidgetCommand()
-
-
Method Details
-
setEvent
Translates a document event into the presentation coordinates of this text viewer.- Parameters:
e- the event to be translated
-