diff --git a/documentation/trunk/eiffelstudio/eiffelstudio-reference/eiffelstudio-editor/Code-Templates.wiki b/documentation/trunk/eiffelstudio/eiffelstudio-reference/eiffelstudio-editor/Code-Templates.wiki index d06eec30..9c305e9e 100644 --- a/documentation/trunk/eiffelstudio/eiffelstudio-reference/eiffelstudio-editor/Code-Templates.wiki +++ b/documentation/trunk/eiffelstudio/eiffelstudio-reference/eiffelstudio-editor/Code-Templates.wiki @@ -54,8 +54,8 @@ Figure 4. Targetless Auto-completion with code templates option list. = Where does EiffelStudio find the templates? = To offer the template menus seen above, EiffelStudio looks in two locations: -Standard templates, found in -User-defined templates, which you can add at +* Standard templates, found in +* User-defined templates, which you can add at =What does a template definition look like?= @@ -93,9 +93,12 @@ feature -- Templates end end end - +This class defines two templates: maximum for the maximum of an entire array, and slice_maximum for the maximum of some contiguous part (“slice”) of that array. +That was a targeted template: EiffelStudio will propose it whenever the user types a dot after a target of type ARRAY [T] where T is a “COMPARABLE”. Note how you specify the target: as the actual generic parameters of TEMPLATE; that’s why the definition starts here as + + =Associating GUI with Template definition= The following image shows the relationship between the template definition and how they will look in the GUI.