Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0007306 [Squeak] System minor always 03-04-09 06:52 04-18-10 22:05
Reporter andreas View Status public  
Assigned To andreas
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0007306: Preference pragmas
Description Preferences compile programmatic accessors in Preferences and are generally hard to use. The change set provides a preference pragma which allows one to define a preference via:

myPreferenceValue
    <preference: 'Preference Name'
        category: 'category'
        description: 'Help information'
        type: #Boolean>
    ^MyPreferenceValue

myPreferenceValue: aBool
    MyPreferenceValue := aBool.

See class PreferenceExample for an example of use preference pragmas.
Additional Information
Attached Files  PreferencePragmas.1.cs [^] (5,841 bytes) 03-04-09 06:52
 PreferencePragmas.2.cs [^] (6,301 bytes) 03-06-09 04:22
 PreferencePragmas.3.cs [^] (8,741 bytes) 03-10-09 04:53

- Relationships

- Notes
(0013004 - 115 - 165 - 165 - 165 - 165 - 165)
andreas
03-04-09 06:53
edited on: 03-10-09 04:53

"fix begin"
Installer mantis bug: 7306 fix: 'PreferencePragmas.3.cs'.
Preferences registerForEvents.
"fix end"

 
(0013009 - 102 - 102 - 102 - 102 - 102 - 102)
andreas
03-06-09 04:24

The latest installment has complete auto-discovery so no more class initializations need to be called.
 
(0013034 - 153 - 153 - 153 - 153 - 153 - 153)
andreas
03-10-09 04:54

This version retrieves the preference value directly from the source (no internal caching) and provides the preference:category:description:type: method.
 

- Issue History
Date Modified Username Field Change
03-04-09 06:52 andreas New Issue
03-04-09 06:52 andreas Status new => assigned
03-04-09 06:52 andreas Assigned To  => KenCausey
03-04-09 06:52 andreas File Added: PreferencePragmas.1.cs
03-04-09 06:53 andreas Note Added: 0013004
03-04-09 18:20 KenCausey Category Any => System
03-06-09 04:22 andreas File Added: PreferencePragmas.2.cs
03-06-09 04:22 andreas Note Edited: 0013004
03-06-09 04:23 andreas Description Updated
03-06-09 04:24 andreas Note Added: 0013009
03-06-09 04:24 andreas Note Edited: 0013004
03-06-09 04:40 andreas Description Updated
03-06-09 17:35 KenCausey Assigned To KenCausey =>
03-06-09 17:35 KenCausey Status assigned => new
03-10-09 04:53 andreas File Added: PreferencePragmas.3.cs
03-10-09 04:53 andreas Note Edited: 0013004
03-10-09 04:54 andreas Note Added: 0013034
09-04-09 07:05 andreas Status new => resolved
09-04-09 07:05 andreas Fixed in Version  => trunk
09-04-09 07:05 andreas Resolution open => fixed
09-04-09 07:05 andreas Assigned To  => andreas
04-18-10 22:05 andreas Status resolved => closed


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
69 total queries executed.
36 unique queries executed.
Powered by Mantis Bugtracker