-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/DeleteMorphFromWorld' into refactoring/catchNoM…
…orphError
- Loading branch information
Showing
16 changed files
with
68 additions
and
42 deletions.
There are no files selected for viewing
23 changes: 0 additions & 23 deletions
23
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/deleteMorph..st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
...AnimationsEditor-Core.package/AnimationsEditorPropertyAnimated.class/instance/process..st
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
.../AnimationsEditor-Core.package/AnimationsEditorPropertyAnimated.class/instance/process.st
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...ditor-Core.package/AnimationsEditorPropertyAnimated.class/instance/shouldGetStepsFrom..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
stepping | ||
shouldGetStepsFrom: aPasteUpMorph | ||
|
||
^ true |
10 changes: 10 additions & 0 deletions
10
...tionsEditor-Core.package/AnimationsEditorPropertyAnimated.class/instance/startStepping.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
stepping | ||
startStepping | ||
|
||
self currentWorld | ||
startStepping: self | ||
at: Time millisecondClockValue | ||
selector: #step | ||
arguments: nil | ||
stepTime: self stepTime. | ||
self changed: #stepping. |
4 changes: 4 additions & 0 deletions
4
...ges/AnimationsEditor-Core.package/AnimationsEditorPropertyAnimated.class/instance/step.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
stepping | ||
step | ||
|
||
self targetMorph isInWorld ifFalse: [self animationsEditor deleteMorph. self stopStepping]. |
4 changes: 4 additions & 0 deletions
4
...AnimationsEditor-Core.package/AnimationsEditorPropertyAnimated.class/instance/stepTime.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
stepping | ||
stepTime | ||
|
||
^ 200. |
5 changes: 5 additions & 0 deletions
5
...ationsEditor-Core.package/AnimationsEditorPropertyAnimated.class/instance/stopStepping.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
stepping | ||
stopStepping | ||
|
||
self currentWorld stopStepping: self. | ||
self changed: #stepping. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...ages/AnimationsEditor-Tests.package/AnimationsEditorTest.class/instance/morphIsDeleted.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
support | ||
morphIsDeleted | ||
"replace with self animationsEditorInstance selectedTreeNoe isNil" | ||
^self animationsEditorInstance propertyTreeMorph submorphs first submorphs size = 1. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...ests.package/AnimationsEditorTest.class/instance/testMorphClosedInWorldTreeSpecUpdated.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
testing | ||
testMorphClosedInWorldTreeSpecUpdated | ||
|morph goalReached monitor producer finished| | ||
morph:= Morph new. | ||
morph openInWorld. | ||
|
||
self animationsEditorInstance selectedTreeNode: (self animationsEditorInstance addTargetMorph: morph). | ||
morph isFlexed | ||
ifTrue: [morph owner abandon]. "removes FlexShell" | ||
|
||
goalReached := false. | ||
finished := Semaphore new. | ||
monitor := Monitor new. | ||
producer := [ | ||
[monitor critical: | ||
[monitor waitUntil: [self morphIsDeleted]. | ||
monitor signal]] | ||
whileFalse. | ||
finished signal. | ||
self assert: self animationsEditorInstance propertyTreeMorph submorphs first submorphs size = 1.]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters