Igor, couldn't agree more. Plus there are problems with both my approaches...
Sean P. DeNigris wrote
> aDebugger getTextMorph textMorph editor selectAll."Works if wrapped in "sourcePane handleEdit: []", but warns that the method
> aDebugger getTextMorph textMorph editor zapSelectionWith: aString.
has been edited elsewhere. Without the wrapping, it looks like it has
accepted, but keeps the old source (i.e. when I browse the method, the
source was not accepted).
Sean P. DeNigris wrote
> aDebugger getTextMorph textMorph contents: 'meaning: aStringWarns that the method has been edited elsewhere; if you click okay, it looks
> � � � meaning := aString.'
> aDebugger getTextMorph textMorph editor userHasEdited
like it has accepted, but keeps the old source (i.e. when I browse the
method, the source was not accepted).
-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Replacing-all-text-in-a-code-pane-tp4680669p4680679.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.