O'Reilly logo

The Eclipse Graphical Editing Framework (GEF) by Eric Clayberg, Jaime Wren, Dan Rubel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required