PluggableTextMorphWithModel
Last updated at 10:48 pm UTC on 4 December 2021
PluggableTextMorph subclass: #PluggableTextMorphWithModel
instanceVariableNames: 'myContents'
classVariableNames: ''
poolDictionaries: ''
category: 'Morphic-Pluggable Widgets'
Which are the uses of PluggableTextMorphWithModel?
Note that in Squeak 5.2 it is not necessary to go for PluggableTextMorphWithModel, a PluggableTextMorph does the job equally well.
PluggableTextMorphWithModel new openInHand.
Text may be edited and expressions may be evaluated.
SRE Collaboration diagram
Example
st := WriteStream on: ''.
(Metaclass allInstances asSortedCollection: [:a :b | a name < b name]) do: [:cl | st nextPutAll: (cl name copyReplaceAll: ' class' with: ''); cr].
ptm := PluggableTextMorphWithModel new.
ptm textMorph contents: st contents.
ptm openInHand
¨
See also
PluggableTextMorph