Chapter 8. GEF Models

In the prior chapters, we focused exclusively on functionality provided by Draw2D and did not bother separating model from view. Not only is separating model and view a good design goal, but it is required by Zest and GEF as seen in the upcoming chapters. Zest and GEF are designed for developers to build Model-View-Controller (MVC) architectures, so having the model separate is a necessity (see Section 10.1 on page 176).

This chapter includes only small code snippets here and there to highlight specific pieces of the model classes. To see the model classes in their entirety, refer to the example code (see Section 2.6 on page 20). After the model is written, we will update the GenealogyView to read, populate the model, and ...

Get The Eclipse Graphical Editing Framework (GEF) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.