mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2026-04-05 09:39:31 +02:00
Author:halw
Date:2009-11-06T22:44:34.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@352 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
[[Property:uuid|9f8de904-3d17-7ce2-1df8-f4824fab5ae3]]
|
||||
From EiffelStudio, you can define up to 10 external commands. Those commands will have their output redirected in the output pane of the context tool. You can execute them through the Tools menu. A typical usage is to use those external commands to integrate with your source control management solution (e.g. CVS, Visual SourceSafe,...)
|
||||
|
||||
|
||||
==Defining external commands==
|
||||
|
||||
To define your own command, select "External commands..." in the Tools menu. Then the following dialog will appear:
|
||||
|
||||
|
||||
@@ -20,7 +23,7 @@ To add your first command, simply click on the "Add..." button and the following
|
||||
[[Image:external-commands-dialog-editor]]
|
||||
|
||||
|
||||
In this dialog you can give a name to the command, this name will be displayed in the Tools menu. The index is the position among the external commands of the command in the Tools menu. The command line is the command you want to execute. In order to execute correctly, the application you will execute needs to be in your PATH environment variable or if it is not you must provide an absolute path to the external command. And you can specify the working directory for that command.
|
||||
In this dialog you can give a name to the command, this name will be displayed in the Tools menu. The index (0 thru 9) is the position among the external commands of the command in the Tools menu. The command line is the command you want to execute. In order to execute correctly, the application you will execute needs to be in your PATH environment variable or if it is not you must provide an absolute path to the external command. And you can specify the working directory for that command.
|
||||
|
||||
In addition to the external command name, you can pass as many options as you want plus the following placeholders that will be translated before calling the external command:
|
||||
* $class_name: this will be replaced by the name in lower case of the targeted class in editor
|
||||
@@ -32,5 +35,25 @@ In addition to the external command name, you can pass as many options as you wa
|
||||
* $f_code: this will be replaced by the F_code directory of current system, if defined
|
||||
|
||||
|
||||
==Executing external commands==
|
||||
|
||||
When you look at the EiffelStudio '''Tools''' menu, you will see that the external commands that you have added have also been added to the bottom of the menu. In the figure below, you see the command we added at index 4:
|
||||
|
||||
|
||||
[[Image:External commands tools menu]]
|
||||
|
||||
|
||||
To execute that command, you can select it from the '''Tools''' menu, or you can use the keyboard shortcut provided. In this case the keyboard shortcut is the default value of '''Alt+4'''.
|
||||
|
||||
The shortcuts for the command indexes can be changed in the EiffelStudio preferences by following the preference path:
|
||||
<code>
|
||||
shortcuts -> external_commands
|
||||
</code>
|
||||
|
||||
External commands execute in the context of the [[Console tool]]. The console tool should appear automatically, but you can make it visible by following the menu path:
|
||||
<code lang="text">
|
||||
View -> Tools -> Console
|
||||
</code>
|
||||
Then you can dock the console tool, if you would like to have it constantly visible.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user