On issue Issue 1155: "Renaming of a class do not changes title of a System Browser"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

On issue Issue 1155: "Renaming of a class do not changes title of a System Browser"

csrabak
Pertaining the bug #1155 http://code.google.com/p/pharo/issues/detail?id=1155, it seems to me that we need to register the change for the class name so the SystemWindow gets updated:

O2PackageBrowser class>>registerForNotifications
        Smalltalk at: #SystemChangeNotifier ifPresent: [:cls |
        (cls uniqueInstance)
                noMoreNotificationsFor: self;
                notify: self ofSystemChangesOfItem: #class change: #Added using: #classModified:;
                notify: self ofSystemChangesOfItem: #class change: #Modified using: #classModified:;
                notify: self ofSystemChangesOfItem: #class change: #Renamed using: #classModified:;
                notify: self ofSystemChangesOfItem: #class change: #Commented using: #classModified:;
                notify: self ofSystemChangesOfItem: #class change: #Recategorized using: #classMoved:;
                notify: self ofSystemChangesOfItem: #class change: #Removed using: #classModified:;
                notify: self ofSystemChangesOfItem: #method change: #Added using: #methodModified:;
                notify: self ofSystemChangesOfItem: #method change: #Modified using: #methodModified:;
                notify: self ofSystemChangesOfItem: #method change: #Recategorized using: #methodModified:;
                notify: self ofSystemChangesOfItem: #method change: #Removed using: #methodModified:
        ].

However I could not find how to assemble a #notify:chnage:using: message in order to have the model (O2PackageBrowser) notified. . .

If some more knowledgeable on this hierarchy can enlighten me I think we can solve this easily, no?

--
Cesar Rabak
 

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project