public class SourceModificationEvent extends EventObject
Modifier and Type | Class and Description |
---|---|
static class |
SourceModificationEvent.Composite |
source
Modifier | Constructor and Description |
---|---|
protected |
SourceModificationEvent(Object source)
|
protected |
SourceModificationEvent(Object source,
boolean sourceChanged)
Creates a new
SourceModificationEvent |
Modifier and Type | Method and Description |
---|---|
int |
getAffectedEndOffset()
Returns end offset of the change that affected the source.
|
int |
getAffectedStartOffset()
Returns start offset of the change that affected the source.
|
Source |
getModifiedSource() |
boolean |
sourceChanged()
Returns true when the change causing this event affected the source.
|
String |
toString() |
getSource
@Deprecated protected SourceModificationEvent(Object source)
SourceModificationEvent
source
- the Source
in which the event occurredprotected SourceModificationEvent(Object source, boolean sourceChanged)
SourceModificationEvent
source
- the Source
in which the event occurredsourceChanged
- true if the change caused a modification of the text being parsed.public Source getModifiedSource()
public boolean sourceChanged()
public int getAffectedStartOffset()
public int getAffectedEndOffset()
public String toString()
toString
in class EventObject