- 17.05 (released) ...
EiffelStudio first comes up with a window and a dialog on top of it; the dialog looks like this (from here on the look-and-feel will be slightly different on platforms other than Windows, but the content will be the same):
As this is our first project we want to "
Add Project...". We could also
Create project", which would let you select one among the common schemes -- basic application, graphical Windows application, graphical multi-platform application, Microsoft .NET application -- and set up everything for you.
Open project", which would let you open a previously added project.
In future sessions you'll probably use "
Create project" for a new project, as it takes care of generating a root class and configuration file for you, and
Open project" to open an existing project.
Right now you first have to add the project, so click on the
Add Project... button. This brings up a File Explorer inviting you to select an ECF file. The file you want is the file
in the directory "
$ISE_EIFFEL\examples\studio\tour or the copy that you have made). The ".ecf" file is an Eiffel Configuration File which contains the information necessary for construction of an Eiffel project.
So, use the File Explorer to find and select the file
Click the button labeled
Open to confirm. This starts compilation of your project.
During Eiffel compilation, you can observe the successive compilation steps, or "degrees", in the Outputs tool. The bulk of our little project is the EiffelBase library, which the EiffelStudio installation procedure has precompiled; as a result, there are only a few extra classes to compile, and the process is almost instantaneous on a state-of-the-art computer.
After Eiffel compilation completes you will see the message
Eiffel Compilation Succeededin the Outputs tool.
At this stage your project has finished compiling.
So, congratulations! You have successfully compiled your first Eiffel project. More precisely your project has been "melted". Strange terminology, you may think; in a later section we'll see the derivation of the names used in the compilation process.
Executing the system
This little application doesn't use graphics or any other fancy stuff. It simply creates some objects and displays some information. Output is accomplished by using the default Eiffel I/O features (from the EiffelBase classes
STANDARD_FILES), and that output goes to a console. On Unix/Linux and OpenVMS it's the window from which you started EiffelStudio. On Windows, by default, it's a new console window that comes up when and if the system does its first output operation, and stays up you dismiss it:
The message "
Press Return to finish the execution..." would not appear if you executed the system from outside of EiffelStudio, for example from a command line. Its purpose within EiffelStudio is clear: to let you see the console output; without it, the console would go away at the end of execution. (None of this applies to Unix/Linux/OpenVMS because no new console window was created when we executed the system.)
Before closing the console window, if you look at the main EiffelStudio window (by moving the console window aside) you will notice that it looks different than it did before. This is because EiffelStudio is now in debug mode, so it shows the fields useful in monitoring, controlled execution, and debugging. But we'll look at all this later. For the moment just dismiss the console by following the advice to "
Press Return to finish the execution...": hit the Return or Enter key.
- Parent <Using AutoTest>