MethodFinderWindow.st
author Claus Gittinger <cg@exept.de>
Fri, 09 Nov 2001 09:13:06 +0100
changeset 1531 9d4f8cd101fa
parent 1530 37b18e9a12fb
child 1532 318c295490c1
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
     1
"{ Package: 'stx:libtool2' }"
f67b97bc683a initial checkin
james
parents:
diff changeset
     2
f67b97bc683a initial checkin
james
parents:
diff changeset
     3
ApplicationModel subclass:#MethodFinderWindow
f67b97bc683a initial checkin
james
parents:
diff changeset
     4
	instanceVariableNames:'argumentsEditor messageAnswerEditor receiverEditor receiver
f67b97bc683a initial checkin
james
parents:
diff changeset
     5
		resultSelectors arg2BoxVisible arg1BoxVisible arg4BoxVisible
f67b97bc683a initial checkin
james
parents:
diff changeset
     6
		arg3BoxVisible argCountHolder argCountList argument1Editor
f67b97bc683a initial checkin
james
parents:
diff changeset
     7
		argument2Editor argument3Editor argument4Editor resultSelected
f67b97bc683a initial checkin
james
parents:
diff changeset
     8
		lookAtResultEditor'
f67b97bc683a initial checkin
james
parents:
diff changeset
     9
	classVariableNames:''
f67b97bc683a initial checkin
james
parents:
diff changeset
    10
	poolDictionaries:''
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
    11
	category:'MethodFinder'
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    12
!
f67b97bc683a initial checkin
james
parents:
diff changeset
    13
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    14
!MethodFinderWindow class methodsFor:'documentation'!
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    15
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    16
documentation
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    17
"
1531
9d4f8cd101fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1530
diff changeset
    18
  [author:]
9d4f8cd101fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1530
diff changeset
    19
    ported from Squeak and GUI enhanced by James Hayes james@exept.de
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    20
"
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    21
! !
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    22
f67b97bc683a initial checkin
james
parents:
diff changeset
    23
!MethodFinderWindow class methodsFor:'interface specs'!
f67b97bc683a initial checkin
james
parents:
diff changeset
    24
f67b97bc683a initial checkin
james
parents:
diff changeset
    25
windowSpec
f67b97bc683a initial checkin
james
parents:
diff changeset
    26
    "This resource specification was automatically generated
f67b97bc683a initial checkin
james
parents:
diff changeset
    27
     by the UIPainter of ST/X."
f67b97bc683a initial checkin
james
parents:
diff changeset
    28
f67b97bc683a initial checkin
james
parents:
diff changeset
    29
    "Do not manually edit this!! If it is corrupted,
f67b97bc683a initial checkin
james
parents:
diff changeset
    30
     the UIPainter may not be able to read the specification."
f67b97bc683a initial checkin
james
parents:
diff changeset
    31
f67b97bc683a initial checkin
james
parents:
diff changeset
    32
    "
f67b97bc683a initial checkin
james
parents:
diff changeset
    33
     UIPainter new openOnClass:MethodFinderWindow andSelector:#windowSpec
f67b97bc683a initial checkin
james
parents:
diff changeset
    34
     MethodFinderWindow new openInterface:#windowSpec
f67b97bc683a initial checkin
james
parents:
diff changeset
    35
     MethodFinderWindow open
f67b97bc683a initial checkin
james
parents:
diff changeset
    36
    "
f67b97bc683a initial checkin
james
parents:
diff changeset
    37
f67b97bc683a initial checkin
james
parents:
diff changeset
    38
    <resource: #canvas>
f67b97bc683a initial checkin
james
parents:
diff changeset
    39
f67b97bc683a initial checkin
james
parents:
diff changeset
    40
    ^ 
f67b97bc683a initial checkin
james
parents:
diff changeset
    41
     #(#FullSpec
f67b97bc683a initial checkin
james
parents:
diff changeset
    42
        #name: #windowSpec
f67b97bc683a initial checkin
james
parents:
diff changeset
    43
        #window: 
f67b97bc683a initial checkin
james
parents:
diff changeset
    44
       #(#WindowSpec
f67b97bc683a initial checkin
james
parents:
diff changeset
    45
          #label: 'MethodFinder'
f67b97bc683a initial checkin
james
parents:
diff changeset
    46
          #name: 'MethodFinder'
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
    47
          #min: #(#Point nil nil)
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
    48
          #max: #(#Point nil nil)
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    49
          #bounds: #(#Rectangle 13 23 563 423)
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
    50
          #menu: #menu
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
    51
          #forceRecursiveBackground: false
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    52
        )
f67b97bc683a initial checkin
james
parents:
diff changeset
    53
        #component: 
f67b97bc683a initial checkin
james
parents:
diff changeset
    54
       #(#SpecCollection
f67b97bc683a initial checkin
james
parents:
diff changeset
    55
          #collection: #(
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
    56
           #(#ViewSpec
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    57
              #name: 'Box6'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    58
              #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    59
              #level: 1
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    60
              #component: 
f67b97bc683a initial checkin
james
parents:
diff changeset
    61
             #(#SpecCollection
f67b97bc683a initial checkin
james
parents:
diff changeset
    62
                #collection: #(
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    63
                 #(#SequenceViewSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    64
                    #name: 'List1'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    65
                    #layout: #(#LayoutFrame 0 0 0 0.5 0 0.65 0 1)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    66
                    #hasHorizontalScrollBar: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    67
                    #hasVerticalScrollBar: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    68
                    #autoHideScrollBars: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    69
                    #valueChangeSelector: #updateImplementorsOf:
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
    70
                    #useIndex: true
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    71
                    #sequenceList: #resultHolder
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
    72
                  )
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    73
                 #(#SequenceViewSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    74
                    #name: 'List2'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    75
                    #layout: #(#LayoutFrame 0 0.65 0 0 0 1 0 1)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    76
                    #model: #selectedClassOfResultHolder
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    77
                    #menu: #implementorListMenu
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    78
                    #hasHorizontalScrollBar: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    79
                    #hasVerticalScrollBar: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    80
                    #autoHideScrollBars: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    81
                    #doubleClickSelector: #openBrowserOn:
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    82
                    #useIndex: false
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    83
                    #sequenceList: #classOfResultHolder
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
    84
                  )
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    85
                 #(#ViewSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    86
                    #name: 'Box4'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    87
                    #layout: #(#LayoutFrame 0 0 0 0 0 0.65 -25 0.5)
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    88
                    #component: 
f67b97bc683a initial checkin
james
parents:
diff changeset
    89
                   #(#SpecCollection
f67b97bc683a initial checkin
james
parents:
diff changeset
    90
                      #collection: #(
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    91
                       #(#LabelSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    92
                          #label: 'Receiver'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    93
                          #name: 'ReceiverLabel'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    94
                          #layout: #(#LayoutFrame -4 0.0162791 0 0 -4 0.293023 24 0)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    95
                          #translateLabel: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    96
                          #adjust: #left
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
    97
                        )
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    98
                       #(#ComboListSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    99
                          #name: 'allowedArgments'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   100
                          #layout: #(#LayoutFrame 0 0.339535 1 0 0 0.653488 23 0)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   101
                          #model: #argCountHolder
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   102
                          #comboList: #argCountList
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   103
                          #useIndex: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   104
                        )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   105
                       #(#LabelSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   106
                          #label: 'MessageAnswer'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   107
                          #name: 'MessageAnswerLabel'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   108
                          #layout: #(#LayoutFrame 0 0.6693 0 0 0 0.99023 24 0)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   109
                          #translateLabel: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   110
                          #adjust: #left
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   111
                        )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   112
                       #(#HorizontalPanelViewSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   113
                          #name: 'HorizontalPanel1'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   114
                          #layout: #(#LayoutFrame 0 0 25 0 0 1 0 1)
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   115
                          #horizontalLayout: #fit
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   116
                          #verticalLayout: #fit
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   117
                          #horizontalSpace: 3
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   118
                          #verticalSpace: 3
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   119
                          #component: 
f67b97bc683a initial checkin
james
parents:
diff changeset
   120
                         #(#SpecCollection
f67b97bc683a initial checkin
james
parents:
diff changeset
   121
                            #collection: #(
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   122
                             #(#WorkspaceSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   123
                                #name: 'ReceiverEditor'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   124
                                #tabable: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   125
                                #hasHorizontalScrollBar: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   126
                                #hasVerticalScrollBar: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   127
                                #miniScrollerHorizontal: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   128
                                #miniScrollerVertical: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   129
                                #autoHideScrollBars: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   130
                                #extent: #(#Point 116 149)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   131
                                #postBuildCallback: #receiverWidgetCreated:
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   132
                              )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   133
                             #(#VerticalPanelViewSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   134
                                #name: 'VerticalPanel1'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   135
                                #horizontalLayout: #fit
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   136
                                #verticalLayout: #fit
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   137
                                #horizontalSpace: 3
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   138
                                #verticalSpace: 3
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   139
                                #component: 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   140
                               #(#SpecCollection
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   141
                                  #collection: #(
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   142
                                   #(#ViewSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   143
                                      #name: 'Box1'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   144
                                      #visibilityChannel: #arg1BoxVisible
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   145
                                      #component: 
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   146
                                     #(#SpecCollection
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   147
                                        #collection: #(
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   148
                                         #(#WorkspaceSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   149
                                            #name: 'Arg1Editor'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   150
                                            #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   151
                                            #tabable: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   152
                                            #hasHorizontalScrollBar: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   153
                                            #hasVerticalScrollBar: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   154
                                            #miniScrollerHorizontal: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   155
                                            #miniScrollerVertical: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   156
                                            #autoHideScrollBars: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   157
                                            #postBuildCallback: #argument1WidgetCreated:
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   158
                                          )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   159
                                         )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   160
                                       
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   161
                                      )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   162
                                      #extent: #(#Point 117 48)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   163
                                    )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   164
                                   #(#ViewSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   165
                                      #name: 'Box2'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   166
                                      #visibilityChannel: #arg2BoxVisible
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   167
                                      #component: 
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   168
                                     #(#SpecCollection
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   169
                                        #collection: #(
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   170
                                         #(#WorkspaceSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   171
                                            #name: 'TextEditor5'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   172
                                            #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   173
                                            #tabable: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   174
                                            #hasHorizontalScrollBar: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   175
                                            #hasVerticalScrollBar: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   176
                                            #miniScrollerHorizontal: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   177
                                            #miniScrollerVertical: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   178
                                            #autoHideScrollBars: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   179
                                            #postBuildCallback: #argument2WidgetCreated:
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   180
                                          )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   181
                                         )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   182
                                       
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   183
                                      )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   184
                                      #extent: #(#Point 117 47)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   185
                                    )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   186
                                   #(#ViewSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   187
                                      #name: 'Box3'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   188
                                      #visibilityChannel: #arg3BoxVisible
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   189
                                      #component: 
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   190
                                     #(#SpecCollection
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   191
                                        #collection: #(
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   192
                                         #(#WorkspaceSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   193
                                            #name: 'TextEditor6'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   194
                                            #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   195
                                            #tabable: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   196
                                            #hasHorizontalScrollBar: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   197
                                            #hasVerticalScrollBar: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   198
                                            #miniScrollerHorizontal: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   199
                                            #miniScrollerVertical: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   200
                                            #autoHideScrollBars: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   201
                                            #postBuildCallback: #argument3WidgetCreated:
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   202
                                          )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   203
                                         )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   204
                                       
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   205
                                      )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   206
                                      #extent: #(#Point 117 48)
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   207
                                    )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   208
                                   )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   209
                                 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   210
                                )
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   211
                                #extent: #(#Point 117 149)
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   212
                              )
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   213
                             #(#WorkspaceSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   214
                                #name: 'AnswerEditor'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   215
                                #tabable: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   216
                                #hasHorizontalScrollBar: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   217
                                #hasVerticalScrollBar: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   218
                                #miniScrollerHorizontal: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   219
                                #miniScrollerVertical: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   220
                                #autoHideScrollBars: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   221
                                #extent: #(#Point 117 149)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   222
                                #postBuildCallback: #messageAnswerWidgetCreated:
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   223
                              )
f67b97bc683a initial checkin
james
parents:
diff changeset
   224
                             )
f67b97bc683a initial checkin
james
parents:
diff changeset
   225
                           
f67b97bc683a initial checkin
james
parents:
diff changeset
   226
                          )
f67b97bc683a initial checkin
james
parents:
diff changeset
   227
                        )
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   228
                       )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   229
                     
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   230
                    )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   231
                  )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   232
                 #(#ViewSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   233
                    #name: 'Box5'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   234
                    #layout: #(#LayoutFrame 53 0.224737 -23 0.5 0 0.65 0 0.5)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   235
                    #component: 
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   236
                   #(#SpecCollection
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   237
                      #collection: #(
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   238
                       #(#ActionButtonSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   239
                          #label: 'Clear'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   240
                          #name: 'Button2'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   241
                          #layout: #(#LayoutFrame 0 0 0 0 -5 0.5 0 1)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   242
                          #translateLabel: true
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   243
                          #model: #clear
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   244
                        )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   245
                       #(#ActionButtonSpec
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   246
                          #label: 'Search'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   247
                          #name: 'Button1'
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   248
                          #layout: #(#LayoutFrame 5 0.5 0 0 0 1 0 1)
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   249
                          #translateLabel: true
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   250
                          #tabable: true
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   251
                          #model: #search
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   252
                        )
f67b97bc683a initial checkin
james
parents:
diff changeset
   253
                       )
f67b97bc683a initial checkin
james
parents:
diff changeset
   254
                     
f67b97bc683a initial checkin
james
parents:
diff changeset
   255
                    )
f67b97bc683a initial checkin
james
parents:
diff changeset
   256
                  )
f67b97bc683a initial checkin
james
parents:
diff changeset
   257
                 )
f67b97bc683a initial checkin
james
parents:
diff changeset
   258
               
f67b97bc683a initial checkin
james
parents:
diff changeset
   259
              )
f67b97bc683a initial checkin
james
parents:
diff changeset
   260
            )
f67b97bc683a initial checkin
james
parents:
diff changeset
   261
           )
f67b97bc683a initial checkin
james
parents:
diff changeset
   262
         
f67b97bc683a initial checkin
james
parents:
diff changeset
   263
        )
f67b97bc683a initial checkin
james
parents:
diff changeset
   264
      )
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   265
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   266
    "Modified: / 9.11.2001 / 08:45:48 / cg"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   267
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
   268
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   269
!MethodFinderWindow class methodsFor:'menu specs'!
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   270
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   271
implementorListMenu
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   272
    "This resource specification was automatically generated
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   273
     by the MenuEditor of ST/X."
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   274
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   275
    "Do not manually edit this!! If it is corrupted,
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   276
     the MenuEditor may not be able to read the specification."
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   277
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   278
    "
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   279
     MenuEditor new openOnClass:MethodFinderWindow andSelector:#implementorListMenu
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   280
     (Menu new fromLiteralArrayEncoding:(MethodFinderWindow implementorListMenu)) startUp
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   281
    "
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   282
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   283
    <resource: #menu>
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   284
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   285
    ^ 
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   286
     #(#Menu
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   287
        #(
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   288
         #(#MenuItem
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   289
            #label: 'Browse'
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   290
            #translateLabel: true
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   291
            #value: #openBrowserOnSelectedItem
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   292
          )
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   293
         )
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   294
        nil
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   295
        nil
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   296
      )
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   297
!
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   298
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   299
menu
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   300
    "This resource specification was automatically generated
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   301
     by the MenuEditor of ST/X."
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   302
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   303
    "Do not manually edit this!! If it is corrupted,
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   304
     the MenuEditor may not be able to read the specification."
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   305
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   306
    "
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   307
     MenuEditor new openOnClass:MethodFinderWindow andSelector:#menu
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   308
     (Menu new fromLiteralArrayEncoding:(MethodFinderWindow menu)) startUp
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   309
    "
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   310
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   311
    <resource: #menu>
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   312
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   313
    ^ 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   314
     #(#Menu
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   315
        #(
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   316
         #(#MenuItem
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   317
            #label: '&File'
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   318
            #activeHelpKey: #file
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   319
            #submenu: 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   320
           #(#Menu
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   321
              #(
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   322
               #(#MenuItem
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   323
                  #label: 'Exit'
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   324
                  #value: #closeRequest
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   325
                  #activeHelpKey: #fileExit
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   326
                )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   327
               )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   328
              nil
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   329
              nil
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   330
            )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   331
          )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   332
         #(#MenuItem
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   333
            #label: 'Help'
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   334
            #startGroup: #right
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   335
            #submenu: 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   336
           #(#Menu
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   337
              #(
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   338
               #(#MenuItem
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   339
                  #label: 'Documentation'
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   340
                  #value: #openHTMLDocumentation
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   341
                  #activeHelpKey: #helpTutorial
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   342
                )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   343
               #(#MenuItem
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   344
                  #label: 'About MenuEditor...'
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   345
                  #value: #openAboutThisApplication
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   346
                  #activeHelpKey: #aboutThisAppliaction
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   347
                )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   348
               )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   349
              nil
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   350
              nil
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   351
            )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   352
          )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   353
         )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   354
        nil
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   355
        nil
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   356
      )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   357
! !
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   358
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   359
!MethodFinderWindow methodsFor:'accessing'!
f67b97bc683a initial checkin
james
parents:
diff changeset
   360
f67b97bc683a initial checkin
james
parents:
diff changeset
   361
receiver
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   362
    "Return a copy of the value of the instance variable 'receiver' "
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   363
f67b97bc683a initial checkin
james
parents:
diff changeset
   364
    ^ receiver copy
f67b97bc683a initial checkin
james
parents:
diff changeset
   365
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
   366
f67b97bc683a initial checkin
james
parents:
diff changeset
   367
!MethodFinderWindow methodsFor:'actions'!
f67b97bc683a initial checkin
james
parents:
diff changeset
   368
f67b97bc683a initial checkin
james
parents:
diff changeset
   369
argumentEditorsContents
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   370
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   371
"Determine how many text editors of the arguments are used and store the result
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   372
as argCounter. The result being the minimum between how many editors have
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   373
expressions in and how many are displayed.
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   374
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   375
Add each argument string (key)and the evaluated version (value) to an Ordered Dictionary
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   376
from each of the text editors.
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   377
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   378
Return the OrderedDictionary with the expressions from all the text editors. "
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   379
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   380
     | tempArguments argCounter tempArgument1Editor tempArgument2Editor tempArgument3Editor tempArgument4Editor
f67b97bc683a initial checkin
james
parents:
diff changeset
   381
associationKey associationValue|
f67b97bc683a initial checkin
james
parents:
diff changeset
   382
f67b97bc683a initial checkin
james
parents:
diff changeset
   383
argCounter:=0.
f67b97bc683a initial checkin
james
parents:
diff changeset
   384
f67b97bc683a initial checkin
james
parents:
diff changeset
   385
tempArgument1Editor:= (self cleanInputs: argument1Editor contents).
f67b97bc683a initial checkin
james
parents:
diff changeset
   386
tempArgument2Editor:=  (self cleanInputs: argument2Editor contents).
f67b97bc683a initial checkin
james
parents:
diff changeset
   387
tempArgument3Editor:= (self cleanInputs: argument3Editor contents).
f67b97bc683a initial checkin
james
parents:
diff changeset
   388
f67b97bc683a initial checkin
james
parents:
diff changeset
   389
tempArgument1Editor = '' ifFalse:[argCounter:=argCounter +1].
f67b97bc683a initial checkin
james
parents:
diff changeset
   390
tempArgument2Editor = '' ifFalse:[argCounter:=argCounter +1].
f67b97bc683a initial checkin
james
parents:
diff changeset
   391
tempArgument3Editor = '' ifFalse:[argCounter:=argCounter +1].
f67b97bc683a initial checkin
james
parents:
diff changeset
   392
f67b97bc683a initial checkin
james
parents:
diff changeset
   393
f67b97bc683a initial checkin
james
parents:
diff changeset
   394
argCounter:= (argCounter min: (self argCountHolder value -1)).
f67b97bc683a initial checkin
james
parents:
diff changeset
   395
tempArguments:= OrderedDictionary new:argCounter. 
f67b97bc683a initial checkin
james
parents:
diff changeset
   396
f67b97bc683a initial checkin
james
parents:
diff changeset
   397
(argCounter value >= 1) 
f67b97bc683a initial checkin
james
parents:
diff changeset
   398
                ifTrue:[associationValue:= (Compiler evaluate: tempArgument1Editor).
f67b97bc683a initial checkin
james
parents:
diff changeset
   399
                        ((self isExpression:tempArgument1Editor) or:[ associationValue isNil]) ifTrue:[                  "looks if an expression is typed in"
f67b97bc683a initial checkin
james
parents:
diff changeset
   400
                                        associationKey:=associationValue printString]
f67b97bc683a initial checkin
james
parents:
diff changeset
   401
                                                          ifFalse:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   402
                                        associationKey:=tempArgument1Editor].
f67b97bc683a initial checkin
james
parents:
diff changeset
   403
f67b97bc683a initial checkin
james
parents:
diff changeset
   404
                        tempArguments add: associationKey-> associationValue.
f67b97bc683a initial checkin
james
parents:
diff changeset
   405
                        ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   406
(argCounter value >= 2) 
f67b97bc683a initial checkin
james
parents:
diff changeset
   407
                ifTrue:[ associationValue:= (Compiler evaluate: tempArgument2Editor).
f67b97bc683a initial checkin
james
parents:
diff changeset
   408
                        (((self isExpression:tempArgument2Editor) or:[ associationValue isNil])) ifTrue:[                  "looks if an expression is typed in"
f67b97bc683a initial checkin
james
parents:
diff changeset
   409
                                        associationKey:=associationValue printString]
f67b97bc683a initial checkin
james
parents:
diff changeset
   410
                                                          ifFalse:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   411
                                        associationKey:=tempArgument2Editor].
f67b97bc683a initial checkin
james
parents:
diff changeset
   412
f67b97bc683a initial checkin
james
parents:
diff changeset
   413
                        tempArguments add: associationKey-> associationValue].
f67b97bc683a initial checkin
james
parents:
diff changeset
   414
f67b97bc683a initial checkin
james
parents:
diff changeset
   415
(argCounter value >= 3)
f67b97bc683a initial checkin
james
parents:
diff changeset
   416
                ifTrue:[ associationValue:= (Compiler evaluate: tempArgument3Editor).
f67b97bc683a initial checkin
james
parents:
diff changeset
   417
                        ((self isExpression:tempArgument3Editor) or:[ associationValue isNil]) ifTrue:[                  "looks if an expression is typed in"
f67b97bc683a initial checkin
james
parents:
diff changeset
   418
                                        associationKey:=associationValue printString]
f67b97bc683a initial checkin
james
parents:
diff changeset
   419
                                                          ifFalse:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   420
                                        associationKey:=tempArgument3Editor].
f67b97bc683a initial checkin
james
parents:
diff changeset
   421
f67b97bc683a initial checkin
james
parents:
diff changeset
   422
                        tempArguments add: associationKey-> associationValue].
f67b97bc683a initial checkin
james
parents:
diff changeset
   423
f67b97bc683a initial checkin
james
parents:
diff changeset
   424
f67b97bc683a initial checkin
james
parents:
diff changeset
   425
^tempArguments
f67b97bc683a initial checkin
james
parents:
diff changeset
   426
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   427
f67b97bc683a initial checkin
james
parents:
diff changeset
   428
clear
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   429
    "Reset the contents of all the outputs. Return the receiver."
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   430
f67b97bc683a initial checkin
james
parents:
diff changeset
   431
    receiverEditor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
   432
    argument1Editor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
   433
    argument2Editor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
   434
    argument3Editor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
   435
    messageAnswerEditor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
   436
    self resultHolder value:nil.
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   437
    self classOfResultHolder value: nil.
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   438
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   439
f67b97bc683a initial checkin
james
parents:
diff changeset
   440
isExpression: aString
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   441
      "Return true or false depending on if the subString includes certain characters"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   442
(aString includesSubString:': ') ifTrue:[^true].
f67b97bc683a initial checkin
james
parents:
diff changeset
   443
(aString includesSubString:'+') ifTrue:[^true].
f67b97bc683a initial checkin
james
parents:
diff changeset
   444
(aString includesSubString:'-') ifTrue:[^true].
f67b97bc683a initial checkin
james
parents:
diff changeset
   445
(aString includesSubString:'*') ifTrue:[^true].
f67b97bc683a initial checkin
james
parents:
diff changeset
   446
(aString includesSubString:'/') ifTrue:[^true].
f67b97bc683a initial checkin
james
parents:
diff changeset
   447
(aString includesSubString:'>') ifTrue:[^true].
f67b97bc683a initial checkin
james
parents:
diff changeset
   448
(aString includesSubString:'<') ifTrue:[^true].
f67b97bc683a initial checkin
james
parents:
diff changeset
   449
(aString includesSubString:' new') ifTrue:[^true].
f67b97bc683a initial checkin
james
parents:
diff changeset
   450
(aString includesSubString:'[') &  (aString includesSubString:']') & (aString includesSubString:'.')
f67b97bc683a initial checkin
james
parents:
diff changeset
   451
                                ifTrue:[^false].
f67b97bc683a initial checkin
james
parents:
diff changeset
   452
(aString includesSubString:'.') ifTrue:[^true].
f67b97bc683a initial checkin
james
parents:
diff changeset
   453
f67b97bc683a initial checkin
james
parents:
diff changeset
   454
 ^false
f67b97bc683a initial checkin
james
parents:
diff changeset
   455
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   456
f67b97bc683a initial checkin
james
parents:
diff changeset
   457
messageAnswerEditorContents
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   458
   "Return a cleaned up version of message answer taken from the messageAnswerEditor
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   459
    as an association. The association has cleanedAnswerString as a key and the 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   460
    compiledAnswer as value."
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   461
f67b97bc683a initial checkin
james
parents:
diff changeset
   462
    |   aCleanedAnswerString   compiledAnswer  |
f67b97bc683a initial checkin
james
parents:
diff changeset
   463
f67b97bc683a initial checkin
james
parents:
diff changeset
   464
aCleanedAnswerString:=self cleanInputs: (messageAnswerEditor contents). 
f67b97bc683a initial checkin
james
parents:
diff changeset
   465
f67b97bc683a initial checkin
james
parents:
diff changeset
   466
compiledAnswer:=Compiler evaluate: aCleanedAnswerString.
f67b97bc683a initial checkin
james
parents:
diff changeset
   467
((self isExpression:aCleanedAnswerString) or:[compiledAnswer isNil]) ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   468
                        aCleanedAnswerString:=compiledAnswer printString].
f67b97bc683a initial checkin
james
parents:
diff changeset
   469
f67b97bc683a initial checkin
james
parents:
diff changeset
   470
^aCleanedAnswerString->compiledAnswer.
f67b97bc683a initial checkin
james
parents:
diff changeset
   471
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   472
f67b97bc683a initial checkin
james
parents:
diff changeset
   473
openBrowserOn:anArgument 
f67b97bc683a initial checkin
james
parents:
diff changeset
   474
    "Opens browser on theArgument of a specific class. anArgument being a string with the
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   475
       Class and the selector upon which the browser is to be opened. Return the receiver."
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   476
f67b97bc683a initial checkin
james
parents:
diff changeset
   477
    |aClass aSelector x theArgument|
f67b97bc683a initial checkin
james
parents:
diff changeset
   478
f67b97bc683a initial checkin
james
parents:
diff changeset
   479
    anArgument isNil ifTrue:[
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   480
        ^ self
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   481
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   482
    (anArgument at:1) == $* ifTrue:[
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   483
        theArgument := anArgument copyFrom:2
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   484
    ] ifFalse:[
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   485
        theArgument := anArgument
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   486
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   487
    aClass := theArgument copyUpTo:(Character space).
f67b97bc683a initial checkin
james
parents:
diff changeset
   488
    x := aClass size + 2.
f67b97bc683a initial checkin
james
parents:
diff changeset
   489
    aSelector := theArgument copyFrom:x.
f67b97bc683a initial checkin
james
parents:
diff changeset
   490
    aClass := Smalltalk classNamed:aClass.
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   491
    SystemBrowser openInClass:(aClass) selector:(aSelector asSymbol)   
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   492
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   493
"
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   494
MethodFinderWindow new openBrowserOn: '*SmallInteger +'
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   495
MethodFinderWindow new openBrowserOn: 'String ,'
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   496
MethodFinderWindow new openBrowserOn: 'Number detentBy:atMultiplesOf:snap:' 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   497
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   498
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   499
"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   500
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   501
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   502
openBrowserOnSelectedItem 
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   503
    |sel|
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   504
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   505
    sel := self selectedClassOfResultHolder value.
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   506
    sel isNil ifTrue:[^ self].
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   507
    self openBrowserOn:sel
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   508
!
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   509
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   510
receiverEditorContents
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   511
   "Return a cleaned up version of receiver taken from the receiverEditor
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   512
    as an association. The association has aCleanedRecieverString as a key and the 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   513
    compiledReceiver as value."
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   514
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   515
    |   aCleanedRecieverString   compiledReceiver  |
f67b97bc683a initial checkin
james
parents:
diff changeset
   516
f67b97bc683a initial checkin
james
parents:
diff changeset
   517
aCleanedRecieverString:=self cleanInputs: (receiverEditor contents). 
f67b97bc683a initial checkin
james
parents:
diff changeset
   518
f67b97bc683a initial checkin
james
parents:
diff changeset
   519
compiledReceiver:=Compiler evaluate: aCleanedRecieverString.
f67b97bc683a initial checkin
james
parents:
diff changeset
   520
f67b97bc683a initial checkin
james
parents:
diff changeset
   521
((self isExpression:aCleanedRecieverString) or:[compiledReceiver isNil]) ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   522
                        aCleanedRecieverString:=compiledReceiver printString].
f67b97bc683a initial checkin
james
parents:
diff changeset
   523
^aCleanedRecieverString->compiledReceiver.
f67b97bc683a initial checkin
james
parents:
diff changeset
   524
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   525
f67b97bc683a initial checkin
james
parents:
diff changeset
   526
search
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   527
"Do a search based on the input in the various text editors. Return the receiver."
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   528
| tempReceiver tempAnswer tempArguments anArray resultArray receiverWithArgument mf|
f67b97bc683a initial checkin
james
parents:
diff changeset
   529
self resultHolder value: nil.               "reset the result list"
f67b97bc683a initial checkin
james
parents:
diff changeset
   530
self classOfResultHolder value: nil.        "reset the implementorOf list"
f67b97bc683a initial checkin
james
parents:
diff changeset
   531
f67b97bc683a initial checkin
james
parents:
diff changeset
   532
tempArguments:=self argumentEditorsContents.
f67b97bc683a initial checkin
james
parents:
diff changeset
   533
tempReceiver :=self receiverEditorContents .  
f67b97bc683a initial checkin
james
parents:
diff changeset
   534
tempAnswer:= self messageAnswerEditorContents.   
f67b97bc683a initial checkin
james
parents:
diff changeset
   535
f67b97bc683a initial checkin
james
parents:
diff changeset
   536
"self cleanInputRec:tempReceiver arg:tempArguments ans:tempAnswer."
f67b97bc683a initial checkin
james
parents:
diff changeset
   537
f67b97bc683a initial checkin
james
parents:
diff changeset
   538
f67b97bc683a initial checkin
james
parents:
diff changeset
   539
anArray:=Array new:2.  "creates an array which is to be used as input for the method finder."
f67b97bc683a initial checkin
james
parents:
diff changeset
   540
f67b97bc683a initial checkin
james
parents:
diff changeset
   541
receiverWithArgument:=self mergReciever: (tempReceiver value) WithArgument: (tempArguments values).
f67b97bc683a initial checkin
james
parents:
diff changeset
   542
f67b97bc683a initial checkin
james
parents:
diff changeset
   543
anArray at:1 put:receiverWithArgument;
f67b97bc683a initial checkin
james
parents:
diff changeset
   544
        at:2 put: tempAnswer value.             
f67b97bc683a initial checkin
james
parents:
diff changeset
   545
f67b97bc683a initial checkin
james
parents:
diff changeset
   546
"an array now holds the following array #(#(receiver argument) answer) or #(#(reciever) answer). which should
f67b97bc683a initial checkin
james
parents:
diff changeset
   547
be suitable input for the method finder."
f67b97bc683a initial checkin
james
parents:
diff changeset
   548
mf:= MethodFinder new.
f67b97bc683a initial checkin
james
parents:
diff changeset
   549
resultArray:= mf load: anArray; findMessage. 
f67b97bc683a initial checkin
james
parents:
diff changeset
   550
f67b97bc683a initial checkin
james
parents:
diff changeset
   551
((resultArray at:  1 )includesSubString: 'no single') ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   552
                                self warn: (resultArray at:  1 ).
f67b97bc683a initial checkin
james
parents:
diff changeset
   553
                                ^self
f67b97bc683a initial checkin
james
parents:
diff changeset
   554
                                                              ].  
f67b97bc683a initial checkin
james
parents:
diff changeset
   555
f67b97bc683a initial checkin
james
parents:
diff changeset
   556
"the following then replaces data1 and data2 created by the method finder to the appropriate arguments"
f67b97bc683a initial checkin
james
parents:
diff changeset
   557
resultArray keysAndValuesDo:[:key :value |   | newValue | 
f67b97bc683a initial checkin
james
parents:
diff changeset
   558
      newValue:= value replString: 'data1' withString:(tempReceiver key).
f67b97bc683a initial checkin
james
parents:
diff changeset
   559
(tempArguments size) >= 1 ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   560
      newValue:= newValue replString: 'data2' withString:(tempArguments keyAt:1)].
f67b97bc683a initial checkin
james
parents:
diff changeset
   561
f67b97bc683a initial checkin
james
parents:
diff changeset
   562
(tempArguments size) > 1 ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   563
      newValue:= newValue replString: 'data3' withString:(tempArguments keyAt:2).].
f67b97bc683a initial checkin
james
parents:
diff changeset
   564
f67b97bc683a initial checkin
james
parents:
diff changeset
   565
(tempArguments size) > 2 ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   566
      newValue:= newValue replString: 'data4' withString:(tempArguments keyAt:3).].
f67b97bc683a initial checkin
james
parents:
diff changeset
   567
f67b97bc683a initial checkin
james
parents:
diff changeset
   568
f67b97bc683a initial checkin
james
parents:
diff changeset
   569
                        "    newValue:= value replString: 'data3' withString:(self messageAnswer key). " 
f67b97bc683a initial checkin
james
parents:
diff changeset
   570
f67b97bc683a initial checkin
james
parents:
diff changeset
   571
      newValue:=newValue, ' --> ', (tempAnswer key).
f67b97bc683a initial checkin
james
parents:
diff changeset
   572
f67b97bc683a initial checkin
james
parents:
diff changeset
   573
      resultArray at: key put: newValue.
f67b97bc683a initial checkin
james
parents:
diff changeset
   574
f67b97bc683a initial checkin
james
parents:
diff changeset
   575
              ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   576
f67b97bc683a initial checkin
james
parents:
diff changeset
   577
self resultHolder value: resultArray.
f67b97bc683a initial checkin
james
parents:
diff changeset
   578
resultSelectors:= mf selectors.   "used to find implementors so we do not have to "
f67b97bc683a initial checkin
james
parents:
diff changeset
   579
receiver:=tempReceiver            "search the string for the selector found. Stored as an ordered collection"
f67b97bc683a initial checkin
james
parents:
diff changeset
   580
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   581
f67b97bc683a initial checkin
james
parents:
diff changeset
   582
updateImplementorsOf:anInteger 
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   583
    "Request the implementors of the selected argument provided by aNumber.
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   584
     Return the receiver. "
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   585
      |methods classList aNumber|
f67b97bc683a initial checkin
james
parents:
diff changeset
   586
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   587
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   588
       (anInteger isNil) ifTrue:[^self].
f67b97bc683a initial checkin
james
parents:
diff changeset
   589
      anInteger isNil ifTrue:[aNumber:=1]
f67b97bc683a initial checkin
james
parents:
diff changeset
   590
                      ifFalse:[aNumber:=anInteger].  
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   591
      methods:=SystemBrowser findImplementorsOf: (resultSelectors at:aNumber) in:Smalltalk allClasses ignoreCase:false.
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   592
      classList:=methods asOrderedCollection collect:[:m | m mclass name , ' ' , m selector].
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   593
f67b97bc683a initial checkin
james
parents:
diff changeset
   594
      classList:=(self markMatchingClasses:(resultSelectors at:aNumber) classesWithSelector:classList).
f67b97bc683a initial checkin
james
parents:
diff changeset
   595
f67b97bc683a initial checkin
james
parents:
diff changeset
   596
    self classOfResultHolder value: classList.
f67b97bc683a initial checkin
james
parents:
diff changeset
   597
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
   598
f67b97bc683a initial checkin
james
parents:
diff changeset
   599
!MethodFinderWindow methodsFor:'aspects'!
f67b97bc683a initial checkin
james
parents:
diff changeset
   600
f67b97bc683a initial checkin
james
parents:
diff changeset
   601
arg1BoxVisible
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   602
"Determines if the box should be visble or not. Return true or false"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   603
    arg1BoxVisible isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   604
        arg1BoxVisible := BlockValue
f67b97bc683a initial checkin
james
parents:
diff changeset
   605
                              with:[:vh | vh value >= 2 ]
f67b97bc683a initial checkin
james
parents:
diff changeset
   606
                              argument:(self argCountHolder)
f67b97bc683a initial checkin
james
parents:
diff changeset
   607
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   608
    ^ arg1BoxVisible.
f67b97bc683a initial checkin
james
parents:
diff changeset
   609
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   610
f67b97bc683a initial checkin
james
parents:
diff changeset
   611
arg2BoxVisible
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   612
"Determines if the box should be visble or not. Return true or false"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   613
    arg2BoxVisible isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   614
        arg2BoxVisible := BlockValue
f67b97bc683a initial checkin
james
parents:
diff changeset
   615
                              with:[:vh | vh value >= 3 ]
f67b97bc683a initial checkin
james
parents:
diff changeset
   616
                              argument:(self argCountHolder)
f67b97bc683a initial checkin
james
parents:
diff changeset
   617
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   618
    ^ arg2BoxVisible.
f67b97bc683a initial checkin
james
parents:
diff changeset
   619
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   620
f67b97bc683a initial checkin
james
parents:
diff changeset
   621
arg3BoxVisible
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   622
"Determines if the box should be visble or not. Return true or false"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   623
    arg3BoxVisible isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   624
        arg3BoxVisible := BlockValue
f67b97bc683a initial checkin
james
parents:
diff changeset
   625
                              with:[:vh | vh value >= 4 ]
f67b97bc683a initial checkin
james
parents:
diff changeset
   626
                              argument:(self argCountHolder)
f67b97bc683a initial checkin
james
parents:
diff changeset
   627
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   628
    ^ arg3BoxVisible.
f67b97bc683a initial checkin
james
parents:
diff changeset
   629
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   630
f67b97bc683a initial checkin
james
parents:
diff changeset
   631
arg4BoxVisible
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   632
"Determines if the box should be visble or not. Return true or false"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   633
    arg4BoxVisible isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   634
        arg4BoxVisible := BlockValue
f67b97bc683a initial checkin
james
parents:
diff changeset
   635
                              with:[:vh | vh value >= 5 ]
f67b97bc683a initial checkin
james
parents:
diff changeset
   636
                              argument:(self argCountHolder)
f67b97bc683a initial checkin
james
parents:
diff changeset
   637
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   638
    ^ arg4BoxVisible.
f67b97bc683a initial checkin
james
parents:
diff changeset
   639
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   640
f67b97bc683a initial checkin
james
parents:
diff changeset
   641
argCountHolder
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   642
"Return the value of argCounterHolder which is initialized at 2."
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   643
    argCountHolder isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   644
        argCountHolder := 2 asValue.
f67b97bc683a initial checkin
james
parents:
diff changeset
   645
    ].     
f67b97bc683a initial checkin
james
parents:
diff changeset
   646
    ^ argCountHolder.
f67b97bc683a initial checkin
james
parents:
diff changeset
   647
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   648
f67b97bc683a initial checkin
james
parents:
diff changeset
   649
argCountList
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   650
"Return the argCountList"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   651
    argCountList isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   652
        argCountList := #('0 arguments' '1 argument' '2 arguments' '3 arguments') asValue  
f67b97bc683a initial checkin
james
parents:
diff changeset
   653
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   654
    ^ argCountList.
f67b97bc683a initial checkin
james
parents:
diff changeset
   655
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   656
f67b97bc683a initial checkin
james
parents:
diff changeset
   657
classOfResultHolder
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   658
    "Return a valueHolder which contains a collection with the names of the 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   659
     implementors of a specific message.   "
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   660
f67b97bc683a initial checkin
james
parents:
diff changeset
   661
    |holder|
f67b97bc683a initial checkin
james
parents:
diff changeset
   662
    (holder := builder bindingAt:#classOfResultHolder) isNil ifTrue:[
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   663
        holder := ValueHolder new.
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   664
        builder aspectAt:#classOfResultHolder put:holder
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   665
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   666
    ^ holder
f67b97bc683a initial checkin
james
parents:
diff changeset
   667
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   668
f67b97bc683a initial checkin
james
parents:
diff changeset
   669
resultHolder
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   670
    "Return a value holder which contains the results of a search as a collection."
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   671
f67b97bc683a initial checkin
james
parents:
diff changeset
   672
    |holder|
f67b97bc683a initial checkin
james
parents:
diff changeset
   673
    (holder := builder bindingAt:#resultHolder) isNil ifTrue:[
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   674
        holder := ValueHolder new.
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   675
        builder aspectAt:#resultHolder put:holder.
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   676
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   677
    ^ holder.
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   678
!
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   679
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   680
selectedClassOfResultHolder
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   681
    "Return a valueHolder which contains the index of the selected result class
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   682
     (right list)"
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   683
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   684
    |holder|
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   685
    (holder := builder bindingAt:#selectedClassOfResultHolder) isNil ifTrue:[
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   686
        holder := ValueHolder new.
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   687
        builder aspectAt:#selectedClassOfResultHolder put:holder
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   688
    ].
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   689
    ^ holder
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   690
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
   691
f67b97bc683a initial checkin
james
parents:
diff changeset
   692
!MethodFinderWindow methodsFor:'callBacks'!
f67b97bc683a initial checkin
james
parents:
diff changeset
   693
f67b97bc683a initial checkin
james
parents:
diff changeset
   694
argument1WidgetCreated: aWidget
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   695
"Store the widget as an instance variable. Return the receiver"
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   696
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   697
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   698
        argument1Editor := aWidget scrolledView.
f67b97bc683a initial checkin
james
parents:
diff changeset
   699
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   700
f67b97bc683a initial checkin
james
parents:
diff changeset
   701
argument2WidgetCreated: aWidget
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   702
"Store the widget as an instance variable. Return the receiver"
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   703
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   704
f67b97bc683a initial checkin
james
parents:
diff changeset
   705
        argument2Editor := aWidget scrolledView.
f67b97bc683a initial checkin
james
parents:
diff changeset
   706
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   707
f67b97bc683a initial checkin
james
parents:
diff changeset
   708
argument3WidgetCreated: aWidget
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   709
"Store the widget as an instance variable. Return the receiver"
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   710
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   711
f67b97bc683a initial checkin
james
parents:
diff changeset
   712
        argument3Editor := aWidget scrolledView.
f67b97bc683a initial checkin
james
parents:
diff changeset
   713
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   714
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   715
messageAnswerWidgetCreated: aWidget
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   716
"Store the widget as an instance variable. Return the receiver"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   717
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   718
        messageAnswerEditor := aWidget scrolledView.
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   719
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   720
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   721
openHTMLDocumentation
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   722
    HTMLDocumentView openFullOnDocumentationFile:'tools/misc/TOP.html#METHODFINDER'
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   723
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   724
f67b97bc683a initial checkin
james
parents:
diff changeset
   725
receiverWidgetCreated: aWidget
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   726
"Store the widget as an instance variable. Return the receiver"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   727
f67b97bc683a initial checkin
james
parents:
diff changeset
   728
        receiverEditor := aWidget scrolledView.
f67b97bc683a initial checkin
james
parents:
diff changeset
   729
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
   730
f67b97bc683a initial checkin
james
parents:
diff changeset
   731
!MethodFinderWindow methodsFor:'controlInput'!
f67b97bc683a initial checkin
james
parents:
diff changeset
   732
f67b97bc683a initial checkin
james
parents:
diff changeset
   733
cleanInputs: aDirtyString
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   734
     "Find and remove common mistakes made by the user. Return the 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   735
     'aStringToBeCleaned' variable"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   736
       | aStringToBeCleaned rs position|
f67b97bc683a initial checkin
james
parents:
diff changeset
   737
f67b97bc683a initial checkin
james
parents:
diff changeset
   738
   aStringToBeCleaned:=aDirtyString.
f67b97bc683a initial checkin
james
parents:
diff changeset
   739
f67b97bc683a initial checkin
james
parents:
diff changeset
   740
(aStringToBeCleaned endsWith:(Character cr)) ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   741
                        aStringToBeCleaned:=aStringToBeCleaned copyFrom:1 to: (aStringToBeCleaned size -1).].
f67b97bc683a initial checkin
james
parents:
diff changeset
   742
aStringToBeCleaned:= aStringToBeCleaned withoutSeparators.
f67b97bc683a initial checkin
james
parents:
diff changeset
   743
f67b97bc683a initial checkin
james
parents:
diff changeset
   744
f67b97bc683a initial checkin
james
parents:
diff changeset
   745
rs:=ReadStream on: aStringToBeCleaned.
f67b97bc683a initial checkin
james
parents:
diff changeset
   746
[rs upToAll: '#true'.  rs atEnd] whileFalse: [
f67b97bc683a initial checkin
james
parents:
diff changeset
   747
                        position:= rs position. 
f67b97bc683a initial checkin
james
parents:
diff changeset
   748
                        aStringToBeCleaned:=aStringToBeCleaned copyReplaceFrom: position to: position with: ''. "remove #"
f67b97bc683a initial checkin
james
parents:
diff changeset
   749
                        rs:=ReadStream on: aStringToBeCleaned.
f67b97bc683a initial checkin
james
parents:
diff changeset
   750
                        ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   751
f67b97bc683a initial checkin
james
parents:
diff changeset
   752
rs:=ReadStream on: aStringToBeCleaned.
f67b97bc683a initial checkin
james
parents:
diff changeset
   753
[rs upToAll: '#false'.  rs atEnd] whileFalse: [
f67b97bc683a initial checkin
james
parents:
diff changeset
   754
                        position:= rs position. 
f67b97bc683a initial checkin
james
parents:
diff changeset
   755
                        aStringToBeCleaned:=aStringToBeCleaned copyReplaceFrom: position to: position with: ''. "remove #"
f67b97bc683a initial checkin
james
parents:
diff changeset
   756
                        rs:=ReadStream on: aStringToBeCleaned.
f67b97bc683a initial checkin
james
parents:
diff changeset
   757
                        rs:=ReadStream on: aStringToBeCleaned. ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   758
f67b97bc683a initial checkin
james
parents:
diff changeset
   759
[rs upToAll: '#nil'.  rs atEnd] whileFalse: [
f67b97bc683a initial checkin
james
parents:
diff changeset
   760
                        position:= rs position. 
f67b97bc683a initial checkin
james
parents:
diff changeset
   761
                        aStringToBeCleaned:=aStringToBeCleaned copyReplaceFrom: position to: position with: ''. "remove #"
f67b97bc683a initial checkin
james
parents:
diff changeset
   762
                        rs:=ReadStream on: aStringToBeCleaned.  ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   763
                   ^aStringToBeCleaned    
f67b97bc683a initial checkin
james
parents:
diff changeset
   764
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   765
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   766
markMatchingClasses: aSelector  classesWithSelector:anOrderedCollection
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   767
   " Matches the class of the receiver with all the elements in anOrderedCollection
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   768
    (which are classes with selectors). If a match is found it is marked with an asterisk. 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   769
    The classes are then sorted so the the asterisk appears first. Return the 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   770
    markedClassList."
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   771
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   772
        | unmarkedClassList firstPartOfSelector markedClassList|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   773
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   774
        unmarkedClassList:=anOrderedCollection copy.
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   775
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   776
        unmarkedClassList do:
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   777
                [:classAndMethod | | class |
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   778
                class:=Compiler evaluate:
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   779
                                ((ReadStream on: classAndMethod) upToAll: aSelector).
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   780
                (receiver value class == class) ifTrue:
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   781
                        [unmarkedClassList add: '*', classAndMethod.
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   782
                        unmarkedClassList remove: classAndMethod]].
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   783
f67b97bc683a initial checkin
james
parents:
diff changeset
   784
      unmarkedClassList sort:[:a :b | |rawA rawB|
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   785
                    rawA := (a startsWith:'*') ifTrue:[a copyFrom:2] ifFalse:[a].
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   786
                    rawB := (b startsWith:'*') ifTrue:[b copyFrom:2] ifFalse:[b].
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   787
                    rawA > rawB.  ].
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   788
      markedClassList:= unmarkedClassList. 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   789
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   790
         ^markedClassList
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   791
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   792
f67b97bc683a initial checkin
james
parents:
diff changeset
   793
mergReciever: aReceiver WithArgument: arguments
f67b97bc683a initial checkin
james
parents:
diff changeset
   794
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   795
"Puts the receiver and arguments into an array so it can be of a suitable input for the
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   796
 MethodFinder. Return an array."
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   797
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   798
| tempReceiver tempArguments receiverWithArgument|
f67b97bc683a initial checkin
james
parents:
diff changeset
   799
f67b97bc683a initial checkin
james
parents:
diff changeset
   800
  tempReceiver:= aReceiver.
f67b97bc683a initial checkin
james
parents:
diff changeset
   801
 tempArguments :=  arguments.
f67b97bc683a initial checkin
james
parents:
diff changeset
   802
f67b97bc683a initial checkin
james
parents:
diff changeset
   803
(tempArguments isEmpty or:[(tempArguments) isNil])
f67b97bc683a initial checkin
james
parents:
diff changeset
   804
                ifTrue:[  receiverWithArgument:=Array new:1."no argument"
f67b97bc683a initial checkin
james
parents:
diff changeset
   805
                          receiverWithArgument at:1 put: tempReceiver.     
f67b97bc683a initial checkin
james
parents:
diff changeset
   806
                        ]
f67b97bc683a initial checkin
james
parents:
diff changeset
   807
                ifFalse:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   808
        (tempArguments size = 1)
f67b97bc683a initial checkin
james
parents:
diff changeset
   809
                        ifTrue:[ receiverWithArgument:=Array new:2.
f67b97bc683a initial checkin
james
parents:
diff changeset
   810
                                  receiverWithArgument at:1 put: tempReceiver.      
f67b97bc683a initial checkin
james
parents:
diff changeset
   811
                                  receiverWithArgument at:2 put: (tempArguments at:1)
f67b97bc683a initial checkin
james
parents:
diff changeset
   812
                                ].  "a receiver with an argument"
f67b97bc683a initial checkin
james
parents:
diff changeset
   813
f67b97bc683a initial checkin
james
parents:
diff changeset
   814
        (tempArguments size = 2)
f67b97bc683a initial checkin
james
parents:
diff changeset
   815
                        ifTrue:[ receiverWithArgument:=Array new:3.
f67b97bc683a initial checkin
james
parents:
diff changeset
   816
                                  receiverWithArgument at:1 put: tempReceiver.      
f67b97bc683a initial checkin
james
parents:
diff changeset
   817
                                  (receiverWithArgument at:2 put: (tempArguments at:1)).
f67b97bc683a initial checkin
james
parents:
diff changeset
   818
                                  (receiverWithArgument at:3 put: (tempArguments at:2))
f67b97bc683a initial checkin
james
parents:
diff changeset
   819
                                ].  "a receiver with an argument"
f67b97bc683a initial checkin
james
parents:
diff changeset
   820
        (tempArguments size = 3)
f67b97bc683a initial checkin
james
parents:
diff changeset
   821
                        ifTrue:[ receiverWithArgument:=Array new:4.
f67b97bc683a initial checkin
james
parents:
diff changeset
   822
                                  receiverWithArgument at:1 put: tempReceiver.      
f67b97bc683a initial checkin
james
parents:
diff changeset
   823
                                  (receiverWithArgument at:2 put: (tempArguments at:1)).
f67b97bc683a initial checkin
james
parents:
diff changeset
   824
                                  (receiverWithArgument at:3 put: (tempArguments at:2)).
f67b97bc683a initial checkin
james
parents:
diff changeset
   825
                                  (receiverWithArgument at:4 put: (tempArguments at:3)).
f67b97bc683a initial checkin
james
parents:
diff changeset
   826
f67b97bc683a initial checkin
james
parents:
diff changeset
   827
                                ].  "a receiver with an argument"
f67b97bc683a initial checkin
james
parents:
diff changeset
   828
f67b97bc683a initial checkin
james
parents:
diff changeset
   829
                        ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   830
^receiverWithArgument
f67b97bc683a initial checkin
james
parents:
diff changeset
   831
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
   832
f67b97bc683a initial checkin
james
parents:
diff changeset
   833
!MethodFinderWindow class methodsFor:'documentation'!
f67b97bc683a initial checkin
james
parents:
diff changeset
   834
f67b97bc683a initial checkin
james
parents:
diff changeset
   835
version
f67b97bc683a initial checkin
james
parents:
diff changeset
   836
    ^ '$Header$'
f67b97bc683a initial checkin
james
parents:
diff changeset
   837
! !