[squeak-dev] The Trunk: Collections-mpe.290.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Feb 3 06:20:59 UTC 2010


Andreas Raab uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-mpe.290.mcz

==================== Summary ====================

Name: Collections-mpe.290
Author: mpe
Time: 2 February 2010, 9:01:59.056 pm
UUID: 16f08817-12b2-412e-aabd-27d02e5c693a
Ancestors: Collections-ar.289

add a helper method to count the number of open Transcripts

=============== Diff against Collections-ar.289 ===============

Item was changed:
  ----- Method: TranscriptStream>>open (in category 'initialization') -----
  open
  	| openCount |
+ 	openCount := self countOpenTranscripts.
- 	openCount := 0.
- 	self dependents do:
- 		[:d | ((d isKindOf: PluggableTextView) or:
- 			[d isKindOf: PluggableTextMorph]) ifTrue: [openCount := openCount + 1]].
  	openCount = 0
  		ifTrue: [self openLabel: 'Transcript']
  		ifFalse: [self openLabel: 'Transcript #' , (openCount+1) printString]!

Item was added:
+ ----- Method: TranscriptStream>>countOpenTranscripts (in category 'private') -----
+ countOpenTranscripts
+ 		
+ 	| openCount |
+ 	openCount := 0.
+ 	self dependents do:
+ 		[:d | ((d isKindOf: PluggableTextView) or:
+ 			[d isKindOf: PluggableTextMorph]) ifTrue: [openCount := openCount + 1]].
+ 	^ openCount!




More information about the Squeak-dev mailing list