1 11 package org.eclipse.jface.text; 12 13 14 33 public class TextEvent { 34 35 36 private int fOffset; 37 38 private int fLength; 39 40 private String fText; 41 42 private String fReplacedText; 43 44 private DocumentEvent fDocumentEvent; 45 49 private boolean fViewerRedrawState; 50 51 61 protected TextEvent(int offset, int length, String text, String replacedText, DocumentEvent event, boolean viewerRedrawState) { 62 fOffset= offset; 63 fLength= length; 64 fText= text; 65 fReplacedText= replacedText; 66 fDocumentEvent= event; 67 fViewerRedrawState= viewerRedrawState; 68 } 69 70 75 public int getOffset() { 76 return fOffset; 77 } 78 79 84 public int getLength() { 85 return fLength; 86 } 87 88 93 public String getText() { 94 return fText; 95 } 96 97 102 public String getReplacedText() { 103 return fReplacedText; 104 } 105 106 111 public DocumentEvent getDocumentEvent() { 112 return fDocumentEvent; 113 } 114 115 121 public boolean getViewerRedrawState() { 122 return fViewerRedrawState; 123 } 124 } 125 | Popular Tags |