David T. Lewis uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-jr.366.mcz
==================== Summary ====================
Name: Tests-jr.366
Author: jr
Time: 28 February 2017, 2:27:19.211388 pm
UUID: a91286d9-df10-e24e-b128-dc03557db77a
Ancestors: Tests-eem.363
fix: MCEnvironmentLoadTest must import required classes
the "curiously" comment is apparently out of date
=============== Diff against Tests-eem.363 ===============
Item was changed:
----- Method: MCEnvironmentLoadTest>>setUp (in category 'running') -----
setUp
environment := Environment named: 'MCEnvironmentLoadTest'.
"This is required in order to not importSelf more than once"
environment stopObserving: environment.
"This is required to make own declarations visible in environment"
environment importSelf.
"Import the required PoolDictionary used by the package"
environment bindingOf: #MCMockAPoolDictionary
+ ifAbsent: [environment from: Smalltalk globals import: #MCMockAPoolDictionary].
+ environment from: Smalltalk globals import: #(MCMock MCSnapshotTest Object).!
- ifAbsent: [environment from: Smalltalk globals import: #MCMockAPoolDictionary]
-
- "Curiously, the superclass MCMock will be used, but does not have to be imported, don't ask why..."!
David T. Lewis uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-jr.664.mcz
==================== Summary ====================
Name: Monticello-jr.664
Author: jr
Time: 2 March 2017, 11:24:19.419687 pm
UUID: 5f7f61e8-c5f7-7749-8d7f-c39b5b4584fb
Ancestors: Monticello-jr.663
make 'recompile package' work for working copies in another environment
=============== Diff against Monticello-jr.663 ===============
Item was changed:
----- Method: MCWorkingCopyBrowser>>recompilePackage (in category 'actions') -----
recompilePackage
+ (workingCopy withEnvironmentActiveDo: [workingCopy package packageInfo methods])
- workingCopy package packageInfo methods
do: [:ea | ea actualClass recompile: ea methodSymbol]
displayingProgress: 'Recompiling...'!
David T. Lewis uploaded a new version of Traits to project The Trunk:
http://source.squeak.org/trunk/Traits-jr.308.mcz
==================== Summary ====================
Name: Traits-jr.308
Author: jr
Time: 14 February 2017, 3:24:19.70449 pm
UUID: 8fb8baf0-afab-cb4c-865a-b0dc338749c4
Ancestors: Traits-pre.307
fix endless loop in 'show hierarchy' for Traits
=============== Diff against Traits-pre.307 ===============
Item was changed:
----- Method: TraitDescription>>printUsersOf:on:level: (in category 'printing') -----
printUsersOf: aClass on: aStream level: indent
aStream crtab: indent.
aStream nextPutAll: aClass name.
aClass isTrait ifTrue:[
+ aClass users do:[:each| self printUsersOf: each on: aStream level: indent+1].
- aClass users do:[:each| self printUsersOf: aClass on: aStream level: indent+1].
].
!
David T. Lewis uploaded a new version of Environments to project The Trunk:
http://source.squeak.org/trunk/Environments-jr.68.mcz
==================== Summary ====================
Name: Environments-jr.68
Author: jr
Time: 22 January 2017, 1:28:18.011832 am
UUID: 41256adf-d98a-4c4f-8bb6-6e5d800a4014
Ancestors: Environments-nice.67
add a convenience method to activate an environment during a block
=============== Diff against Environments-nice.67 ===============
Item was added:
+ ----- Method: Environment>>beCurrentDuring: (in category 'as yet unclassified') -----
+ beCurrentDuring: aBlock
+ "Evaluate aBlock with me as the current dynamic Environment"
+ ^ aBlock on: CurrentEnvironment do: [:e | e resume: self]!
David T. Lewis uploaded a new version of Environments to project The Trunk:
http://source.squeak.org/trunk/Environments-jr.69.mcz
==================== Summary ====================
Name: Environments-jr.69
Author: jr
Time: 22 January 2017, 1:58:32.760832 am
UUID: bef4785f-f66c-1246-bae6-6a15be9aaf33
Ancestors: Environments-jr.68
prevent the removal of third-party imported bindings
Previously, when environment T imported from A and B, which both had a binding for #x, unbinding #x from either A or B would remove the binding from T.
Now if the binding of #x is removed from A it will only be removed from T if T actually uses the binding from A, but not if T uses the binding from B.
It also prevents an environment A from unbinding something in an imported environment B when A imports itself and A and B both have a declaration with the same key.
=============== Diff against Environments-jr.68 ===============
Item was changed:
----- Method: Environment>>hideBinding: (in category 'binding') -----
hideBinding: aBinding
+ (bindings bindingOf: aBinding key) == aBinding ifFalse: [^ self].
self undeclare: aBinding key from: bindings!
David T. Lewis uploaded a new version of Environments to project The Trunk:
http://source.squeak.org/trunk/Environments-jr.71.mcz
==================== Summary ====================
Name: Environments-jr.71
Author: jr
Time: 28 February 2017, 2:36:25.745081 am
UUID: a50d4dbb-f587-6d46-bd22-bfcba43c4187
Ancestors: Environments-jr.69
add a signal to ask for an environment
to be used by Monticello to choose an environment
=============== Diff against Environments-jr.69 ===============
Item was changed:
SystemOrganization addCategory: #'Environments-Core'!
SystemOrganization addCategory: #'Environments-Loading'!
SystemOrganization addCategory: #'Environments-Policies'!
SystemOrganization addCategory: #'Environments-Help'!
+ SystemOrganization addCategory: #'Environments-Notifications'!
Item was added:
+ Notification subclass: #EnvironmentRequest
+ instanceVariableNames: ''
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: 'Environments-Notifications'!
+
+ !EnvironmentRequest commentStamp: 'jr 1/15/2017 00:34' prior: 0!
+ I represent a request for an Environment that is not necessarily the CurrentEnvironment, but any Environment available in the system.
+
+ Instance Variables
+ !
Item was added:
+ ----- Method: EnvironmentRequest>>defaultAction (in category 'exceptionDescription') -----
+ defaultAction
+ | all environment |
+ all := Environment allInstances.
+ environment := UIManager default chooseFrom: all values: all.
+ self resume: environment.!
David T. Lewis uploaded a new version of ToolsTests to project The Trunk:
http://source.squeak.org/trunk/ToolsTests-jr.79.mcz
==================== Summary ====================
Name: ToolsTests-jr.79
Author: jr
Time: 28 February 2017, 2:07:52.478388 pm
UUID: 633800f6-1e23-1744-8e1a-01ecd6e88cd2
Ancestors: ToolsTests-eem.78
change testSelectedEnvironment to fit with Tools-jr.745
=============== Diff against ToolsTests-eem.78 ===============
Item was changed:
----- Method: BrowserTest>>testSelectedEnvironment (in category 'as yet unclassified') -----
testSelectedEnvironment
browser selectSystemCategory: browser class category.
+ self assert: browser selectedEnvironment = Smalltalk globals.
- self assert: browser selectedEnvironment = Smalltalk.
+ "browser selectSystemCategory: nil.
+ self assert: browser selectedEnvironment isNil."
+ "selectedClass would not work in a hierarchy browser that has to display classes from different environments (because the correct categories might be missing)"!
- browser selectSystemCategory: nil.
- self assert: browser selectedEnvironment isNil.!