public interface IModelChangedEvent
Modifier and Type | Field and Description |
---|---|
static int |
CHANGE
indicates that a model object's property has been changed.
|
static int |
INSERT
Indicates a change where one or more objects are added to the model.
|
static int |
REMOVE
Indicates a change where one or more objects are removed from the model.
|
static int |
WORLD_CHANGED
Indicates that the model has been reloaded and that listeners should
perform full refresh.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getChangedObjects()
Returns an array of model objects that are affected by the change.
|
String |
getChangedProperty()
Returns a name of the object's property that has been changed if change
type is CHANGE.
|
IModelChangeProvider |
getChangeProvider()
Returns the provider that fired this event.
|
int |
getChangeType()
Returns the type of change that occured in the model (one of INSERT,
REMOVE, CHANGE or
WORLD_CHANGED ).
|
Object |
getNewValue()
When model change is of type CHANGE, this method is used to
obtain the new value of the property (after the change).
|
Object |
getOldValue()
When model change is of type CHANGE, this method is used to
obtain the old value of the property (before the change).
|
static final int INSERT
static final int REMOVE
static final int WORLD_CHANGED
static final int CHANGE
IModelChangeProvider getChangeProvider()
Object[] getChangedObjects()
String getChangedProperty()
Object getOldValue()
Object getNewValue()
int getChangeType()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.