[squeak-dev] The Trunk: Morphic-eem.1790.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Nov 11 17:11:49 UTC 2021


Eliot Miranda uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-eem.1790.mcz

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

Name: Morphic-eem.1790
Author: eem
Time: 11 November 2021, 9:11:46.040429 am
UUID: fcf3f31e-f485-42d4-8863-29f2e3c2afed
Ancestors: Morphic-eem.1789

Implement "make project link (P)" for the Morphic help editor.

=============== Diff against Morphic-eem.1789 ===============

Item was added:
+ ----- Method: PluggableTextMorph>>makeProjectLink (in category 'menu commands') -----
+ makeProjectLink
+ 	self handleEdit: [textMorph editor makeProjectLink]!

Item was added:
+ ----- Method: TextEditor>>makeProjectLink (in category 'menu commands') -----
+ makeProjectLink
+ 	| attribute thisSel |
+ 	
+ 	thisSel := self selection.
+ 
+ 	attribute := TextSqkProjectLink new. 
+ 	thisSel := attribute analyze: self selection asString.
+ 
+ 	thisSel ifNil: [^ true].
+ 	self replaceSelectionWith: (thisSel asText addAttribute: attribute).
+ 	^ true!



More information about the Squeak-dev mailing list