[Pharo-project] Utilities >> startUp registration??
does anybody know if this is of any use? startUp SystemChangeNotifier uniqueInstance notify: self ofAllSystemChangesUsing: #event:. event: anEvent "Hook for SystemChangeNotifier" (anEvent isCommented and: [anEvent itemKind = SystemChangeNotifier classKind]) ifTrue: [self noteMethodSubmission: #Comment forClass: anEvent item]. ((anEvent isAdded or: [anEvent isModified]) and: [anEvent itemKind = SystemChangeNotifier methodKind]) ifTrue: [anEvent itemRequestor ifNotNil: [self noteMethodSubmission: anEvent itemSelector forClass: anEvent itemClass]]. ((anEvent isAdded or: [anEvent isModified]) and: [anEvent itemKind = SystemChangeNotifier methodKind]) ifTrue:[ InMidstOfFileinNotification signal ifFalse: [Utilities changed: #recentMethodSubmissions]. ].
This is used for "Utilities recentMethodSubmissions". Some tools in the image still use it. The #update: part was used by Monticello to track method changes, but is no longer active (but the code is still there). Lukas 2009/12/31 Stéphane Ducasse <stephane.ducasse@inria.fr>:
does anybody know if this is of any use?
startUp     SystemChangeNotifier uniqueInstance notify: self ofAllSystemChangesUsing: #event:.
event: anEvent     "Hook for SystemChangeNotifier"
    (anEvent isCommented and: [anEvent itemKind = SystemChangeNotifier classKind])         ifTrue: [self noteMethodSubmission: #Comment forClass: anEvent item].     ((anEvent isAdded or: [anEvent isModified]) and: [anEvent itemKind = SystemChangeNotifier methodKind])         ifTrue: [anEvent itemRequestor ifNotNil: [self noteMethodSubmission: anEvent itemSelector forClass: anEvent itemClass]].     ((anEvent isAdded or: [anEvent isModified]) and: [anEvent itemKind = SystemChangeNotifier methodKind]) ifTrue:[         InMidstOfFileinNotification signal             ifFalse: [Utilities changed: #recentMethodSubmissions].     ]. _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Lukas Renggli http://www.lukas-renggli.ch
participants (2)
-
Lukas Renggli -
Stéphane Ducasse