David T. Lewis uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ct.956.mcz
==================== Summary ====================
Name: Collections-ct.956
Author: ct
Time: 6 September 2021, 12:53:37.645964 pm
UUID: be4f9619-60ba-b44e-8d86-44535b9be3ad
Ancestors: Collections-ul.955
After SOH has been added to the list of separator characters, reset CharacterSet caches to make sure #separators etc. are in sync again.
Complements Collections-dtl.954.
=============== Diff against Collections-ul.955 ===============
Item was changed:
+ (PackageInfo named: 'Collections') postscript: '"Definition of separators has been updated, update CharacterSet caches too"
+ CharacterSet cleanUp: false.'!
- (PackageInfo named: 'Collections') postscript: '"Gently move ByteArray down the hierarchy.
- Since neither the format, nor the layout does change, there is no need to create a new class, nor to migrate the instances/subinstances.
- ClassBuilder would do too much work and would prevent us to change such basic and dangerous classes (notably, CompiledCode is a subclass of ByteArray)."
-
- ByteArray superclass removeSubclass: ByteArray.
- ByteArray superclass: UnsignedIntegerArray.
- ByteArray class superclass: UnsignedIntegerArray class.
- UnsignedIntegerArray addSubclass: ByteArray.
- '!
Levente Uzonyi uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-ul.1409.mcz
==================== Summary ====================
Name: Kernel-ul.1409
Author: ul
Time: 3 September 2021, 4:15:37.925846 pm
UUID: 44b68d6f-f84b-4319-bfe0-8db351b7f018
Ancestors: Kernel-eem.1408
- deprecate ifNotNilDo:, #ifNil:ifNotNilDo: and #ifNotNilDo:ifNil:
=============== Diff against Kernel-eem.1408 ===============
Item was removed:
- ----- Method: Object>>ifNil:ifNotNilDo: (in category 'accessing') -----
- ifNil: nilBlock ifNotNilDo: aBlock
- "Evaluate aBlock with the receiver as its argument."
-
- ^ aBlock value: self
- !
Item was removed:
- ----- Method: Object>>ifNotNilDo: (in category 'accessing') -----
- ifNotNilDo: aBlock
- "Evaluate the given block with the receiver as its argument."
-
- ^ aBlock value: self
- !
Item was removed:
- ----- Method: Object>>ifNotNilDo:ifNil: (in category 'accessing') -----
- ifNotNilDo: aBlock ifNil: nilBlock
- "Evaluate aBlock with the receiver as its argument."
-
- ^ aBlock value: self
- !
Item was removed:
- ----- Method: UndefinedObject>>ifNil:ifNotNilDo: (in category 'testing') -----
- ifNil: nilBlock ifNotNilDo: ifNotNilBlock
- "Evaluate the block for nil because I'm == nil"
-
- ^ nilBlock value!
Item was removed:
- ----- Method: UndefinedObject>>ifNotNilDo: (in category 'testing') -----
- ifNotNilDo: aBlock
- "Override to do nothing."
-
- ^ self
- !
Item was removed:
- ----- Method: UndefinedObject>>ifNotNilDo:ifNil: (in category 'testing') -----
- ifNotNilDo: ifNotNilBlock ifNil: nilBlock
- "If I got here, I am nil, so evaluate the block nilBlock"
-
- ^ nilBlock value!
Levente Uzonyi uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-ul.752.mcz
==================== Summary ====================
Name: Monticello-ul.752
Author: ul
Time: 3 September 2021, 3:51:34.80549 pm
UUID: 7e736996-9073-4456-9408-d6efd270abb1
Ancestors: Monticello-mt.751
- ifNotNilDo: -> ifNotNil:
=============== Diff against Monticello-mt.751 ===============
Item was changed:
----- Method: MCCodeTool>>copyReference (in category 'menus') -----
copyReference
"Copy the selected selector to the clipboard"
self selectedMessageName ifNotNil:
[ : selector | Clipboard clipboardText:
(self selectedClassOrMetaClass
ifNil: [ selector asString ]
+ ifNotNil: [ : cls | (cls >> selector) reference ]) ]!
- ifNotNilDo: [ : cls | (cls >> selector) reference ]) ]!
Item was changed:
----- Method: MCOperationsBrowser>>browseSelectionOrigin (in category 'actions') -----
browseSelectionOrigin
| mcDefinition |
selection ifNil: [ UIManager inform: 'Make a selection.' ].
mcDefinition := selection definition.
Cursor wait showWhile:
[ mcDefinition mcModel ifNotNil:
[ : mcModel | (mcModel originOf: mcDefinition)
ifNil: [ UIManager inform: mcDefinition asString , ' was not found in any historical MC repository.' ]
+ ifNotNil:
- ifNotNilDo:
[ : version | version open ] ] ]!
Item was changed:
----- Method: MCRepository>>copyImageVersions (in category 'versions') -----
copyImageVersions
"For each package contained in the receiver, copy the version of that package which is currently loaded in this image. If no version of a package is loaded in the image, nothing is copied for that package."
self cacheAllFileNamesDuring:
[ self allPackageNames do:
[ : eachPkgName | MCWorkingCopy allManagers
detect: [ : each | each packageName = eachPkgName ]
ifFound:
[ : loaded | loaded ancestors do:
[ : infoToCopy | (self includesVersionNamed: infoToCopy versionName) ifFalse:
[ (MCRepositoryGroup default versionWithInfo: infoToCopy)
ifNil: [ Warning signal: infoToCopy name , ' not found in RepositoryGroup default.' ]
+ ifNotNil:
- ifNotNilDo:
[ : ver | self storeVersion: ver ] ] ] ]
ifNone: [ "Image specifies no version to copy." ] ] ]!
Levente Uzonyi uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ul.1780.mcz
==================== Summary ====================
Name: Morphic-ul.1780
Author: ul
Time: 3 September 2021, 3:51:14.375371 pm
UUID: 752b8545-23b0-4e10-9c95-997cadb88d2a
Ancestors: Morphic-mt.1779
- ifNotNilDo: -> ifNotNil:
=============== Diff against Morphic-mt.1779 ===============
Item was changed:
----- Method: SketchMorph>>erasePixelsUsing: (in category 'menu') -----
erasePixelsUsing: evt
"Let the user specifiy a color such that all pixels of that color should be erased; then do the erasure"
self
changeColorTarget: self
selector: #rememberedColor:
originalColor: nil
hand: evt hand.
self rememberedColor "color to erase"
ifNil: [ ^ self ]
+ ifNotNil:
- ifNotNilDo:
[ : chosenColor | self erasePixelsOfColor: chosenColor ]!
Item was changed:
----- Method: SmalltalkEditor>>methodArgument: (in category 'private') -----
methodArgument: anInteger
^ (ReadStream on: self text asString) nextLine
ifNil: [ String empty ]
+ ifNotNil:
- ifNotNilDo:
[ : line |
line substrings
at: 2 * anInteger
ifAbsent: [ String empty ] ]!
Item was changed:
----- Method: TextEditor>>prettyPrint: (in category 'menu messages') -----
prettyPrint: decorated
"Reformat the contents of the receiver's view (a Browser or Workspace)."
model selectedClassOrMetaClass
ifNil: [ "arbitrary text selection in a workspace, not directly associated with a class"
(Compiler new formatNoPattern: self selection environment: model environment)
+ ifNotNil: [:newText | self replaceSelectionWith: newText]]
- ifNotNilDo: [:newText | self replaceSelectionWith: newText]]
ifNotNil: [:selectedClass | "source for a method in the selected class"
(selectedClass newCompiler
format: self text
in: selectedClass
notifying: self
decorated: decorated)
+ ifNotNil: [ :newText |
- ifNotNilDo: [ :newText |
self selectInvisiblyFrom: 1 to: paragraph text size.
self replaceSelectionWith: (selectedClass ifNil: [newText] ifNotNil: [newText asText makeSelectorBoldIn: selectedClass]).
self selectAt: self text size + 1 ]].
!