The Inbox: Morphic-jr.1658.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: Morphic-jr.1658.mcz

commits-2
A new version of Morphic was added to project The Inbox:
http://source.squeak.org/inbox/Morphic-jr.1658.mcz

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

Name: Morphic-jr.1658
Author: jr
Time: 8 May 2020, 11:07:51.485476 pm
UUID: c8e2ed91-2723-6441-9678-947b8e0d00d1
Ancestors: Morphic-nice.1657

Allow to debug getTextSelector of PluggableTextMorphs just like the actions of menu items and buttons.

=============== Diff against Morphic-nice.1657 ===============

Item was added:
+ ----- Method: MorphicModel>>debugAction:describedAs: (in category 'debug and other') -----
+ debugAction: selectorSymbol describedAs: aString
+ "Debug a message sent to the model as part of some interaction."
+ (Process
+ forBlock: [model perform: selectorSymbol]
+ runUntil: [:context | context selector = selectorSymbol])
+ debugWithTitle: ('Debug ', aString, ' in "{1}"' format: {model printString}).!

Item was changed:
  ----- Method: PluggableListMorph>>debugGetList (in category 'debug and other') -----
  debugGetList
+ self debugAction: getListSelector describedAs: 'get-list invocation'.!
-
- (Process
- forBlock: [model perform: getListSelector]
- runUntil: [:context | context selector = getListSelector])
- debugWithTitle: ('Debug get-list invocation in model "{1}"' format: {model printString}).!

Item was added:
+ ----- Method: PluggableTextMorph>>buildDebugMenu: (in category 'debug and other') -----
+ buildDebugMenu: aHandMorph
+ | aMenu |
+ aMenu := super buildDebugMenu: aHandMorph.
+ aMenu
+ addLine;
+ add: 'debug text determination' translated action:
+ [self debugAction: getTextSelector describedAs: 'text determination'].
+ ^ aMenu!