Interface IModelListener<M extends IModel>
- Type Parameters:
M- the model
public interface IModelListener<M extends IModel>
Defines a model listener in order to inform interested parties about
changes within a model instance. Currently, this class does only notify
about the internal replacement of an entire model instance as the editor
does not support incremental model updates.
- Author:
- Holger Eichelberger
-
Method Summary
Modifier and TypeMethodDescriptionvoidnotifyReplaced(M oldModel, M newModel) Is called to notify thatoldModelis replaced bynewModel.
-
Method Details
-
notifyReplaced
Is called to notify thatoldModelis replaced bynewModel. The listener registrations foroldModelwill be adjusted accordingly.
Do not modify the the listeners ofoldModelornewModelduring this method.- Parameters:
oldModel- the old model being replacednewModel- the new model (the replacement)
-