Programmatically changing settings values

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

Programmatically changing settings values

Pablo Herrero
Hey everyone,

I would like to change some of the environment settings by code,
specifically I would like to change the default compiler, from the
menu you would do: World Menu >> System >> Settings  >> Compiler >>
Default Compiler , and then set you preference there. How can you do
that programmatically?

Thanks in advance!,
Pablo

Reply | Threaded
Open this post in threaded view
|

Re: Programmatically changing settings values

Marcus Denker-4

> On 09 Jan 2015, at 18:27, Pablo Herrero <[hidden email]> wrote:
>
> Hey everyone,
>
> I would like to change some of the environment settings by code,
> specifically I would like to change the default compiler, from the
> menu you would do: World Menu >> System >> Settings  >> Compiler >>
> Default Compiler , and then set you preference there. How can you do
> that programmatically?

Yes!

The gobal compiler can be changed by

SmalltalkImage compilerClass: Compiler

        Marcus

Reply | Threaded
Open this post in threaded view
|

Re: Programmatically changing settings values

Ben Coman
Or to teach you how to fish rather than just feeding you :)
Right click on the option and select "Display export action string".

Actually, that has some StartupAction scaffolding probably not relevant is such cases, and it would be good to  have an option for that. 
I'd like to change it from
  Right-click on setting
  > Display export action string

to this...
  Right-click on setting
  > Set programatically
     > Display Workspace string
     > Display StartupAction string 
any objections?


On Sat, Jan 10, 2015 at 5:30 AM, Marcus Denker <[hidden email]> wrote:

> On 09 Jan 2015, at 18:27, Pablo Herrero <[hidden email]> wrote:
>
> Hey everyone,
>
> I would like to change some of the environment settings by code,
> specifically I would like to change the default compiler, from the
> menu you would do: World Menu >> System >> Settings  >> Compiler >>
> Default Compiler , and then set you preference there. How can you do
> that programmatically?

Yes!

The gobal compiler can be changed by

SmalltalkImage compilerClass: Compiler

        Marcus