Getting Shout in Pharo 1.1

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

Getting Shout in Pharo 1.1

Alexandre Bergel-4
Hi Andy,

Little needs to be done to have a preliminary version of Pharo 1.1.  
One of remaining things is the method SHWorkspace class >> initialize  
which uses the former registration mechanism. Would it be possible to  
replace this method by:

initialize
         ((TheWorldMenu respondsTo: #registerOpenCommand:)
                and: [((TheWorldMenu class >>#registerOpenCommand:) sendsSelector:  
#deprecated:) not])
          ifTrue: [TheWorldMenu registerOpenCommand: {'Shout  
Workspace'. {self. #open}}]

and add:

menuCommandOn: aBuilder
        <worldMenu>
        (aBuilder item: #'SH Workspace')
                parent: #Tools;
                action:[ self new open ];
                icon: self taskbarIcon.
               
I guess this change are squeak compatible.

Cheers,
Alexandre



--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






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