Author:halw

Date:2009-11-17T18:05:58.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@358 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
halw
2009-11-17 18:05:58 +00:00
parent d9bc9f2e38
commit 64500f901e
2 changed files with 21 additions and 3 deletions

View File

@@ -16,13 +16,21 @@ You can define external commands by using the [[External commands editor dialog|
===Defining a Subversion command===
{{note|The notation used in the examples on this page will work for Microsoft Windows. Other platforms may require different command formats.}}
Suppose that you want to add an external command to EiffelStudio to Subversion's ''update'' command (''update'' brings your working copy up-to-date with the repository). You can define a command with an appropriate name, say ''svn update'', as shown below.
[[Image:subversion-update-command-01|define svn update]]
The command line invokes Subversion and executes the ''update'' command. The placeholder '''$file_name''' substitutes the name of the file associated with the class currently targeted in the editor pane. So if you were editing class <code>MY_CLASS</code> which exists in file <code>my_class.e</code>, then that file name would be used in the Subversion update command executed.
The command line:
<code /lang="text">
svn up $file_name
</code>
invokes Subversion and executes the ''update'' command. The placeholder '''$file_name''' substitutes the name of the file associated with the class currently targeted in the editor pane. So if you were editing class <code>MY_CLASS</code> which exists in file <code>my_class.e</code>, then that file name would be used in the Subversion update command executed.
Once the command is defined, it will be accessible through EiffelStudio's Tools menu, either by selecting it explicitly or by using its associated keyboard short cut, <code>Alt+0</code>, in the case of this example.
@@ -50,7 +58,13 @@ It's possible that in some cases, for example that of ''svn revert'', you might
[[Image:subversion-update-command-02|Confirmable svn update command]]
Here the command line first asks for confirmation before executing the command.
Here the command line:
<code /lang="text">
echo Revert changes to $class_name? && pause && svn revert $file_name
</code>
first asks for confirmation before executing the command.
When you execute this command you will see the confirmation prompt in EiffelStudio's [[Console tool|Console tool]]:

View File

@@ -54,7 +54,11 @@ If you choose a value of '''False''', then the Outputs tool will remain visible
The preference '''External compilation output prompted ''' (''C output panel prompted'', in earlier versions) controls whether the [[External compilation pane|External compilation pane]] appears whenever an external compilation (usually a C compilation) occurs.
The default value is '''False''', so the External compilation pane does not appear automatically when an external compilation occurs.
The default value is '''False'''. In this case, the External compilation pane does not appear automatically when an external compilation occurs, except under the following conditions:
# The Outputs tool is already displayed, and
# The Eiffel Compilation pane is active.
When an external compilation is performed, and the Eiffel Compilation output pane is already active, the External Compilation pane will become the active pane. When the external compilation completes, under most circumstances the Eiffel Compilation pane will become active again. However, the Eiffel Compilation pane will not become active if there were external compilation errors, or if you activated some other output pane during the external compilation.