Content deleted Content added
Hooperbloob (talk | contribs) +context paragraph |
|||
Line 36:
== GEF Design patterns ==
In addition to MVC, GEF developers/enthusiasts need to have a good understanding of [[Design Patterns]]. The most recurring design patterns under GEF are [[Factory method pattern|Factory]], [[Chain-of-responsibility pattern|Chain of responsibility]], [[Command pattern|Command]], [[Observer pattern|Observer]] and [[State pattern|State]]. These patterns are often mandatory under GEF, for instance EditPartFactory implementation. Certain aspects of GEF code can be correlated to these. The jargon (italicized text) is strictly GEF specific.
* Factory: Creating models from palette, creating ''editparts'' and creating figures.
* Observer: Typically a controller (read ''editpart'') listening on Model and View.
* Command: To implement Undo and Redo functions.
|