#UI_ENHANCEMENT by cg
authorClaus Gittinger <cg@exept.de>
Fri, 19 Jul 2019 16:28:39 +0200
changeset 3710 280daf8b3626
parent 3709 6189f7800242
child 3711 a472042fd298
#UI_ENHANCEMENT by cg class: MethodFinderWindow changed: #showMeHowItWorks class: MethodFinderWindow class changed: #windowSpec
MethodFinderWindow.st
--- a/MethodFinderWindow.st	Fri Jul 19 15:18:55 2019 +0200
+++ b/MethodFinderWindow.st	Fri Jul 19 16:28:39 2019 +0200
@@ -183,7 +183,7 @@
     ^ 
     #(FullSpec
        name: windowSpec
-       uuid: 'be8179c6-aa21-11e9-8c78-b8f6b1108e05'
+       uuid: '1871401e-aa2d-11e9-8c78-b8f6b1108e05'
        window: 
       (WindowSpec
          label: 'MethodFinder'
@@ -498,7 +498,7 @@
                   (SpecCollection
                      collection: (
                       (SequenceViewSpec
-                         name: 'List2'
+                         name: 'ImplementorsList'
                          uuid: '5fb10524-89f6-11e9-8df0-b8f6b1108e05'
                          model: selectedClassOfResultHolder
                          menu: implementorListMenu
@@ -517,7 +517,7 @@
                         (SpecCollection
                            collection: (
                             (CodeViewSpec
-                               name: 'CodeView1'
+                               name: 'CodeView'
                                layout: (LayoutFrame 0 0 0 0 0 1 0 1)
                                uuid: '5fb106dc-89f6-11e9-8df0-b8f6b1108e05'
                                model: codeHolder
@@ -546,8 +546,6 @@
         
        )
      )
-
-    "Modified: / 19-07-2019 / 15:08:46 / Claus Gittinger"
 !
 
 windowSpec_old
@@ -1778,45 +1776,73 @@
 
 showMeHowItWorks
     ShowMeHowItWorks do:#(
-        ( showing: 'Choose the number of arguments' do:(
+        show: 'this little presentation shows, how to find a method when the desired result is known'
+
+        intro
+        
+        (unless: ( isEmpty: ReceiverEditor ) do:(
+            (showing: 'you can clear the fields - by pressing the "Clear" button' do:(
+                    fastMoveTo: ClearButton
+                    click
+            ))
+        ))
+        
+        ( showing: 'start by choosing the number of arguments,' do:(
             moveTo: AllowedArguments
             select: '1 argument' 
         ))  
         (showing: 'Click into the "receiver" field' do:(
             moveTo: ReceiverEditor
-            click: ReceiverEditor 
+            click 
         ))
         wait: 0.5
         (showing: 'Enter a value (or expression) into "receiver" field' do:(
-            enter: '10'
+            type: '10'
         ))
         wait: 0.5
         (showing: 'Click into the "first argument" field' do:(
             moveTo: Arg1Editor
-            click: Arg1Editor
+            click
         ))
         wait: 0.5
         (showing: 'and enter a value for the argument' do:(
-            enter: '1'
+            type: '1'
         ))
         wait: 0.5
         (showing: 'Click into the "answer" field' do:(
             moveTo: AnswerEditor
-            click: AnswerEditor
+            click
         ))
         (showing: 'Enter the expected result value into the "answer" field' do:(
-            enter: '11'
+            type: '11'
+        ))
+        wait: 0.5
+        (showing: 'and finally, Click on the "search" button' do:(
+            fastMoveTo: SearchButton
+            click
         ))
         wait: 0.5
-        (showing: 'now, Click on the "search" button' do:(
-            moveTo: SearchButton
-            click: SearchButton
-        ))
-        
+        show: 'now, the finder searches for combinations that produce the desired result' 
+        wait: 0.5
+        show: 'and present code which would produce it in the answer list below' 
+        moveTo: ResultList
+        wait: 0.5
+        show: 'if you select any item there,' 
+        selectIndex: 2 
+        wait: 0.5
+        show: 'the implementations will be shown in the top right implementor list' 
+        moveTo: ImplementorsList
+        show: 'if you select any item there,' 
+        selectIndex: 1 
+        wait: 0.5
+        show: 'the implementation is shown in the bottom code editor' 
+        moveTo: CodeView
+        wait: 0.5
+        show: 'Thank you for watching, indeed' 
     )
 
     "Created: / 18-07-2019 / 21:59:06 / Claus Gittinger"
-    "Modified: / 19-07-2019 / 15:17:38 / Claus Gittinger"
+    "Modified: / 19-07-2019 / 16:26:39 / Claus Gittinger"
 ! !
 
 !MethodFinderWindow methodsFor:'private'!