In fact, settingPragmaProcessor was contributed by Andreas Raab
to facilitate squeak preferences/Pharo settings compatibility :)
Alain
Le 20/06/2011 11:41, Stéphane Ducasse a écrit :
Thanks alain!
Great idea!
On Jun 20, 2011, at 8:36 AM, Alain Plantec wrote:
Hi Hernan,
First you have to declare your own keyword.
To do that, extend SettingTreeBuilder for your application by
adding a #myAppSettings method.
SettingTreeBuilder>>myAppSettings
<settingPragmaProcessor>
"Process a<myAppSettings> pragma"
currentPragma methodClass theNonMetaClass perform: currentPragma selector
with: self.
Then you can use<myAppSettings> as you do with<systemsettings> for the
settings declarations.
In order to open the SettingBrowser, just indicate the keywords you want:
(SettingBrowser browse: #('myAppSettings' 'systemsettings'))
or
(SettingBrowser browse: #('myAppSettings' ))
I will update the settings chapter with that.
Cheers
Alain
Le 20/06/2011 00:18, Hernán Morales Durand a écrit :
Hi Oscar,
I would like to build my own application settings in a separated
Settings browser, can I use<myAppSettings> like the<systemsettings>
pragma? any example code how to do it?
Cheers,
2011/2/8 Oscar Nierstrasz<[email protected]>:
Hi Folks,
There is now a draft chapter on the Settings Framework for "Pharo by Example 2"
available for review:
https://gforge.inria.fr/frs/download.php/28243/Settings.pdf
http://pharobyexample.org/
Cheers,
- on