Andreas Raab uploaded a new version of PreferenceBrowser to project The Trunk:
http://source.squeak.org/trunk/PreferenceBrowser-ar.42.mcz==================== Summary ====================
Name: PreferenceBrowser-ar.42
Author: ar
Time: 3 January 2010, 12:01:24 pm
UUID: 1685275b-f40d-e44a-aa43-41ebacfd4d2e
Ancestors: PreferenceBrowser-nice.41
Guard unload operations of view registries. When unloading the entire package the unload can fail due to previously removed view registry.
=============== Diff against PreferenceBrowser-nice.41 ===============
Item was changed:
----- Method: PBNumericPreferenceView class>>unload (in category 'class initialization') -----
unload
+ "Unload order is not guaranteed so guard against failure"
+ [PreferenceViewRegistry ofNumericPreferences unregister: self] on: Error do:[].!
- PreferenceViewRegistry ofNumericPreferences unregister: self.!
Item was changed:
----- Method: PBBooleanPreferenceView class>>unload (in category 'class initialization') -----
unload
+ "Unload order is not guaranteed so guard against failure"
+ [PreferenceViewRegistry ofBooleanPreferences unregister: self] on Error do:[].!
- PreferenceViewRegistry ofBooleanPreferences unregister: self.!
Item was changed:
----- Method: PBColorPreferenceView class>>unload (in category 'class initialization') -----
unload
+ "Unload order is not guaranteed so guard against failure"
+ [PreferenceViewRegistry ofColorPreferences unregister: self] on: Error do:[]!
- PreferenceViewRegistry ofColorPreferences unregister: self.!
Item was changed:
----- Method: PBWindowColorPreferenceView class>>unload (in category 'class initialization') -----
unload
+ "Unload order is not guaranteed so guard against failure"
+ [self viewRegistry unregister: self] on: Error do:[]!
- self viewRegistry unregister: self.!
Item was changed:
----- Method: PBHaloThemePreferenceView class>>unload (in category 'class initialization') -----
unload
+ "Unload order is not guaranteed so guard against failure"
+ [PreferenceViewRegistry ofHaloThemePreferences unregister: self] on: Error do:[]!
- PreferenceViewRegistry ofHaloThemePreferences unregister: self.!
Item was changed:
----- Method: PBTextPreferenceView class>>unload (in category 'class initialization') -----
unload
+ "Unload order is not guaranteed so guard against failure"
+ [PreferenceViewRegistry ofTextPreferences unregister: self] on: Error do:[]!
- PreferenceViewRegistry ofTextPreferences unregister: self.!