Package org.eclipse.jface.text
Class TextViewer.WidgetCommand
- java.lang.Object
-
- org.eclipse.jface.text.TextViewer.WidgetCommand
-
- Enclosing class:
- TextViewer
protected class TextViewer.WidgetCommand extends Object
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
Fields Modifier and Type Field Description DocumentEventeventThe document event encapsulated by this command.intlengthThe length of the event.StringpreservedTextThe replaced text segments ofevent.intstartThe start of the event.StringtextThe inserted and replaced text segments ofevent.
-
Constructor Summary
Constructors Modifier Constructor Description protectedWidgetCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetEvent(DocumentEvent e)Translates a document event into the presentation coordinates of this text viewer.
-
-
-
Field Detail
-
event
public DocumentEvent event
The document event encapsulated by this command.
-
start
public int start
The start of the event.
-
length
public int length
The length of the event.
-
text
public String text
The inserted and replaced text segments ofevent.
-
preservedText
public String preservedText
The replaced text segments ofevent.
-
-
Method Detail
-
setEvent
public void setEvent(DocumentEvent e)
Translates a document event into the presentation coordinates of this text viewer.- Parameters:
e- the event to be translated
-
-