Skip to content

Commit

Permalink
Merge pull request #1824 from jecisc/system-announcer
Browse files Browse the repository at this point in the history
Update references to SystemAnnouncer
  • Loading branch information
MarcusDenker authored Sep 27, 2024
2 parents bdc3935 + 530b1b0 commit bd041b9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Iceberg/IceSystemEventListener.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,18 @@ IceSystemEventListener class >> initialize [
IceSystemEventListener class >> registerSystemAnnouncements [

self unregisterSystemAnnouncements.
SystemAnnouncer uniqueInstance weak

self codeChangeAnnouncer weak
when: ClassAnnouncement send: #handleClassChange: to: self;
when: MethodAnnouncement send: #handleMethodChange: to: self;
when: PackageTagAnnouncement send: #handlePackageChange: to: self;
when: MCVersionLoaderStopped send: #handleVersionLoaded: to: self.
when: PackageTagAnnouncement send: #handlePackageChange: to: self.

self codeSupportAnnouncer weak when: MCVersionLoaderStopped send: #handleVersionLoaded: to: self
]

{ #category : 'class initialization' }
IceSystemEventListener class >> unregisterSystemAnnouncements [

SystemAnnouncer uniqueInstance unsubscribe: self

self codeSupportAnnouncer unsubscribe: self.
self codeChangeAnnouncer unsubscribe: self
]

0 comments on commit bd041b9

Please sign in to comment.