From f99f87ebc716df706b17603c350ed7170bd5644f Mon Sep 17 00:00:00 2001 From: eiffel-org Date: Thu, 24 Nov 2016 06:36:34 +0000 Subject: [PATCH] Update wikipage Code Templates. (Signed-off-by:b-meyer). git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1699 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../eiffelstudio-editor/Code-Templates.wiki | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 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 bf3200bb..cb602a77 100644 --- a/documentation/trunk/eiffelstudio/eiffelstudio-reference/eiffelstudio-editor/Code-Templates.wiki +++ b/documentation/trunk/eiffelstudio/eiffelstudio-reference/eiffelstudio-editor/Code-Templates.wiki @@ -24,7 +24,7 @@ There are two kinds of template: Code templates are part of EiffelStudio’s code completion mechanism. Code completion lets you choose a code template at the same place where it offers you features to call, typically after you type a dot character “.” after the name of an applicable local variable. attribute or function -==Target Templates== +==Target templates== When you type a dot character “.” after the name of an applicable target, a menu appears: [[Image:target_template_1_0]] @@ -39,18 +39,18 @@ Figure 2. Auto-completion with code templates option list As suggested, you can also type Control-space to get the same effect. If you find a template that you like, just click it (or navigate to it in the list using the up and down arrow keys, then type Return). -== Targetless Templates == +== Targetless templates == It's also possible to use code templates without a target after type Control-Space, if there are any applicable targetless templates, the first entry says “Show templates (Ctrl+Space)” and you can click it to get a list of applicable templates. Choose the desired one by clicking or navigating. [[Image:targetless_template_1_3]] -Figure 3. Targetless Auto-completion with code template option +Figure 3. Targetless auto-completion with code template option When you insert a template into your code, it will often have some highlighted fields, corresponding to the template arguments, for example the lower and upper bounds of the array slice whose maximum you need: [[Image:targetless_template_1_4|680px]] -Figure 4. Targetless Auto-completion with code templates option list. +Figure 4. Targetless auto-completion with code templates option list. = Where does EiffelStudio find the templates? = @@ -122,7 +122,7 @@ git checkout git pull upstream -== New Branch == +== New branch == Create a new topic branch (off the main project development branch) to contain your new code template git checkout -b Commit your changes in logical chunks. Before to commit double check [http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html Tim Pope's A Note About Git Commit Messages]. @@ -136,20 +136,20 @@ Push your topic branch up to your fork: git push origin -==Pull Request== -Open a Pull Request with a clear title and description +==Pull request== +Open a pull request with a clear title and description -== Code Template Review == +== Code template review == For your work to be integrated into the project, the maintainers will review your work and either request changes or merge it. -=Associating GUI with Template definition= +=Associating a user interface with a template definition= The following image shows the relationship between the template definition and how they will look in the GUI. [[Image:target_template_1_2|780px]] -Figure 5. Gui and Template relationship. +Figure 5. UI and template relationship. * Feature name or metadata `title` if present will be used as the value in the list of completion possibilities.