--- Begin Message ---
> Le 8 avr. 2015 à 18:34, Laura Risani <laura.ris...@gmail.com> a écrit :
> 
> Hi all,
> 
> Say that i wanted to open a SettingBrowser showing only the settings defined 
> by 'SystemSystemSettings class >> systemSettingOn:' . How could i do that? 
> 
> There is a method 'SettingBrowser >> browse:' . Based on it's comment i tried 
> adding to systemSettingOn: the pragma <banana>, and then sending ' 
> SettingBrowser browse:#('banana') ' but it didn't work.

Hello Laura,

try this:

SettingTreeBuilder>>banana
        <settingPragmaProcessor>
        "Process a <banana> pragma »
        "banana just works as a regular setting"
        ^ self systemsettings

then define your banana settings:

BananaSetting class>>myBananaSettingOn: aBuilder
        <banana>
        (aBuilder group: #Banana)

then try:
SettingBrowser browse: #('banana’)





> 
> Best,
> Laura


--- End Message ---

Reply via email to