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 Type
    Method
    Description
    void
    notifyReplaced(M oldModel, M newModel)
    Is called to notify that oldModel is replaced by newModel.
  • Method Details

    • notifyReplaced

      void notifyReplaced(M oldModel, M newModel)
      Is called to notify that oldModel is replaced by newModel. The listener registrations for oldModel will be adjusted accordingly.
      Do not modify the the listeners of oldModel or newModel during this method.
      Parameters:
      oldModel - the old model being replaced
      newModel - the new model (the replacement)