User's Guide

Generating archival code

To enable code sharing, you must first generate the archival code for the application. Archival code is Smalltalk code that reconstructs a part's definition instead of reading the part from the persistent object file. Once generated, the code can be filed out of your VisualAge development environment and subsequently filed in to someone else's VisualAge development environment.

In order to capture all of your application code, you must generate archival code for each visual part, nonvisual part, and database access set in your application. You don't need to generate code for Smalltalk classes, including the two classes that VisualAge makes for you when you create a new part.

Let's walk through the steps:

Generating code for parts

First, create a new VisualAge application to hold the archival code, such as NewAppArchive. Change its prerequisites to include AbtAppBldrSmalltalkEditorApp, plus the application for which you are generating code. Next, generate the code:

  1. Select the application in the VisualAge Organizer.
  2. From the Applications menu, select Generate > Archival Code.
  3. Select your archive application's name (such as NewAppArchive) as the target for the generated code, and select OK.

To generate archival code for only a few parts or database access sets, select the parts or access sets and then select Generate > Archival Code from the Parts menu.

Any problems encountered when you generate archival code are written to the System Transcript window. You should resolve any errors before you try to file the code into another image.


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