<div dir="ltr">Hi Marcel,<div><br></div><div> it would be great to fix the Morphic tests so that the bogus MorphicModelN's created by the tests were removed afterwards. Right now we have 3 bogus MorphicModel classes in Morphic and another one gets introduced every time one runs the tests.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 18, 2016 at 6:44 AM, <span dir="ltr"><<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Marcel Taeumel uploaded a new version of Morphic to project The Trunk:<br>
<a href="http://source.squeak.org/trunk/Morphic-mt.1084.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/trunk/Morphic-mt.1084.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Morphic-mt.1084<br>
Author: mt<br>
Time: 18 February 2016, 3:44:46.860199 pm<br>
UUID: 0fa3da60-2335-4f68-b851-047aed05e59c<br>
Ancestors: Morphic-mt.1083<br>
<br>
Define final exit actions. Move Morphic-specific locale update code to here. Avoid calling final enter actions because all Projects get that call now.<br>
<br>
=============== Diff against Morphic-mt.1083 ===============<br>
<br>
Item was changed:<br>
----- Method: MorphicProject>>finalExitActions (in category 'enter') -----<br>
finalExitActions<br>
<br>
(world findA: ProjectNavigationMorph)<br>
ifNotNil: [:navigator | navigator retractIfAppropriate].<br>
+<br>
+ World := nil.<br>
+<br>
+ ActiveWorld := ActiveHand := ActiveEvent := nil.<br>
+ Sensor flushAllButDandDEvents. "Will be reinstalled by World>>install"<br>
+<br>
uiProcess := nil. "forget the uiProcess that soon will be terminated"!<br>
<br>
Item was changed:<br>
----- Method: MorphicProject>>saveState (in category 'enter') -----<br>
saveState<br>
"Save the current state in me prior to leaving this project"<br>
<br>
changeSet := ChangeSet current.<br>
thumbnail ifNotNil: [thumbnail hibernate].<br>
world := World.<br>
world sleep.<br>
+ transcript := Transcript.<br>
- ActiveWorld := ActiveHand := ActiveEvent := nil.<br>
- Sensor flushAllButDandDEvents. "Will be reinstalled by World>>install"<br>
- transcript := Transcript<br>
!<br>
<br>
Item was changed:<br>
----- Method: MorphicProject>>scheduleProcessForEnter: (in category 'enter') -----<br>
scheduleProcessForEnter: showZoom<br>
"Complete the enter: by launching a new process"<br>
<br>
- self finalEnterActions.<br>
world repairEmbeddedWorlds.<br>
world triggerEvent: #aboutToEnterWorld.<br>
self spawnNewProcessAndTerminateOld: true.!<br>
<br>
Item was added:<br>
+ ----- Method: MorphicProject>>updateLocaleDependents (in category 'language') -----<br>
+ updateLocaleDependents<br>
+ "Set the project's natural language as indicated"<br>
+<br>
+ ActiveWorld allTileScriptingElements do: [:viewerOrScriptor |<br>
+ viewerOrScriptor localeChanged].<br>
+<br>
+ Flaps disableGlobalFlaps: false.<br>
+ Preferences eToyFriendly<br>
+ ifTrue: [<br>
+ Flaps addAndEnableEToyFlaps.<br>
+ ActiveWorld addGlobalFlaps]<br>
+ ifFalse: [Flaps enableGlobalFlaps].<br>
+<br>
+ (Project current isFlapIDEnabled: 'Navigator' translated)<br>
+ ifFalse: [Flaps enableDisableGlobalFlapWithID: 'Navigator' translated].<br>
+<br>
+ ScrapBook default emptyScrapBook.<br>
+ MenuIcons initializeTranslations.<br>
+<br>
+ super updateLocaleDependents.<br>
+<br>
+ "self setFlaps.<br>
+ self setPaletteFor: aLanguageSymbol."<br>
+ !<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div>