Loaded and removing methods
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 VA Smalltalk image. These methods are named loaded and removing. The loaded method is a good place to do things like the following:
Add your parts to the Composition Editor's parts palette.
Load any message files that your parts use.
Initialize class variables.
The removing method is a good place to do things like:
Remove your parts from the Composition Editor's parts palette.
Unregister any message files you loaded.
You will be working primarily with your edit-time application to accomplish these tasks. In the Organizer, select MyEditSamplePartsApp and then open the MyEditSamplePartsApp part.
Now, let's look at some examples.
Last modified date: 01/29/2015