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.
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:
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. |
A file selection window is displayed.
A selection window is displayed, prompting you for the name and version of the application you want to import.
The selection window closes. A statement indicating that the import is complete is displayed in the System Transcript window when the import is finished.
The selection window closes. A statement indicating that the import is complete is displayed in the System Transcript window when the import is finished.
Now that you have imported the sample applications, you must load them into your image to work with them.
To load the sample 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.
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.