mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 07:12:25 +01:00
Author:halw
Date:2009-08-05T17:28:21.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@278 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,3 @@
|
||||
title=feature call auto complete example 1
|
||||
author=halw
|
||||
path=content/feature-call-auto-complete-example-1
|
||||
@@ -33,9 +33,13 @@ which would list all class names starting with "<code>LI</code>" and containing
|
||||
{{note|Using the wild card character with auto-completion is valid only '''after''' auto-completion is triggered.}}
|
||||
|
||||
|
||||
When the list appears, the first list item will be selected. You can select a class name from the list by double-clicking a name in the list or by using the keyboard <code>Up</code> and <code>Down</code> buttons to navigate the list, then pressing <code>Enter</code> to select a highlighted class name. You can also continue to type characters and the list will automatically narrow, provided that you have non-matching entries filtered out (see [[#Auto-completion list display options|Auto-completion list display options]] below.) To validate your choice, press <code>Enter</code>. If there is no selected item when you validate, then the content of the text you have type will be used.
|
||||
When the list appears, the first list item will be selected. You can select a class name from the list by double-clicking a name in the list or by using the keyboard <code>Up</code> and <code>Down</code> buttons to navigate the list, then pressing <code>Enter</code> to select a highlighted class name. You can also continue to type characters and the list will automatically narrow, provided that you have non-matching entries filtered out (see [[#Auto-completion list display options|Auto-completion list display options]] below.)
|
||||
|
||||
The auto-completion window can be cancelled by clicking outside the window or pressing <code>Esc</code>.
|
||||
To validate your choice, press <code>Enter</code>.
|
||||
|
||||
If there is no selected item when you validate, then the content of the text you have type will be inserted.
|
||||
|
||||
The auto-completion can be cancelled by clicking outside the window or pressing <code>Esc</code>.
|
||||
|
||||
|
||||
[[Image:editor-class-auto-completion-window]]
|
||||
|
||||
@@ -41,26 +41,41 @@ Figure 1. The feature auto-completion window.
|
||||
|
||||
When the auto-completion window appears, the first item in the list, if any, will be selected. To complete your code with the selected item, press "Enter" or "Ctrl+Space". To choose another item, use keyboard Up and Down arrows or the mouse.
|
||||
|
||||
You can also continue typing characters and the list will automatically be narrowed provided that you have non-matching entries filtered out (see [[#Auto-completion list display options|Auto-completion list display options]] below). To validate your choice, press "Enter" or "Ctrl+Space". If there is no selected item, the content of the text field will be inserted.
|
||||
You can also continue typing characters and the list will automatically be narrowed provided that you have non-matching entries filtered out (see '''Auto-completion list display options''' below). So, you can think of the auto-completion as a search for feature names using the characters you type followed by a wild card character, the asterisk ('*'). Of course, you don't have to put the asterisk at the end, it's just always implied. Once you've triggered auto-completion, you can however use the wild card character in the middle of a string, like this:
|
||||
|
||||
<code>
|
||||
my_string.a*int
|
||||
</code>
|
||||
which would narrow the list to all feature names starting with "<code>a</code>" and also containing the string "<code>int</code>".
|
||||
|
||||
To validate your choice, press "Enter" or "Ctrl+Space".
|
||||
|
||||
If there is no selected item, the content of the text you have typed will be inserted.
|
||||
|
||||
The auto-completion can be cancelled by clicking outside the window or pressing <code>Esc</code>.
|
||||
|
||||
==Entering routine arguments==
|
||||
|
||||
After you have selected a feature, if the feature is a routine requiring arguments, the argument prototypes will be included in the generated feature text, and the text for the first argument will be selected, as in Figure 2.
|
||||
|
||||
|
||||
To cancel the auto-complete, press "Esc" at any time.
|
||||
[[Image:feature call auto complete example 1]]
|
||||
|
||||
Figure 2. Auto-completion of a routine with arguments.
|
||||
|
||||
|
||||
Because the text for the first argument is already selected, you can go ahead and type a value for that argument. When you've completed the first argument, press <code>Tab</code>, and the next argument will be selected, and you can type a value for it. When you <code>Tab</code> after entering the final argument, the cursor will be positioned after the right parenthesis, so you are ready to move on.
|
||||
|
||||
==Auto-complete list display options==
|
||||
|
||||
At the bottom of the auto-completion window you will find a row of icons labeled "Options:". These options help you control which choices are presented to you and the format of their presentation. The options are described in the [[Class name auto complete#Auto-completion list display options|section on class name auto-completion]].
|
||||
|
||||
|
||||
{{tip|The following tips can help you get the most out of feature call automatic completion: }}
|
||||
* If the selected feature is a query, you can call the auto-complete again right after the previous completion. There is no need to type a dot.
|
||||
* You can call the auto-complete without an identifier. The auto-complete window will then show the features of the current class.
|
||||
* The keyboard shortcut for automatic completion can be changed in the [[Keyboard shortcuts preferences|editor preferences]] .
|
||||
* Typing a non-alphanumeric character in the completion window automatically closes it. You can therefore type '.', ' ' or '(' to close the completion window and start typing the next token straight away.
|
||||
{{tip|The following tips can help you get the most out of feature call automatic completion: <br/>1) You can call the auto-complete without an identifier. The auto-complete window will then show the features of the current class. <br/>2) The keyboard shortcut for automatic completion can be changed in the [[Keyboard shortcuts preferences|editor preferences]]. <br/>3) When the auto-completion window is open, typing any character (other than a wild card) that is not ordinarily valid in feature names automatically closes the window. So, you can type '.', ' ' or '(' to close the completion window and start typing the next token straight away.}}
|
||||
|
||||
|
||||
{{note|There are just a few more things you should know about feature call automatic completion: <br/>1) Only identifiers that were already defined when the class was compiled for the last time can be completed, except for local entity names that can always be completed.<br/>2) Only compiled features will appear in the auto-complete window.<br/>3) By default, features from class ANY will be ignored by the auto-complete window. This can be changed in the [[General Editor Preferences|editor preferences]]. }}
|
||||
|
||||
{{note|There are just a few more things you should know about feature call automatic completion: }}
|
||||
* Only identifiers that were already defined when the class was compiled for the last time can be completed, except for local entity names that can always be completed.
|
||||
* Only compiled features will appear in the auto-complete window.
|
||||
* By default, features from class ANY will be ignored by the auto-complete window. This can be changed in the [[General Editor Preferences|editor preferences]] .
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
[[Property:uuid|63b7a88c-86ff-7aef-bf31-05d0ed850e4e]]
|
||||
The callers view [[Image:feature-callers-icon]] display all the features which use the current feature in any way.
|
||||
|
||||
So the callers view includes features which actually call the current feature. But it also includes those features that assign to the current feature (the feature's assigners [[Image:feature-assigners-icon]]), those features that create the current feature (the feature's creators [[Image:feature-creators-icon]]), and those features that use the current feature as an argument to other features.
|
||||
So the callers view includes features which actually call the current feature. Callers also includes those features that assign to the current feature (the feature's assigners [[Image:feature-assigners-icon]]), those features that create the current feature (the feature's creators [[Image:feature-creators-icon]]), and those features that use the current feature as an argument to other features.
|
||||
|
||||
|
||||
In the EiffelStudio preferences it is possible to choose whether callers of the feature's descendant versions should be displayed too (they are by default).
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
[[Property:uuid|32e79152-1e8f-43cd-e014-a83aab18e440]]
|
||||
==About COM and Eiffel==
|
||||
|
||||
{{seealso|<br/>
|
||||
[[EiffelCOM Wizard|EiffelCOM wizard]] <br/>
|
||||
{{seealso| '''See Also''' <br/>
|
||||
[[EiffelCOM Library| EiffelCOM library]] }}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user