[Pharo-project] Application settings
I want to use drgeo specific setting and let the user browser drgeosettings only. As documented in the SettingBrowser comment, I defined: drgeoSettingsOn: aBuilder <drgeosettings> (aBuilder group: #drgeo) label: 'Dr. Geo'; description: 'All Dr. Geo related settings' translated; noOrdering; with: [ Then to browse drgeo specific settings I evaluate; (SettingBrowser forKeywords: #('drgeosettings')) open I got a MNU SettingTreeBuilder>>drgeosettings Do I need to implement it? Hilaire -- Dr. Geo -- http://www.drgeo.eu
Hi Hilaire, If you want a package specific keyword, then your package must add a sepecific method to SettingTreeBuilder. for drgeosettings if should be: SettingTreeBuilder>> drgeosettings <settingPragmaProcessor> "Process a<drgeosettings> pragma" currentPragma methodClass theNonMetaClass perform: currentPragma selector with: self. Cheers Alain Le 21/12/2011 10:49, Hilaire Fernandes a écrit :
I want to use drgeo specific setting and let the user browser drgeosettings only. As documented in the SettingBrowser comment, I defined:
drgeoSettingsOn: aBuilder <drgeosettings> (aBuilder group: #drgeo) label: 'Dr. Geo'; description: 'All Dr. Geo related settings' translated; noOrdering; with: [
Then to browse drgeo specific settings I evaluate;
(SettingBrowser forKeywords: #('drgeosettings')) open
I got a MNU SettingTreeBuilder>>drgeosettings
Do I need to implement it?
Hilaire
Yeah, in fact I just added drgeosettings ^ self systemsettings By the way, the settings framework is very nice Hilaire Le 21/12/2011 10:59, Alain Plantec a écrit :
Hi Hilaire,
If you want a package specific keyword, then your package must add a sepecific method to SettingTreeBuilder. for drgeosettings if should be:
SettingTreeBuilder>> drgeosettings <settingPragmaProcessor> "Process a<drgeosettings> pragma"
currentPragma methodClass theNonMetaClass perform: currentPragma selector with: self.
Cheers Alain
Le 21/12/2011 10:49, Hilaire Fernandes a écrit :
I want to use drgeo specific setting and let the user browser drgeosettings only. As documented in the SettingBrowser comment, I defined:
drgeoSettingsOn: aBuilder <drgeosettings> (aBuilder group: #drgeo) label: 'Dr. Geo'; description: 'All Dr. Geo related settings' translated; noOrdering; with: [
Then to browse drgeo specific settings I evaluate;
(SettingBrowser forKeywords: #('drgeosettings')) open
I got a MNU SettingTreeBuilder>>drgeosettings
Do I need to implement it?
Hilaire
-- Dr. Geo -- http://www.drgeo.eu
alain did we describe that in the chapter? Stef On Dec 21, 2011, at 10:59 AM, Alain Plantec wrote:
Hi Hilaire,
If you want a package specific keyword, then your package must add a sepecific method to SettingTreeBuilder. for drgeosettings if should be:
SettingTreeBuilder>> drgeosettings <settingPragmaProcessor> "Process a<drgeosettings> pragma"
currentPragma methodClass theNonMetaClass perform: currentPragma selector with: self.
Cheers Alain
Le 21/12/2011 10:49, Hilaire Fernandes a écrit :
I want to use drgeo specific setting and let the user browser drgeosettings only. As documented in the SettingBrowser comment, I defined:
drgeoSettingsOn: aBuilder <drgeosettings> (aBuilder group: #drgeo) label: 'Dr. Geo'; description: 'All Dr. Geo related settings' translated; noOrdering; with: [
Then to browse drgeo specific settings I evaluate;
(SettingBrowser forKeywords: #('drgeosettings')) open
I got a MNU SettingTreeBuilder>>drgeosettings
Do I need to implement it?
Hilaire
Le 21/12/2011 11:09, Stéphane Ducasse a écrit :
alain
did we describe that in the chapter? I don't think so but we should :)
Stef
On Dec 21, 2011, at 10:59 AM, Alain Plantec wrote:
Hi Hilaire,
If you want a package specific keyword, then your package must add a sepecific method to SettingTreeBuilder. for drgeosettings if should be:
SettingTreeBuilder>> drgeosettings <settingPragmaProcessor> "Process a<drgeosettings> pragma"
currentPragma methodClass theNonMetaClass perform: currentPragma selector with: self.
Cheers Alain
Le 21/12/2011 10:49, Hilaire Fernandes a écrit :
I want to use drgeo specific setting and let the user browser drgeosettings only. As documented in the SettingBrowser comment, I defined:
drgeoSettingsOn: aBuilder <drgeosettings> (aBuilder group: #drgeo) label: 'Dr. Geo'; description: 'All Dr. Geo related settings' translated; noOrdering; with: [
Then to browse drgeo specific settings I evaluate;
(SettingBrowser forKeywords: #('drgeosettings')) open
I got a MNU SettingTreeBuilder>>drgeosettings
Do I need to implement it?
Hilaire
On Dec 21, 2011, at 12:45 PM, Alain Plantec wrote:
Le 21/12/2011 11:09, Stéphane Ducasse a écrit :
alain
did we describe that in the chapter? I don't think so but we should :)
I like when you get my subliminal message
Stef
On Dec 21, 2011, at 10:59 AM, Alain Plantec wrote:
Hi Hilaire,
If you want a package specific keyword, then your package must add a sepecific method to SettingTreeBuilder. for drgeosettings if should be:
SettingTreeBuilder>> drgeosettings <settingPragmaProcessor> "Process a<drgeosettings> pragma"
currentPragma methodClass theNonMetaClass perform: currentPragma selector with: self.
Cheers Alain
Le 21/12/2011 10:49, Hilaire Fernandes a écrit :
I want to use drgeo specific setting and let the user browser drgeosettings only. As documented in the SettingBrowser comment, I defined:
drgeoSettingsOn: aBuilder <drgeosettings> (aBuilder group: #drgeo) label: 'Dr. Geo'; description: 'All Dr. Geo related settings' translated; noOrdering; with: [
Then to browse drgeo specific settings I evaluate;
(SettingBrowser forKeywords: #('drgeosettings')) open
I got a MNU SettingTreeBuilder>>drgeosettings
Do I need to implement it?
Hilaire
participants (3)
-
Alain Plantec -
Hilaire Fernandes -
Stéphane Ducasse