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