[squeak-dev] The Trunk: Morphic-dtl.336.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Feb 10 22:56:06 UTC 2010

David T. Lewis uploaded a new version of Morphic to project The Trunk:

==================== Summary ====================

Name: Morphic-dtl.336
Author: dtl
Time: 10 February 2010, 5:51:45.712 pm
UUID: 9ad43be5-29ba-46f5-be2e-07b21434b70f
Ancestors: Morphic-dtl.335

Handle #saveContents update from Workspace in PluggableTextMorph. Removes MVC/Morphic dependency in Workspace.
Add PluggableTextMorph>>isTextView to support TranscriptStream>>countOpenTranscripts without #isKindOf: tests on MVC and Morphic views.

=============== Diff against Morphic-dtl.335 ===============

Item was added:
+ ----- Method: PluggableTextMorph>>isTextView (in category 'testing') -----
+ isTextView
+ 	"True if the reciever is a view on a text model, such as a view on a TranscriptStream"
+ 	^true!

Item was changed:
  ----- Method: PluggableTextMorph>>update: (in category 'updating') -----
  update: aSymbol 
  	aSymbol ifNil: [^self].
  	aSymbol == #flash ifTrue: [^self flash].
  	aSymbol == getTextSelector 
  			[self setText: self getText.
  			^self setSelection: self getSelection].
  	aSymbol == getSelectionSelector 
  		ifTrue: [^self setSelection: self getSelection].
  	(aSymbol == #autoSelect and: [getSelectionSelector notNil]) 
  			[self handleEdit: 
  					[(textMorph editor)
  						abandonChangeText; "no replacement!!"
  						setSearch: model autoSelectString;
  						againOrSame: true]].
  	aSymbol == #clearUserEdits ifTrue: [^self hasUnacceptedEdits: false].
  	aSymbol == #wantToChange 
  			[self canDiscardEdits ifFalse: [^self promptForCancel].
  	aSymbol == #appendEntry 
  			[self handleEdit: [self appendEntry].
  			^self refreshWorld].
  	aSymbol == #clearText 
  			[self handleEdit: [self changeText: Text new].
  			^self refreshWorld].
  	aSymbol == #bs 
  			[self handleEdit: [self bsText].
  			^self refreshWorld].
  	aSymbol == #codeChangedElsewhere 
  			[self hasEditingConflicts: true.
+ 			^self changed].
+ 	aSymbol == #saveContents
+ 		ifTrue:
+ 			[^self saveContentsInFile]!
- 			^self changed]!

More information about the Squeak-dev mailing list