Example: Unlinking all instances of a class
Note:
Prior to executing the code in any of these examples, load packaging instructions and create an instance of EaComponentMapManager called ComponentMaps by executing Step 1 of Example: Unloading an application and its subapplications
Suppose you want to unlink instances of the class EmTimeStamp and unload them into a file. To do this, you use unlinkInstancesOfClasses: as shown in the following code fragment:
"Step 2: Unlink instances of the class EmTimeStamp and unload them into removed.ic."
| result |
(result := ApplicationDumper new)
...
unlinkInstancesOfClasses: (Array with: EmTimeStamp);
...
dumpIntoFileNamed: 'removed.ic' path: '.' using: ComponentMaps.
...
Last modified date: 01/29/2015