Getting Started


Importing and loading sample applications

As you develop your program, you might want to look at some VAGen sample parts. Applications that contain sample VAGen parts were stored on your system in .DAT files when you installed VisualAge Generator. To look at these sample parts, you'll need to import the .DAT file and load the sample applications it contains. For this tutorial you'll import from EZEREMPS.DAT and EZERSMPS.DAT and load the sample applications HptSampleEzerempParts and HptSampleEzersmpParts.

Importing sample applications

If your installation gives you access to a common repository (that is, you are working from a client, not from a standalone install), you will need two pieces of information to do the following tasks:

You'll then need to copy EZEREMPS.DAT and EZERSMPS.DAT to that directory and specify it at the appropriate point in the following task.

To import an application, perform the following steps:

  1. From the Applications menu, select Import/Export > Import Applications.

    A prompt is displayed asking for the IP address or host name of the machine where the .DAT files are located.

    Note:If you are using a standalone system, a system file selection window is displayed, so you can skip the following step.
  2. Enter the host name for the machine where EZEREMPS.DAT resides and select OK.

    A file selection window is displayed.

  3. In the File name field, type the complete path name to EZEREMPS.DAT.
  4. Select Open.

    A selection window is displayed, prompting you for the name and version of the application you want to import.

  5. From the Names pane, select HptSampleEzerempParts.
  6. In the Versions pane, select the version name and click on the top arrow button.
  7. Select OK.

    The selection window closes. A statement indicating that the import is complete is displayed in the System Transcript window when the import is finished.

  8. Repeat these steps but select EZERSMPS.DAT and HptSampleEzersmpParts.
  9. Select OK.

    The selection window closes. A statement indicating that the import is complete is displayed in the System Transcript window when the import is finished.

Loading sample applications

Now that you have imported the sample applications, you must load them into your image to work with them.

To load the sample applications:

  1. From the VisualAge Organizer window, select Applications>Load>Available Applications.
    Tip:You can use the context menus in the VisualAge Organizer window to make many tasks faster and easier. To display a context menu, click with mouse button 2 in the appropriate pane of the VisualAge Organizer window.

    The selection window, shown in Figure 29, displays a list of all the available applications in the library that are not loaded into your image.

    Figure 29. List of Applications

    Figure vaload1 not displayed.

  2. From the Names pane, select HptSampleEzerempParts.
  3. In the Editions pane, select the edition name and click on the top arrow button.
  4. Repeat the previous two steps to add HptSampleEzersmpParts.
  5. Select OK.

    The applications you selected are displayed in the Applications pane of the VisualAge Organizer window. If you don't see them in the Applications pane, from the Applications menu, select View>Show All Applications.

Note:You cannot load all of the sample applications simultaneously because some of them contain VAGen parts with the same name. This way you cannot accidently overwrite parts you already have in your image with parts of the same name in another application. If you are working with samples, the easiest solution is to unload the sample application that contains the conflicting part names and load the other sample application. Under other circumstances, if the parts contained by two applications are identical, it is better to create a new application to contain the common parts, delete those parts from the two applications, and make the new application a prerequisite for the other two.

For more information on managing applications, refer to the IBM Smalltalk User's Guide.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]