|
|||||||||
| Home >> All >> org >> eclipse >> pde >> [ core overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.pde.core
Interface IModelChangedEvent

- All Known Implementing Classes:
- ModelChangedEvent
- public interface IModelChangedEvent
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 | |
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. |
| Method Summary | |
java.lang.Object[] |
getChangedObjects()
Returns an array of model objects that are affected by the change. |
java.lang.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 ). |
java.lang.Object |
getNewValue()
When model change is of type CHANGE , this method is used to obtain the new value of the property (after the change). |
java.lang.Object |
getOldValue()
When model change is of type CHANGE , this method is used to obtain the old value of the property (before the change). |
| Field Detail |
INSERT
public static final int INSERT
- Indicates a change where one or more objects are added to the model.
- See Also:
- Constant Field Values
REMOVE
public static final int REMOVE
- Indicates a change where one or more objects are removed from the model.
- See Also:
- Constant Field Values
WORLD_CHANGED
public static final int WORLD_CHANGED
- Indicates that the model has been reloaded and that listeners should
perform full refresh.
- See Also:
- Constant Field Values
CHANGE
public static final int CHANGE
- indicates that a model object's property has been changed.
- See Also:
- Constant Field Values
| Method Detail |
getChangeProvider
public IModelChangeProvider getChangeProvider()
- Returns the provider that fired this event.
getChangedObjects
public java.lang.Object[] getChangedObjects()
- Returns an array of model objects that are affected by the change.
getChangedProperty
public java.lang.String getChangedProperty()
- Returns a name of the object's property that has been changed if change
type is CHANGE.
getOldValue
public java.lang.Object getOldValue()
- When model change is of type CHANGE , this method is used to
obtain the old value of the property (before the change).
getNewValue
public java.lang.Object getNewValue()
- When model change is of type CHANGE , this method is used to
obtain the new value of the property (after the change).
getChangeType
public int getChangeType()
- Returns the type of change that occured in the model (one of INSERT
, REMOVE , CHANGE or
WORLD_CHANGED ).
|
|||||||||
| Home >> All >> org >> eclipse >> pde >> [ core overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC