[squeak-dev] The Trunk: Collections-mt.1013.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Jun 21 12:11:55 UTC 2022


Marcel Taeumel uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-mt.1013.mcz

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

Name: Collections-mt.1013
Author: mt
Time: 21 June 2022, 2:11:52.477349 pm
UUID: dc83d352-edda-ef46-a1ba-483a6e4dd256
Ancestors: Collections-ct.1012

Fixes Z-order of Morphic windows for text actions other than "code://" in TextURL. All use #addDeferredUIMessage: for now. Also tested in MVC.

Thanks to Lauren (lrnp) and Karl (kfr) for the pointer!!

Also see: https://github.com/squeak-smalltalk/squeak-object-memory/issues/50

=============== Diff against Collections-ct.1012 ===============

Item was changed:
  ----- Method: TextDoIt>>actOnClickFor: (in category 'event handling') -----
  actOnClickFor: anObject
  	"Note: evalString gets evaluated IN THE CONTEXT OF anObject
  	 -- meaning that self and all instVars are accessible"
+ 	Project current addDeferredUIMessage: [Compiler evaluate: evalString for: anObject].
- 	Compiler evaluate: evalString for: anObject.
  	^ true !

Item was changed:
  ----- Method: TextInspectIt>>actOnClickFor:in:at:editor: (in category 'mouse events') -----
  actOnClickFor: anObject in: aParagraph at: clickPoint editor: editor
  	"Note: evalString gets evaluated IN THE CONTEXT OF anObject
  	 -- meaning that self and all instVars are accessible"
+ 	Project current addDeferredUIMessage: [
+ 		self target
+ 			ifNil: [(Compiler evaluate: evalString for: anObject) inspect]
+ 			ifNotNil: [:object | object inspect] ].
- 	self target
- 		ifNil: [(Compiler evaluate: evalString for: anObject) inspect]
- 		ifNotNil: [:object | object inspect].
  	^ true !

Item was changed:
  ----- Method: TextLink>>actOnClickFor: (in category 'event handling') -----
  actOnClickFor: aMessageSet
  	"Add to the end of the list.  'aClass selector', 'aClass Comment', 'aClass Definition', 'aClass Hierarchy' are the formats allowed."
  
+ 	Project current addDeferredUIMessage: [aMessageSet addItem: classAndMethod].
- 	aMessageSet addItem: classAndMethod.
  	^ true!



More information about the Squeak-dev mailing list