[Pkg] DeltaStreams: DeltaStreams-Model-mtf.9.mcz

squeak-dev-noreply at lists.squeakfoundation.org squeak-dev-noreply at lists.squeakfoundation.org
Tue Mar 10 02:01:22 UTC 2009

A new version of DeltaStreams-Model was added to project DeltaStreams:

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

Name: DeltaStreams-Model-mtf.9
Author: mtf
Time: 9 March 2009, 10:00:32 pm
UUID: 1547719a-ebfc-43c6-a4a2-e41a09c1f295
Ancestors: DeltaStreams-Model-mtf.8

better error message for class rename conflict

=============== Diff against DeltaStreams-Model-mtf.8 ===============

Item was changed:
  ----- Method: DSSystemEditorApplier>>applyClassNameChanged: (in category 'class changes') -----
  applyClassNameChanged: change
  	"Changed a class name. If the old class does not exist, do nothing. If the new name already exists, the behavior is not implemented"
  	(editor includesKey: change oldName) ifFalse: [^ self].
+ 	(editor includesKey: change newName) ifTrue: [^ self error:
+ 		'Cannot rename class ' , change oldName, ' to ', change newName, '. ',
+ 		change newName, ' is already defined'].
- 	(editor includesKey: change newName) ifTrue: [^ self error: 'Class rename conflict. See the comment in DSDeltaDirtyApplyTest>>testClassRenameConfict'].
  	(editor at: change oldName) rename: change newName.
  	super applyClassNameChanged: change.!

More information about the Packages mailing list