The Trunk: ST80-ct.306.mcz
| Newsgroups | gmane.comp.lang.smalltalk.squeak.general |
|---|---|
| Message-ID | <[email protected]> |
Christoph Thiede uploaded a new version of ST80 to project The Trunk: http://source.squeak.org/trunk/ST80-ct.306.mcz ==================== Summary ==================== Name: ST80-ct.306 Author: ct Time: 6 June 2026, 6:41:07.727412 pm UUID: 844fd80c-ee89-43e9-910c-e9c493cdd43a Ancestors: ST80-ct.305 Fixes pretty-print in MVC editors for non-code holders (such as inspectors). =============== Diff against ST80-ct.305 =============== Item was changed: + ----- Method: Controller>>closeAndUnscheduleNoTerminate (in category 'scheduling') ----- - ----- Method: Controller>>closeAndUnscheduleNoTerminate (in category 'as yet unclassified') ----- closeAndUnscheduleNoTerminate ! Item was changed: ----- Method: ParagraphEditor>>prettyPrint: (in category 'menu messages') ----- prettyPrint: decorated "Reformat the contents of the receiver's view (a Browser)." | selectedClass newText | - model selectedMessageCategoryName ifNil: [^ view flash]. selectedClass := model selectedClassOrMetaClass. + selectedClass ifNil: + ["arbitrary text selection in a workspace, not directly associated with a class" + newText := Compiler new formatNoPattern: self selection environment: model environment. + newText ifNotNil: [self replaceSelectionWith: newText]. + ^ self]. newText := selectedClass prettyPrinterClass format: self text in: selectedClass notifying: self decorated: decorated. newText ifNotNil: [self deselect; selectInvisiblyFrom: 1 to: paragraph text size. self replaceSelectionWith: (newText asText makeSelectorBoldIn: selectedClass). self selectAt: 1]! Squeak-dev mailing list -- [email protected] To unsubscribe send an email to [email protected]