Online Eiffel Documentation
EiffelStudio

Console tool

The Console tool lets you run external commands from within EiffelStudio. The Console tool is shown in the following figure:

Defining an input domain

You can type your command in the "Command" region and then press the Launch CommandRun button to launch that command. When a command is running, you can type input data to that command in the "Input" region if necessary. And you can press theStop CommandStop button to terminate a running command. If the command uses a different locale from your default locale, you can specify the desired locale in the "Locale" region where all supported locales are listed. The selected locale will be used for both the input and output of the command. After the command has exited, its return value will be displayed at the bottom line.

Placeholders

In the "Command" region, the following placeholders can be used:

Buffer support

Buffer is a way to refer to text of a class, a feature or text/selected text in an editor tab in external command. Three kinds of buffers are supported:

  • {SOME_CLASS} represents text of SOME_CLASS
  • @{SOME_CLASS} represents selected text in the opened editor tab for class SOME_CLASS
  • {SOME_CLASS}.some_feature represents text of some_feature from SOME_CLASS
  • For example, if you run the command:

    gvim {ANY}

    The text of class ANY will be displayed in a gvim window.

    If you run the command:

    gvim @{ANY}

    And if class ANY is opened in an editor tab and some text is selected there, the selected text will be displayed in a gvim window.

    If you run the command:

    gvim @{ANY}.is_equal

    The text of feature is_equal from class ANY will be displayed in a gvim window.

    If you run the command:

    gvim -d {ANY}.is_equal {APPLICATION}.is_equal

    A gvim windows in diff mode will be opened showing the difference between ANY.is_equal and APPLICATION.is_equal.

    The text used in buffer is stored in a temporary file so whatever change done to that text won't affect the text used in EiffelStudio.

    Auto-completion

    The command area supports auto-completion. You can auto-complete placeholder, class name and feature name, shown in the following pictures:

    Auto-complete placeholder:Auto-complete placeholder

    Auto-complete class name:Auto-complete class name

    Auto-complete feature name:Auto-complete feature name

    Pick and drop

    You can also pick and drop a group/class/feature into the command area to have related name/path inserted.

    See Also
    External commands Editor dialog