Chapter 17. The Change Model
As we’ve seen in previous chapters, there are many possible kinds of EMF models. Application-specific models like the various purchase order models we’ve looked at in this book; Ecore, the metamodel for all EMF models; and the generator model, used to implement the EMF code generator, are all examples of EMF models. Another useful generic model provided by EMF is the change model, a model for representing changes, or deltas, to an instance of any other EMF model. In this chapter, we’ll look at the design of the change model and at how you can use it to represent and make changes to objects, or to record changes as they’re being made, enabling you to later roll them back (i.e., undo them).