Creating a new service
rrobbes
rrobbes at info.unicaen.fr
Fri Oct 1 07:09:05 UTC 2004
Well, for a start the version on Squeakmap is not up to date
(I have another one that I will publish soon, with much cleaner
stuff).
For now, I think that you should rescan the available services by
executing :
Service initialize
In the next version, I plan to include a 'create new service'
Service, taking care of this stuff.
Cheers,
Romain
Alexandre Bergel writes:
> Hi!
>
> I would like to create a new service to open a workspace.
>
> I created on the class side of Workspace a method:
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> registeredServices
> ^ {
> Service new
> label: 'open Workspace';
> shortLabel: 'Workspace';
> description: 'Open a workspace';
> action: [:class | Workspace new openAsMorphLabel: 'Workspace' inWorld: World];
> shortcut: '<c-k>';
> categories: #('open')
> }
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>
> The following is true.
> 'open Workspace' asService isNil
>
> What I missunderstood?
>
> Cheers,
> Alexandre
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel http://www.iam.unibe.ch/~bergel
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
More information about the Squeak-dev
mailing list
|