Appendix D. The Graphical Editing Framework (GEF)
GEF development is, without question, the most complex topic thus far—it would take an entire book to examine the GEF toolset in full. So, this appendix will only describe the structure and function of a simple (but complete) graphical editor.
Building a graphical editor involves much more than Draw2D Figures: It requires a sound knowledge of plug-ins, Model-View-Controller (MVC) architecture, JavaBean components, JFace Viewers, JFace Actions, JFace properties, and many of the classes that make up the Eclipse Workbench. Although this appendix won’t attempt to explain any of these concepts in depth, we’ll clarify how they work together in the GEF. Learning to build a graphical editor isn’t easy, but with sufficient experience, you can create powerful applications with reusable, interchangeable code.
GEF development is complicated but not impossible. How do you eat a two-ton elephant? One bite at a time.