links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Last updated at 4:11 pm UTC on 5 April 2019
 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


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