Marcel Taeumel uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-mt.1142.mcz
==================== Summary ====================
Name: System-mt.1142
Author: mt
Time: 5 March 2020, 1:17:57.313611 pm
UUID: c0bcbaf5-9833-b641-ae8a-8e03d89bb84c
Ancestors: System-mt.1141
Adds support for setting a value in the current UI theme similar to retrieving it like this:
self userInterfaceTheme myBackgroundColor: Color black.
=============== Diff against System-mt.1141 ===============
Item was changed:
----- Method: UserInterfaceThemeRequest>>doesNotUnderstand: (in category 'lookup') -----
doesNotUnderstand: aMessage
"Look up the visual attribute specified by aMessage's #selector in the current theme for the current target object."
aMessage numArgs = 0 ifTrue: [
^ (self theme get: self target class -> aMessage selector)
ifNil: [(self theme respondsTo: aMessage selector)
ifTrue: [self theme perform: aMessage selector]
ifFalse: [nil "unset property"]]].
+ aMessage numArgs = 1 ifTrue: [
+ ^ self theme
+ set: self target class -> aMessage selector asSimpleGetter
+ to: aMessage arguments first].
+
^ self theme
perform: aMessage selector
withArguments: aMessage arguments.!
Nicolas Cellier uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-jr.929.mcz
==================== Summary ====================
Name: Tools-jr.929
Author: jr
Time: 30 December 2019, 3:20:08.513977 pm
UUID: 0a4d62fd-022e-1844-b6bc-db1502ab2466
Ancestors: Tools-cmm.928
Show browsed environment in Browser title if it is not the default environment.
=============== Diff against Tools-cmm.928 ===============
Item was changed:
----- Method: Browser>>defaultBrowserTitle (in category 'initialize-release') -----
defaultBrowserTitle
+ | title |
+ title := 'System Browser'.
+ ^ environment = self class environment
+ ifTrue: [title]
+ ifFalse: [title, ' on environment ', environment asString]!
- ^ 'System Browser'!
Nicolas Cellier uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-kfr.930.mcz
==================== Summary ====================
Name: Tools-kfr.930
Author: kfr
Time: 9 February 2020, 9:02:29.519512 pm
UUID: 5ba34f14-47a5-3d41-b77a-e043dad99316
Ancestors: Tools-mt.929
Form preview was displaying wrong colors. Convert preview form to screen depth to make colors display correctly
=============== Diff against Tools-mt.929 ===============
Item was changed:
----- Method: FileList>>readGraphicContents (in category 'private') -----
readGraphicContents
| form maxExtent ext |
+ form := (Form fromFileNamed: self fullName) asFormOfDepth: Display depth.
- form := Form fromFileNamed: self fullName.
maxExtent := lastGraphicsExtent := self availableGraphicsExtent.
ext := form extent.
(maxExtent notNil and: [form extent <= maxExtent]) ifFalse: [
form := form magnify: form boundingBox by: (maxExtent x / form width min: maxExtent y / form height) asPoint smoothing: 3].
contents := ('Image extent: ', ext printString) asText,
(String with: Character cr),
(Text string: ' '
attribute: (TextFontReference toFont:
(FormSetFont new
fromFormArray: (Array with: form)
asciiStart: Character space asInteger
ascent: form height))).
brevityState := #graphic.
^contents!
Nicolas Cellier uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-ct.945.mcz
==================== Summary ====================
Name: Tools-ct.945
Author: ct
Time: 24 February 2020, 1:56:51.392323 pm
UUID: cc577466-ca48-484b-9454-11ae7ffde0b2
Ancestors: Tools-mt.940
Fixes a bug/unnecessary limitation in VersionsBrowser class >> #browseMethod: that raised an error when browsing a method that had been removed from the system.
You can also reproduce it via: thisContext method browse "on a fresh image".
This commit replaces Tools-ct.944, which has been refactored again to reuse the return carat according to Kent Beck ("Format conditionals so their value is used where it clearly expresses the intent of the method"). Thanks to Chris for the reminder!
=============== Diff against Tools-mt.940 ===============
Item was changed:
----- Method: VersionsBrowser class>>browseMethod: (in category 'instance creation') -----
browseMethod: aCompiledMethod
+ ^ (self browseVersionsOf: aCompiledMethod)
+ ifNotNil: [:browser |
+ browser selectMethod: aCompiledMethod];
- ^ (self browseVersionsForClass: aCompiledMethod methodClass selector: aCompiledMethod selector)
- selectMethod: aCompiledMethod;
yourself!
Item was added:
+ ----- Method: VersionsBrowser class>>browseVersionsOf: (in category 'instance creation') -----
+ browseVersionsOf: aCompiledMethod
+
+ | methodClass methodSelector |
+ methodClass := aCompiledMethod methodClass.
+ methodSelector := aCompiledMethod selector.
+ ^ self
+ browseVersionsOf: aCompiledMethod
+ class: methodClass
+ meta: methodClass isMeta
+ category: (methodClass organization categoryOfElement: methodSelector)
+ selector: methodSelector!