[squeak-dev] The Trunk: System-cmm.275.mcz

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Wed Mar 3 21:38:15 UTC 2010


Hi Chris

Did you notice new pattern for creating preferences ?
We prefer a method annotation (pragme) because it will prevent
Preferences to be bloated.

like TextDiffBuilder>>ignoreLineEndings
	"Answer a boolean telling if line endings differences should be
ignored or emphasized"
	
	<preference: 'ignoreLineEndings'
		category: 'TextDiff'
		description: 'When enabled, source code differences in line endings
will be ignored.'
		type: #Boolean>
	^IgnoreLineEndings ifNil: [ false ]

Cheers

Nicolas

2010/3/3  <commits at source.squeak.org>:
> Chris Muller uploaded a new version of System to project The Trunk:
> http://source.squeak.org/trunk/System-cmm.275.mcz
>
> ==================== Summary ====================
>
> Name: System-cmm.275
> Author: cmm
> Time: 2 March 2010, 9:48:35.173 pm
> UUID: 2f46dbd4-b790-41cc-b8c4-76d1b7eb1b15
> Ancestors: System-cmm.274
>
> Added #traceMessages preference.
>
> =============== Diff against System-cmm.274 ===============
>
> Item was added:
> + ----- Method: Preferences class>>traceMessages (in category 'standard queries') -----
> + traceMessages
> +       ^ self
> +               valueOfFlag: #traceMessages
> +               ifAbsent: [ false ]!
>
>
>



More information about the Squeak-dev mailing list