Your application includes a special class that always has the same name as the application itself. For example, MyRunSamplePartsApp contains a class called MyRunSamplePartsApp, and MyEditSamplePartsApp contains a class called MyEditSamplePartsApp. These classes include special methods that run when the application is loaded or removed from a VisualAge image. These methods are named loaded and removing. The loaded method is a good place to do things like the following:
The removing method is a good place to do things like:
You will be working primarily with your edit-time application to accomplish these tasks. In the VisualAge Organizer, select MyEditSamplePartsApp and then open the MyEditSamplePartsApp part.
Now, let's look at some examples.