Graphical Editing Framework: Difference between revisions

Content deleted Content added
Model-View-Controller Pattern in GEF: fixed typo: "which" => "with"
Model-View-Controller Pattern in GEF: fixed typo: "whith" => "with"
Line 13:
 
=== Model-View-Controller Pattern in GEF ===
[[Model-View-Controller]] is an architectural design pattern which divides an application into separate parts which communicate whithwith each other in a specific way. The goal is to separate data model (model), graphical user interface (view) and business logic (controller). GEF uses the MVC pattern extensively.
* Model: The data model can either be generated using EMF, self-implemented by the user or it may already exist in case of a legacy software.
* Controller: The EditParts act as controllers. Typically, each model element has its matching EditPart. EditParts may contain other EditParts thereby matching model elements containing other model elements. EditParts also have a reference to the figure which graphically represents the model element. Finally, EditParts evaluate requests and create the appropriate command to edit the underlying model.