Skip to content

Commit

Permalink
Do not register to ClassReorganized
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jecisc committed Jul 13, 2023
1 parent a3b7420 commit 92ffe40
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/NewTools-ChangeSorter/SpChangeSorterPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
Expand Down

0 comments on commit 92ffe40

Please sign in to comment.