Content deleted Content added
→Model-View-Controller Pattern in GEF: fixed typo: "whith" => "with" |
→Request and Response Mechanism: fixed typo: "an" => "a" |
||
Line 28:
== Request and Response Mechanism ==
Any user action with the editor can generate a request. The nature of the request is understood by the context of invocation. The context is determined by the EditPart the user interacts with and the active tool. The tool can be any selected entry in a tool palette. The request is handed over to the selected EditPart, which in turn returns
This is achieved using the [[Chain-of-responsibility pattern|Chain of responsibility]] mechanism over Editpolicies. The editpolicies determine if they can handle the request, otherwise they pass on to the next editpolicy. The order of declaration of editpolicies determine the order in which the request is passed around. The capable editpolicy creates a command. This command is handed back to the tool which initiated the "Request". Execution of the command causes the model to be modified (Response).
|