[etoys-dev] Etoys: Etoys-kfr.150.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Dec 7 09:10:44 EST 2012


Karl Ramberg uploaded a new version of Etoys to project Etoys:
http://source.squeak.org/etoys/Etoys-kfr.150.mcz

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

Name: Etoys-kfr.150
Author: kfr
Time: 7 December 2012, 3:09:15 pm
UUID: 0f019a98-8c6e-c34d-a0e5-bb99fc2b0d9b
Ancestors: Etoys-kfr.149

http://tracker.squeakland.org/browse/SQ-1138 

> I disabled the possibility to change the type of variable if it is used in a script.

That was too drastic. A warning should be enough.

=============== Diff against Etoys-kfr.149 ===============

Item was added:
+ ----- Method: ModifyVariableDialogMorph>>chooseType (in category 'accessing') -----
+ chooseType
+ 	(self targetPlayer okayToRemoveSlotNamed: slot) ifFalse:
+ 		[^ self inform: ('Sorry, {1} is in
+ use in a script.' translated format: {slot})].
+ 	super chooseType!

Item was removed:
- ----- Method: ModifyVariableDialogMorph>>rebuild (in category 'accessing') -----
- rebuild
- 	| enableVarType itsName |
- 	super rebuild.
- 	enableVarType :=(self targetPlayer okayToRemoveSlotNamed: slot).
- 	
- 	self allMorphsDo: [ :each |
- 				itsName := each knownName. 
- 				(#(varType) includes: itsName) ifTrue:
- 							[self enable: each when: enableVarType]].
- !



More information about the etoys-dev mailing list