Class BufferChangedEvent

java.lang.Object
java.util.EventObject
org.aspectj.org.eclipse.jdt.core.BufferChangedEvent
All Implemented Interfaces:
Serializable

public class BufferChangedEvent extends EventObject
A buffer changed event describes how a buffer has changed. These events are used in IBufferChangedListener notifications.

For text insertions, getOffset is the offset of the first inserted character, getText is the inserted text, and getLength is 0.

For text removals, getOffset is the offset of the first removed character, getText is null, and getLength is the length of the text that was removed.

For replacements (including IBuffer.setContents), getOffset is the offset of the first replaced character, getText is the replacement text, and getLength is the length of the original text that was replaced.

When a buffer is closed, getOffset is 0, getLength is 0, and getText is null.

See Also: