The Trunk: Morphic-ct.2208.mcz
| Newsgroups | gmane.comp.lang.smalltalk.squeak.general |
|---|---|
| Message-ID | <[email protected]> |
Christoph Thiede uploaded a new version of Morphic to project The Trunk: http://source.squeak.org/trunk/Morphic-ct.2208.mcz ==================== Summary ==================== Name: Morphic-ct.2208 Author: ct Time: 7 June 2026, 10:01:53.577994 pm UUID: 93cbc793-1be7-4a9d-a4f1-5c721631313f Ancestors: Morphic-ct.2207 Makes Text class>>initialize idempotent and thus less destructive in case of further edits. Adds missing cleanUp logic for find/replace strings. (Complements ST80-ct.307.) =============== Diff against Morphic-ct.2207 =============== Item was removed: - ----- Method: TextEditor class>>cleanUp (in category 'class initialization') ----- - cleanUp - - TextEditor allSubInstancesDo: [:editor | - editor history ifNotNil: [:h | - h current ifNotNil: [editor closeTypeIn]. - h reset]].! Item was added: + ----- Method: TextEditor class>>cleanUp: (in category 'class initialization') ----- + cleanUp: aggressive + + TextEditor allSubInstancesDo: [:editor | + editor history ifNotNil: [:h | + h current ifNotNil: [editor closeTypeIn]. + h reset]]. + + aggressive ifTrue: [ChangeText := FindText := Text new].! Item was changed: ----- Method: TextEditor class>>initialize (in category 'class initialization') ----- initialize "Initialize the keyboard shortcut maps and the shared buffers for copying text across views and managing again and undo." "TextEditor initialize" + FindText ifNil: [FindText := Text new]. + ChangeText ifNil: [ChangeText := Text new]. - FindText := ChangeText := Text new. self initializeCmdKeyShortcuts. self initializeShiftCmdKeyShortcuts. self initializeYellowButtonMenu. self initializeShiftedYellowButtonMenu! Squeak-dev mailing list -- [email protected] To unsubscribe send an email to [email protected]