MethodFinderWindow.st
changeset 3710 280daf8b3626
parent 3709 6189f7800242
child 3712 688f4186d4f2
equal deleted inserted replaced
3709:6189f7800242 3710:280daf8b3626
   181     <resource: #canvas>
   181     <resource: #canvas>
   182 
   182 
   183     ^ 
   183     ^ 
   184     #(FullSpec
   184     #(FullSpec
   185        name: windowSpec
   185        name: windowSpec
   186        uuid: 'be8179c6-aa21-11e9-8c78-b8f6b1108e05'
   186        uuid: '1871401e-aa2d-11e9-8c78-b8f6b1108e05'
   187        window: 
   187        window: 
   188       (WindowSpec
   188       (WindowSpec
   189          label: 'MethodFinder'
   189          label: 'MethodFinder'
   190          name: 'MethodFinder'
   190          name: 'MethodFinder'
   191          uuid: '5fb0c87a-89f6-11e9-8df0-b8f6b1108e05'
   191          uuid: '5fb0c87a-89f6-11e9-8df0-b8f6b1108e05'
   496                    uuid: '5fb103c6-89f6-11e9-8df0-b8f6b1108e05'
   496                    uuid: '5fb103c6-89f6-11e9-8df0-b8f6b1108e05'
   497                    component: 
   497                    component: 
   498                   (SpecCollection
   498                   (SpecCollection
   499                      collection: (
   499                      collection: (
   500                       (SequenceViewSpec
   500                       (SequenceViewSpec
   501                          name: 'List2'
   501                          name: 'ImplementorsList'
   502                          uuid: '5fb10524-89f6-11e9-8df0-b8f6b1108e05'
   502                          uuid: '5fb10524-89f6-11e9-8df0-b8f6b1108e05'
   503                          model: selectedClassOfResultHolder
   503                          model: selectedClassOfResultHolder
   504                          menu: implementorListMenu
   504                          menu: implementorListMenu
   505                          hasHorizontalScrollBar: true
   505                          hasHorizontalScrollBar: true
   506                          hasVerticalScrollBar: true
   506                          hasVerticalScrollBar: true
   515                          uuid: '4698d744-a993-11e9-b8a4-b8f6b1108e05'
   515                          uuid: '4698d744-a993-11e9-b8a4-b8f6b1108e05'
   516                          component: 
   516                          component: 
   517                         (SpecCollection
   517                         (SpecCollection
   518                            collection: (
   518                            collection: (
   519                             (CodeViewSpec
   519                             (CodeViewSpec
   520                                name: 'CodeView1'
   520                                name: 'CodeView'
   521                                layout: (LayoutFrame 0 0 0 0 0 1 0 1)
   521                                layout: (LayoutFrame 0 0 0 0 0 1 0 1)
   522                                uuid: '5fb106dc-89f6-11e9-8df0-b8f6b1108e05'
   522                                uuid: '5fb106dc-89f6-11e9-8df0-b8f6b1108e05'
   523                                model: codeHolder
   523                                model: codeHolder
   524                                hasHorizontalScrollBar: true
   524                                hasHorizontalScrollBar: true
   525                                hasVerticalScrollBar: true
   525                                hasVerticalScrollBar: true
   544            )
   544            )
   545           )
   545           )
   546         
   546         
   547        )
   547        )
   548      )
   548      )
   549 
       
   550     "Modified: / 19-07-2019 / 15:08:46 / Claus Gittinger"
       
   551 !
   549 !
   552 
   550 
   553 windowSpec_old
   551 windowSpec_old
   554     "This resource specification was automatically generated
   552     "This resource specification was automatically generated
   555      by the UIPainter of ST/X."
   553      by the UIPainter of ST/X."
  1776     HTMLDocumentView openFullOnDocumentationFile:'tools/misc/TOP.html#METHODFINDER'
  1774     HTMLDocumentView openFullOnDocumentationFile:'tools/misc/TOP.html#METHODFINDER'
  1777 !
  1775 !
  1778 
  1776 
  1779 showMeHowItWorks
  1777 showMeHowItWorks
  1780     ShowMeHowItWorks do:#(
  1778     ShowMeHowItWorks do:#(
  1781         ( showing: 'Choose the number of arguments' do:(
  1779         show: 'this little presentation shows, how to find a method when the desired result is known'
       
  1780 
       
  1781         intro
       
  1782         
       
  1783         (unless: ( isEmpty: ReceiverEditor ) do:(
       
  1784             (showing: 'you can clear the fields - by pressing the "Clear" button' do:(
       
  1785                     fastMoveTo: ClearButton
       
  1786                     click
       
  1787             ))
       
  1788         ))
       
  1789         
       
  1790         ( showing: 'start by choosing the number of arguments,' do:(
  1782             moveTo: AllowedArguments
  1791             moveTo: AllowedArguments
  1783             select: '1 argument' 
  1792             select: '1 argument' 
  1784         ))  
  1793         ))  
  1785         (showing: 'Click into the "receiver" field' do:(
  1794         (showing: 'Click into the "receiver" field' do:(
  1786             moveTo: ReceiverEditor
  1795             moveTo: ReceiverEditor
  1787             click: ReceiverEditor 
  1796             click 
  1788         ))
  1797         ))
  1789         wait: 0.5
  1798         wait: 0.5
  1790         (showing: 'Enter a value (or expression) into "receiver" field' do:(
  1799         (showing: 'Enter a value (or expression) into "receiver" field' do:(
  1791             enter: '10'
  1800             type: '10'
  1792         ))
  1801         ))
  1793         wait: 0.5
  1802         wait: 0.5
  1794         (showing: 'Click into the "first argument" field' do:(
  1803         (showing: 'Click into the "first argument" field' do:(
  1795             moveTo: Arg1Editor
  1804             moveTo: Arg1Editor
  1796             click: Arg1Editor
  1805             click
  1797         ))
  1806         ))
  1798         wait: 0.5
  1807         wait: 0.5
  1799         (showing: 'and enter a value for the argument' do:(
  1808         (showing: 'and enter a value for the argument' do:(
  1800             enter: '1'
  1809             type: '1'
  1801         ))
  1810         ))
  1802         wait: 0.5
  1811         wait: 0.5
  1803         (showing: 'Click into the "answer" field' do:(
  1812         (showing: 'Click into the "answer" field' do:(
  1804             moveTo: AnswerEditor
  1813             moveTo: AnswerEditor
  1805             click: AnswerEditor
  1814             click
  1806         ))
  1815         ))
  1807         (showing: 'Enter the expected result value into the "answer" field' do:(
  1816         (showing: 'Enter the expected result value into the "answer" field' do:(
  1808             enter: '11'
  1817             type: '11'
  1809         ))
  1818         ))
  1810         wait: 0.5
  1819         wait: 0.5
  1811         (showing: 'now, Click on the "search" button' do:(
  1820         (showing: 'and finally, Click on the "search" button' do:(
  1812             moveTo: SearchButton
  1821             fastMoveTo: SearchButton
  1813             click: SearchButton
  1822             click
  1814         ))
  1823         ))
  1815         
  1824         wait: 0.5
       
  1825         show: 'now, the finder searches for combinations that produce the desired result' 
       
  1826         wait: 0.5
       
  1827         show: 'and present code which would produce it in the answer list below' 
       
  1828         moveTo: ResultList
       
  1829         wait: 0.5
       
  1830         show: 'if you select any item there,' 
       
  1831         selectIndex: 2 
       
  1832         wait: 0.5
       
  1833         show: 'the implementations will be shown in the top right implementor list' 
       
  1834         moveTo: ImplementorsList
       
  1835         show: 'if you select any item there,' 
       
  1836         selectIndex: 1 
       
  1837         wait: 0.5
       
  1838         show: 'the implementation is shown in the bottom code editor' 
       
  1839         moveTo: CodeView
       
  1840         wait: 0.5
       
  1841         show: 'Thank you for watching, indeed' 
  1816     )
  1842     )
  1817 
  1843 
  1818     "Created: / 18-07-2019 / 21:59:06 / Claus Gittinger"
  1844     "Created: / 18-07-2019 / 21:59:06 / Claus Gittinger"
  1819     "Modified: / 19-07-2019 / 15:17:38 / Claus Gittinger"
  1845     "Modified: / 19-07-2019 / 16:26:39 / Claus Gittinger"
  1820 ! !
  1846 ! !
  1821 
  1847 
  1822 !MethodFinderWindow methodsFor:'private'!
  1848 !MethodFinderWindow methodsFor:'private'!
  1823 
  1849 
  1824 argumentEditorsContents
  1850 argumentEditorsContents