On 12-10-15 17:12, Thierry Goubier wrote:
for the system announcements, I believe you only need to
follow MethodModified and MethodRemoved.

Ah nice, that works. Just that deleting morphs directly when
reacting to the methodRemoved announcement tends to crash the image...
I've had to replace the last line in

CodePanel>>methodRemoved: anAnnouncement
  | allCards nonMetaMethodClass method |
        
  allCards := self submorphs flatCollect: [ :each | each submorphs].
  nonMetaMethodClass:=anAnnouncement methodClass.
  method := anAnnouncement method.
  allCards select: [ :aCard |
    (aCard selectedClass = nonMetaMethodClass) and: [
      aCard selector = method selector]]
  thenDo: [ :card | card delete ]

by
  thenDo: [ :card | WorldState addDeferredUIMessage: [ card delete ]]

Now you just need to load the newest GT-Spotter-AndreiChis.325 for it to
work in Pharo 5

Stephan


Reply via email to