From 92ffe40fc9c6febabfa2590f565ec0ce09d1d86b Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Thu, 13 Jul 2023 11:10:18 +0200 Subject: [PATCH] Do not register to ClassReorganized ClassReorganized is raised always with ProtocolAdded, ProtocolRemoved and ProtocolRenamed. It will soon be a deprecated alias of ProtocolAnnouncement in Pharo 12 so that we do not duplicate all protocol announcements and here is a PR to clean this in NewTools --- .../SpChangeSorterPresenter.class.st | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/NewTools-ChangeSorter/SpChangeSorterPresenter.class.st b/src/NewTools-ChangeSorter/SpChangeSorterPresenter.class.st index ce7fc9bd9..698a538e0 100644 --- a/src/NewTools-ChangeSorter/SpChangeSorterPresenter.class.st +++ b/src/NewTools-ChangeSorter/SpChangeSorterPresenter.class.st @@ -388,11 +388,9 @@ SpChangeSorterPresenter >> initialize [ { #category : #initialization } SpChangeSorterPresenter >> initializeAnnouncements [ - SystemAnnouncer uniqueInstance weak - when: - ClassAdded , ClassCommented , ClassRecategorized , ClassModifiedClassDefinition , ClassRemoved , ClassRenamed - , ClassReorganized , MethodAdded , MethodModified , MethodRecategorized , MethodRemoved , ProtocolAdded - , ProtocolRemoved + SystemAnnouncer uniqueInstance weak + when: ClassAdded , ClassCommented , ClassRecategorized , ClassModifiedClassDefinition , ClassRemoved , ClassRenamed , MethodAdded , MethodModified + , MethodRecategorized , MethodRemoved , ProtocolAnnouncement send: #updateClassesList to: self ]