| org.eclipse.pde.core.IModelChangedEvent
All known Subclasses: org.eclipse.pde.core.ModelChangedEvent,
IModelChangedEvent | public interface IModelChangedEvent (Code) | | Model change events are fired by the model when it is changed from the last
clean state. Model change listeners can use these events to update
accordingly.
since: 2.0 |
Field Summary | |
int | CHANGE indicates that a model object's property has been changed. | int | INSERT Indicates a change where one or more objects are added to the model. | int | REMOVE Indicates a change where one or more objects are removed from the model. | int | WORLD_CHANGED Indicates that the model has been reloaded and that listeners should
perform full refresh. |
Method Summary | |
public IModelChangeProvider | getChangeProvider() Returns the provider that fired this event. | public int | getChangeType() Returns the type of change that occured in the model (one of INSERT,
REMOVE, CHANGE or
WORLD_CHANGED ). | public Object[] | getChangedObjects() Returns an array of model objects that are affected by the change. | public String | getChangedProperty() Returns a name of the object's property that has been changed if change
type is CHANGE. | public Object | getNewValue() When model change is of type CHANGE, this method is used to
obtain the new value of the property (after the change). | public Object | getOldValue() When model change is of type CHANGE, this method is used to
obtain the old value of the property (before the change). |
CHANGE | int CHANGE(Code) | | indicates that a model object's property has been changed.
|
INSERT | int INSERT(Code) | | Indicates a change where one or more objects are added to the model.
|
REMOVE | int REMOVE(Code) | | Indicates a change where one or more objects are removed from the model.
|
WORLD_CHANGED | int WORLD_CHANGED(Code) | | Indicates that the model has been reloaded and that listeners should
perform full refresh.
|
getChangeProvider | public IModelChangeProvider getChangeProvider()(Code) | | Returns the provider that fired this event.
the event provider |
getChangeType | public int getChangeType()(Code) | | Returns the type of change that occured in the model (one of INSERT,
REMOVE, CHANGE or
WORLD_CHANGED ).
type of change |
getChangedObjects | public Object[] getChangedObjects()(Code) | | Returns an array of model objects that are affected by the change.
array of affected objects |
getChangedProperty | public String getChangedProperty()(Code) | | Returns a name of the object's property that has been changed if change
type is CHANGE.
property that has been changed in the model object, or null if type is not CHANGE or if more than one property hasbeen changed. |
getNewValue | public Object getNewValue()(Code) | | When model change is of type CHANGE, this method is used to
obtain the new value of the property (after the change).
the new value of the changed property. |
getOldValue | public Object getOldValue()(Code) | | When model change is of type CHANGE, this method is used to
obtain the old value of the property (before the change).
the old value of the changed property |
|
|