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