Interface IModelListener<M extends IModel>
-
- Type Parameters:
M- the model
- All Known Subinterfaces:
IProjectListener
- All Known Implementing Classes:
AbstractResolvableModel,AttributeValuesPage.TemporaryAttributesConfiguration,BuildModelListener,Configuration,ConfigurationTableEditorFactory.UIConfiguration,ModelContainer,PLPInfo,ProductLineProject,ProjectContainer,Script,ScriptContainer,Template,TemplateModelListener,VarModelListener
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnotifyReplaced(M oldModel, M newModel)Is called to notify thatoldModelis replaced bynewModel.
-
-
-
Method Detail
-
notifyReplaced
void notifyReplaced(M oldModel, M newModel)
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)
-
-