create instance var accesors from menu (Pharo 3.0)

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

create instance var accesors from menu (Pharo 3.0)

Roelof
Hello,

On squeeze 3.9 you can make them with a menu.

Is there a simular way I can do the same in Pharo 3.0 ?

Roelof

Reply | Threaded
Open this post in threaded view
|

Re: create instance var accesors from menu (Pharo 3.0)

camille teruel
In the browser, right-click on the class in question, then Refactoring -> Class Refactoring -> Generate Accessors
The little "h, a" indicate that the keyboard shortcut is mod+h+a where mod is your OS-specific modifier key for Pharo shortcuts (ctrl on linux and windows, command on osx).

On 1 avr. 2014, at 17:46, Roelof Wobben <[hidden email]> wrote:

> Hello,
>
> On squeeze 3.9 you can make them with a menu.
>
> Is there a simular way I can do the same in Pharo 3.0 ?
>
> Roelof
>


Reply | Threaded
Open this post in threaded view
|

Re: create instance var accesors from menu (Pharo 3.0)

Ben Coman
In reply to this post by Roelof
Roelof Wobben wrote:
> Hello,
>
> On squeeze 3.9 you can make them with a menu.
Yes. You missed that since you couldn't compare your result with the
exact screenshot available in the tutorial.
>
> Is there a simular way I can do the same in Pharo 3.0 ?
>
> Roelof
>
> .
I haven't used that in a very long time - I had thought it had been
removed - but when I look I find you can...
Right-click on YourClass > Refactoring > Class Refactoring > Generate
Accessors.
Thanks for asking. I learnt something new today.

I hope you'll continue with the Squeak 3.9 image for the tutorial.
Otherwise the advice we give to your questions will end up being
frustrating to all.

cheers -ben