1 11 package org.eclipse.jdt.core; 12 13 import java.util.EventObject ; 14 15 46 public class BufferChangedEvent extends EventObject { 47 48 51 private int length; 52 53 56 private int offset; 57 58 61 private String text; 62 63 private static final long serialVersionUID = 655379473891745999L; 65 73 public BufferChangedEvent(IBuffer buffer, int offset, int length, String text) { 74 super(buffer); 75 this.offset = offset; 76 this.length = length; 77 this.text = text; 78 } 79 84 public IBuffer getBuffer() { 85 return (IBuffer) this.source; 86 } 87 94 public int getLength() { 95 return this.length; 96 } 97 103 public int getOffset() { 104 return this.offset; 105 } 106 113 public String getText() { 114 return this.text; 115 } 116 } 117 | Popular Tags |