Chapter 2. Working With Projects 
When you use JEvolve, you operate in a workspace. A workspace comprises one or more projects. Each project is a collection of source files and associated parameters.

When you start JEvolve, an empty environment appears as in the following figure.

Fig. 2.1

You could start by creating a new workspace. Choose File->New Workspace from the menu. A file selection dialog appears.

Fig. 2.2

Move to the desired directory and type a workspace name. JEvolve workspace files have a .jrc extension. This creates an empty workspace that has no associated projects. See the figure below.

Fig. 2.3

The next step is to create two projects, one being the reference and the other, the evolved one. Select Project->New from the menu (another way is to right mouse click on the workspace name and select Add New Project to Workspace). This displays a dialog where you will need to enter the project name and its location. Project files have a .jff extension.

Fig. 2.4

Since we have already created the workspace, leave the default workspace selection in the dialog as it is.

The next dialog lets you define the set of Java files that are part of this project. The figure below shows the dialog. 

Fig. 2.5

Using the same procedure, define the other project and its source files. At this point, the project view reveals two projects in the workspace as in the figure below.

Fig. 2.6

If you select the Class View tab, you will find that class details are not available since we have not yet compiled the sources for analysis.

Fig. 2.7

If you wish to open any of the source files in the editor, just double click on the file name. The editor displays the file in its window.

Fig. 2.8

Although in this example we have created two projects in a workspace, JEvolve allows you to create as many projects as you want in a workspace. This might be useful if, for example you wish to study the evolution of an application across several versions.

The Active Project

Although a workspace can contain multiple projects, at any time, only one of them is active. Most of the options in the Project menu apply to the active project. To make a project active, right click the mouse on the project and from the context-sensitive menu, select Set as Active Project. An active project appears in bold in the project view.

Setting Project Options

After creating projects, you need to specify the class path to be used in the context of each project. To do this, select the project by clicking on it in the project view. Press the right mouse button to bring up the context sensitive menu. Select Settings from this menu. This will display a dialog box wherein you can enter the class path details (multiple entries are separated by semicolon).

Fig. 2.9

Make sure that the correct class path setting is defined for each project in the workspace.

We are now ready to start our analysis of the two projects.
 

Index     Top    Previous    Next

Copyright © Man Machine Systems 1997-2001.
All Rights Reserved.
We acknowledge all trademarks.