Marcel Taeumel uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-mt.1114.mcz
==================== Summary ====================
Name: Tools-mt.1114
Author: mt
Time: 26 January 2022, 8:07:12.312127 am
UUID: e3c2c01e-3fc1-b14c-b352-3977f6c6abba
Ancestors: Tools-mt.1113
Fixes "cancel" option when trying to "save contents to file..." in the Transcript's text-field's "more..." menu.
Thanks to Jaromir (jar) for the pointer!
=============== Diff against Tools-mt.1113 ===============
Item was changed:
----- Method: TranscriptStream>>saveContents:accessMode: (in category '*Tools-file out') -----
saveContents: stringContents accessMode: accessMode
"Interactive callback from TextEditor. See commentary in Model class."
^ (Project uiManager
saveFilenameRequest: 'Save text contents in file...'
initialAnswer: 'Transcript.text')
+ ifNil: [false] ifNotNil: [:answer | answer ifEmpty: [false]
- ifEmpty: [false]
ifNotEmpty: [:fileName |
Model new
saveContents: stringContents
onFileNamed: fileName
+ accessMode: accessMode]].!
- accessMode: accessMode].!
Marcel Taeumel uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-mt.1442.mcz
==================== Summary ====================
Name: Kernel-mt.1442
Author: mt
Time: 25 January 2022, 12:35:47.396258 pm
UUID: 7397b8c6-4375-9344-aa02-5e6c2d55bda0
Ancestors: Kernel-mt.1441
Clarify comment in #becomeForward:. See http://lists.squeakfoundation.org/pipermail/vm-dev/2022-January/037578.html
=============== Diff against Kernel-mt.1441 ===============
Item was changed:
----- Method: Object>>becomeForward: (in category 'system primitives') -----
becomeForward: otherObject
+ "Primitive. All variables in the entire system that used to point to the receiver now point to the argument. Fails if either argument is an immediate such as a SmallInteger, or if the receiver is read-only.
+ NOTE THAT the identityHash of the receiver IS NOT copied to the argument so that the argument should still be properly indexed in any existing hashed structures after the mutation. See #becomeForward:copyHash:."
- "Primitive. All variables in the entire system that used to point
- to the receiver now point to the argument.
- Fails if either argument is an immediate such as a SmallInteger,
- or if the receiver is read-only."
{self} elementsForwardIdentityTo: {otherObject}!
Marcel Taeumel uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-mt.1113.mcz
==================== Summary ====================
Name: Tools-mt.1113
Author: mt
Time: 25 January 2022, 12:25:06.913258 pm
UUID: e1a3c334-5cc9-7844-a5fb-8fa646917c81
Ancestors: Tools-mt.1112
Only show that CMD+S notification in workspaces if the #fileOutOnAccept preferences is enabled. So the old-style of working with workspaces is still supported without extra pop-ups. See http://lists.squeakfoundation.org/pipermail/squeak-dev/2022-January/218623.…
This also documents a small bug we have with the CMD+o (spawn) operation...
=============== Diff against Tools-mt.1112 ===============
Item was changed:
----- Method: Workspace>>acceptContents: (in category 'accessing') -----
acceptContents: aString
+ (self class fileOutOnAccept and: [acceptAction isNil]) ifTrue: [self inform: 'Your edits were <b>not persisted</b>. Please do not close this<br>window. If you want to save your edits to a file on accept,<br>check the workspace preferences or this window''s menu.' translated asTextFromHtml].
- acceptAction ifNil: [self inform: 'Your edits were <b>not persisted</b>. Please do not close this<br>window. If you want to save your edits to a file on accept,<br>check the workspace preferences or this window''s menu.' translated asTextFromHtml].
^ (acceptAction ifNotNil: [acceptAction value: aString]) ~~ false
and: [super acceptContents: aString]!
Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-mt.287.mcz
==================== Summary ====================
Name: ToolBuilder-Morphic-mt.287
Author: mt
Time: 24 January 2022, 12:02:50.618852 pm
UUID: 23956dc5-c523-e149-abf6-5d930dcf3517
Ancestors: ToolBuilder-Morphic-mt.286
Sorry for the noise ...
=============== Diff against ToolBuilder-Morphic-mt.286 ===============
Item was changed:
----- Method: MorphicUIManager>>edit:label:shouldStyle:accept: (in category 'ui requests') -----
edit: aText label: labelString shouldStyle: aBoolean accept: anAction
"Open an editor on the given string/text. Note that we do not send #open but #new to avoid any default actions to be configured."
| workspace |
- self halt.
workspace := Workspace new
shouldStyle: aBoolean;
contents: aText;
acceptAction: anAction.
^ workspace openLabel: (labelString ifNil: [workspace labelString])!
Marcel Taeumel uploaded a new version of ToolBuilder-MVC to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-MVC-mt.64.mcz
==================== Summary ====================
Name: ToolBuilder-MVC-mt.64
Author: mt
Time: 24 January 2022, 11:56:27.036852 am
UUID: 6d6f6c45-8c3c-a74a-aa5f-e4c999aafd11
Ancestors: ToolBuilder-MVC-mt.63
Avoid side-effects when initializing a workspace for edit-string operations. We might want to add a class-side constructor for that...
=============== Diff against ToolBuilder-MVC-mt.63 ===============
Item was changed:
----- Method: MVCUIManager>>edit:label:accept: (in category 'ui requests') -----
edit: aText label: labelString accept: anAction
"Open an editor on the given string/text"
Workspace new
+ contents: aText;
- acceptContents: aText;
acceptAction: anAction;
openLabel: labelString
!
Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-mt.286.mcz
==================== Summary ====================
Name: ToolBuilder-Morphic-mt.286
Author: mt
Time: 24 January 2022, 11:55:43.641852 am
UUID: 79c4f1ff-6335-4944-bf47-4539dbded3ff
Ancestors: ToolBuilder-Morphic-ct.285
Avoid side-effects when initializing a workspace for edit-string operations. We might want to add a class-side constructor for that...
=============== Diff against ToolBuilder-Morphic-ct.285 ===============
Item was changed:
----- Method: MorphicUIManager>>edit:label:shouldStyle:accept: (in category 'ui requests') -----
edit: aText label: labelString shouldStyle: aBoolean accept: anAction
"Open an editor on the given string/text. Note that we do not send #open but #new to avoid any default actions to be configured."
| workspace |
+ self halt.
workspace := Workspace new
shouldStyle: aBoolean;
+ contents: aText;
- acceptContents: aText;
acceptAction: anAction.
^ workspace openLabel: (labelString ifNil: [workspace labelString])!