From 22260d02bb047909b4f1fa835b8a417c2f8046ef Mon Sep 17 00:00:00 2001 From: eiffel-org Date: Tue, 22 Nov 2016 13:48:48 +0000 Subject: [PATCH] Update wikipage Code Templates. (Signed-off-by:javier). git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1685 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../eiffelstudio-editor/Code-Templates.wiki | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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.