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