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
Modifier and TypeFieldDescriptionThe document event encapsulated by this command.int
The length of the event.The replaced text segments ofevent
.int
The start of the event.The inserted and replaced text segments ofevent
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Translates 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
-