Re: [Pharo-users] Opening SettingBrowser on custom settings

2015-04-08 Thread Laura Risani
Mmmm, the second option takes for me a while to open, i'll try using the
first option adding an argument to the pragma.

On Wed, Apr 8, 2015 at 7:25 PM, Laura Risani laura.ris...@gmail.com wrote:

 Hi Alain , hi Nicolai, thank you for your answers.
 In fact what i need is to parametrically show all settings i defined on a
 package, so i'll do the second.


 On Wed, Apr 8, 2015 at 6:23 PM, Nicolai Hess nicolaih...@web.de wrote:



 2015-04-08 18:34 GMT+02:00 Laura Risani laura.ris...@gmail.com:

 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.


 Most (all?) settings use the pragma systemsettings, that means you can
 not filter by the pragma keyword, to only get the settings for one
 subcategory in the default settings.
 But if the settings you want to display are all from one Package, you can
 browse only settings from that package:

 (SettingBrowser new setViewedPackageNames: 'Settings-System')
 open;
 expandAll




 Best,
 Laura






Re: [Pharo-users] Opening SettingBrowser on custom settings

2015-04-08 Thread Laura Risani
Hi Alain , hi Nicolai, thank you for your answers.
In fact what i need is to parametrically show all settings i defined on a
package, so i'll do the second.


On Wed, Apr 8, 2015 at 6:23 PM, Nicolai Hess nicolaih...@web.de wrote:



 2015-04-08 18:34 GMT+02:00 Laura Risani laura.ris...@gmail.com:

 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.


 Most (all?) settings use the pragma systemsettings, that means you can
 not filter by the pragma keyword, to only get the settings for one
 subcategory in the default settings.
 But if the settings you want to display are all from one Package, you can
 browse only settings from that package:

 (SettingBrowser new setViewedPackageNames: 'Settings-System')
 open;
 expandAll




 Best,
 Laura





Re: [Pharo-users] Opening SettingBrowser on custom settings

2015-04-08 Thread Nicolai Hess
2015-04-08 18:34 GMT+02:00 Laura Risani laura.ris...@gmail.com:

 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.


Most (all?) settings use the pragma systemsettings, that means you can
not filter by the pragma keyword, to only get the settings for one
subcategory in the default settings.
But if the settings you want to display are all from one Package, you can
browse only settings from that package:

(SettingBrowser new setViewedPackageNames: 'Settings-System')
open;
expandAll




 Best,
 Laura



Re: [Pharo-users] Opening SettingBrowser on custom settings

2015-04-08 Thread Alain Plantec via Pharo-users
---BeginMessage---

 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:

SettingTreeBuilderbanana
settingPragmaProcessor
Process a banana pragma »
banana just works as a regular setting
^ self systemsettings

then define your banana settings:

BananaSetting classmyBananaSettingOn: aBuilder
banana
(aBuilder group: #Banana)

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





 
 Best,
 Laura

---End Message---