Hi Denis,

Thanks! In dead, I used incorrect context.

Juraj

> On Dec 5, 2017, at 18:22, Denis Kudriashov <dionisi...@gmail.com> wrote:
> 
> Hi Juraj.
> 
> I repeated your steps and it works for me:
> In "vars" mode I have "Say Hello" in context menu of selected variable (just 
> before "Show in method browser" item).
> 
> Maybe you were looking at context menu of class pane? In that case command 
> activator should be defined as:
> ClyHelloCommand class>>systemBrowserClassMenuActivator
>         <commandActivator>
>         ^CmdContextMenuCommandActivator byRootGroupItemFor: 
> ClyClassSystemBrowserContext
> 
> 
> 
> 
> 2017-12-05 18:12 GMT+01:00 Juraj Kubelka <juraj.kube...@icloud.com 
> <mailto:juraj.kube...@icloud.com>>:
> Hi,
> 
> To implement a context menu item. I have implemented a new class:
> 
> -=-=-=-
> CmdCommand subclass: #ClyHelloCommand
>         instanceVariableNames: ''
>         classVariableNames: ''
>         package: 'Calypso-Extensions’
> -=-=-=-
> 
> with methods:
> 
> -=-=-=-=-
> ClyHelloCommand class >> #systemBrowserMenuActivator
>         <commandActivator>
> 
>         ^CmdContextMenuCommandActivator byRootGroupItemFor: 
> ClyVariableSystemBrowserContext
> 
> ClyHelloCommand >> # defaultMenuItemName
>         ^'Say Hello’
> 
> ClyHelloCommand >> # execute
>         self inform: 'Hello'
> -=-=-=-=-
> 
> But it does not display in the context menu. I expect it next to “Generate 
> accessors” as I took this command as an example.
> What do I miss?
> 
> Thanks,
> Juraj
> 

Reply via email to