[Pharo-project] how to add an entry in World Menu (was: CommandShell)

laurent laffont laurent.laffont at gmail.com
Sun May 30 15:30:52 EDT 2010


On Sun, May 30, 2010 at 1:51 PM, Alain Plantec <alain.plantec at free.fr>wrote:

>
> http://book.pharo-project.org/book/TipsAndTricks/DeclaringSetting
> Alain
>
> Thanks Alain. Do you know how I can browse all methods defining
systemsettings pragma ?

Cheers.

Laurent Laffont

http://pharocasts.blogspot.com/
http://magaloma.blogspot.com/


> Le 28/05/2010 07:33, Alain Plantec a écrit :
>
>  Le 27/05/2010 23:02, laurent laffont a écrit :
>>
>>> See
>>> http://book.pharo-project.org/book/TipsAndTricks/WorldMenuRegistration
>>>
>> yep!
>>
>>>
>>> Can someone write a little example on how to add Settings ? I need this
>>> :)
>>>
>> ok, I will.
>> Cheers
>> Alain
>>
>>>
>>> Cheers,
>>>
>>> Laurent
>>>
>>> On Thu, May 27, 2010 at 9:56 PM, laurent laffont <
>>> laurent.laffont at gmail.com <mailto:laurent.laffont at gmail.com>> wrote:
>>>
>>>    On Thu, May 27, 2010 at 4:45 PM, David T. Lewis
>>> <lewis at mail.msen.com <mailto:lewis at mail.msen.com>> wrote:
>>>
>>>        On Thu, May 27, 2010 at 09:04:37AM +0200, laurent laffont wrote:
>>> > Hi Dave,
>>> >
>>> > I've managed to make it running in Pharo (remove all
>>>        isMorphic ifFalse ...
>>> > stuff, change menu registration, a little work is needed to
>>>        adapt to Pharo
>>> > new settings system). It works (I can publish a package when
>>>        back at home).
>>> >
>>> > Now I suppose you want to keep it running on Squeak, I don't
>>>        know how to
>>> > handle differences on world menu and preferences.
>>> >
>>> > For the MVC part, is there some value in keeping it ?
>>>
>>>        Hi Laurent,
>>>
>>>        Thanks, I would be very interested in seeing your changes,
>>>        especially the
>>>        menu registration fixes.
>>>
>>>
>>>    For menu registration, add
>>>
>>>    CommandShell class>>#menuCommandOn: aBuilder
>>> <worldMenu>
>>>    (aBuilder item: #'Command Shell')
>>>    parent: #Tools;
>>>    action:[self open];
>>>    help: 'Smalltalk simulation of a Unix command shell '.
>>>
>>>    and comment / remove Preferences in CommandShell class>>#initialize.
>>>
>>>
>>>    Laurent
>>>
>>>
>>>        I do want to keep this working on MVC and on other Squeak
>>>        images. What
>>>        I really need to do is repackage CommandShell and OSProcess so
>>>        that
>>>        everything is not all in two giant packages. I originally
>>>        "packaged"
>>>        these many years ago before Squeak had real packages and
>>>        Monticello,
>>>        so I basically separated things into two completely separate
>>>        SAR packages
>>>        that could be independently maintained (even though
>>>        CommandShell and
>>>        OSProcess were intended to work together). That was quite a
>>>        project
>>>        at the time, but it is badly out of date now, so I need to go back
>>>        and make this stuff work properly with Metacello configurations.
>>>
>>>        Dave
>>>
>>>
>>>        _______________________________________________
>>>        Pharo-project mailing list
>>>        Pharo-project at lists.gforge.inria.fr
>>> <mailto:Pharo-project at lists.gforge.inria.fr>
>>>
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> Pharo-project at lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>
>>
>>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20100530/53e1b0b4/attachment-0001.html>


More information about the Pharo-dev mailing list