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).

17.1 Describing a Change ...

Get EMF: Eclipse Modeling Framework Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.