Getting Started


Importing and loading samples

As you develop your program, you might want to look at some VAGen sample parts. Packages 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 files and load the sample projects it contains. For this tutorial you'll import EZEREMPJ.DAT and EZERSMPJ.DAT and load the samples projects they contain.

For a brief description of the samples, see Appendix B, Installing samples for VisualAge Generator Developer on Java.

Importing sample projects

To import the sample projects:

  1. From the Selected menu, select Import.

    The Import SmartGuide is displayed.

  2. Select Repository, then select Next.

    A file selection window is displayed.

  3. Select Local repository.
  4. In the Repository name field, type the complete path name to EZEREMPJ.DAT.

    The files will be in c:\install_dir\IDE\program\samples, where install_dir is the directory to which you installed VisualAge Generator.

  5. Select Projects.
  6. Select the Details button.

    The Project import window is displayed.

  7. From the Projects list, select VAGen Employee Sample.
    Note:Ensure that a check mark is shown in the check box. If the project is highlighted but no check mark is displayed, it is not selected. To select it, click directly on the check box.
  8. Select OK.
  9. Select Finish.

Repeat these steps but select EZERSMPJ.DAT to import the VAGen Ezersmp Sample project.

Note:You can use this same procedure to import a similar project, VAGen Staff Sample, from STAFFJ.DAT. However, because it includes parts with the same name as those included in the samples you will load in the following section, you should not load all three projects into your workspace at the same time.

Loading the sample projects

To load the sample projects:

  1. In the Workbench, All Projects list, click with mouse button 2 to display the Selected context menu.

    This context menu displays the same options as the Selected menu above the tool bar.

  2. From the context menu select Add>Project.

    The Add Project SmartGuide is displayed.

    Figure 38. Add Project SmartGuide

    Add Project SmartGuide

  3. Select Add projects from the repository.
  4. From the Available Project Names pane, select VAGen Employee Sample.
  5. In the Available Editions pane, select the latest edition name.
  6. From the Available Project Names pane, select VAGen Ezersmp Sample .
  7. In the Available Editions pane, select the latest edition name and select Finish.

    The projects you selected are displayed in the All Projects list.

For more information on managing projects and packages, refer to the online help for VisualAge for Java.


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