MethodFinderWindow.st
author Claus Gittinger <cg@exept.de>
Thu, 10 Mar 2016 13:33:33 +0100
changeset 3254 c3a22fdc3759
parent 3215 4c69b031fb70
child 3289 2902c1233b4e
permissions -rw-r--r--
#BUGFIX class: Tools::ObjectModuleInformation changed: #showInfoForNonClassLib:
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
3193
4ab685b49b91 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
     3
"{ NameSpace: Smalltalk }"
4ab685b49b91 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
     4
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
     5
ApplicationModel subclass:#MethodFinderWindow
f67b97bc683a initial checkin
james
parents:
diff changeset
     6
	instanceVariableNames:'argumentsEditor messageAnswerEditor receiverEditor receiver
f67b97bc683a initial checkin
james
parents:
diff changeset
     7
		resultSelectors arg2BoxVisible arg1BoxVisible arg4BoxVisible
f67b97bc683a initial checkin
james
parents:
diff changeset
     8
		arg3BoxVisible argCountHolder argCountList argument1Editor
f67b97bc683a initial checkin
james
parents:
diff changeset
     9
		argument2Editor argument3Editor argument4Editor resultSelected
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
    10
		lookAtResultEditor codeHolder searchProcess'
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    11
	classVariableNames:''
f67b97bc683a initial checkin
james
parents:
diff changeset
    12
	poolDictionaries:''
3215
4c69b031fb70 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3193
diff changeset
    13
	category:'Interface-Tools'
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    14
!
f67b97bc683a initial checkin
james
parents:
diff changeset
    15
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    16
!MethodFinderWindow class methodsFor:'documentation'!
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    17
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    18
documentation
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    19
"
1531
9d4f8cd101fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1530
diff changeset
    20
  [author:]
9d4f8cd101fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1530
diff changeset
    21
    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
    22
"
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    23
! !
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    24
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    25
!MethodFinderWindow class methodsFor:'constants'!
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    26
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
    27
defaultIcon
3109
92920c76aae3 Mark program icons with resource
Stefan Vogel <sv@exept.de>
parents: 3090
diff changeset
    28
    <resource: #programImage>
92920c76aae3 Mark program icons with resource
Stefan Vogel <sv@exept.de>
parents: 3090
diff changeset
    29
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
    30
    ^ ToolbarIconLibrary methodFinder24x24Icon
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
    31
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
    32
    "Created: / 01-06-2012 / 13:05:11 / cg"
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
    33
!
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
    34
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    35
markerForImplementingClass
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    36
    ^ '=> '.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    37
    ^ '*'
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    38
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    39
    "Created: / 13.11.2001 / 12:09:52 / cg"
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    40
    "Modified: / 13.11.2001 / 12:11:57 / cg"
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    41
! !
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    42
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    43
!MethodFinderWindow class methodsFor:'interface specs'!
f67b97bc683a initial checkin
james
parents:
diff changeset
    44
f67b97bc683a initial checkin
james
parents:
diff changeset
    45
windowSpec
f67b97bc683a initial checkin
james
parents:
diff changeset
    46
    "This resource specification was automatically generated
f67b97bc683a initial checkin
james
parents:
diff changeset
    47
     by the UIPainter of ST/X."
f67b97bc683a initial checkin
james
parents:
diff changeset
    48
f67b97bc683a initial checkin
james
parents:
diff changeset
    49
    "Do not manually edit this!! If it is corrupted,
f67b97bc683a initial checkin
james
parents:
diff changeset
    50
     the UIPainter may not be able to read the specification."
f67b97bc683a initial checkin
james
parents:
diff changeset
    51
f67b97bc683a initial checkin
james
parents:
diff changeset
    52
    "
f67b97bc683a initial checkin
james
parents:
diff changeset
    53
     UIPainter new openOnClass:MethodFinderWindow andSelector:#windowSpec
f67b97bc683a initial checkin
james
parents:
diff changeset
    54
     MethodFinderWindow new openInterface:#windowSpec
f67b97bc683a initial checkin
james
parents:
diff changeset
    55
     MethodFinderWindow open
f67b97bc683a initial checkin
james
parents:
diff changeset
    56
    "
f67b97bc683a initial checkin
james
parents:
diff changeset
    57
f67b97bc683a initial checkin
james
parents:
diff changeset
    58
    <resource: #canvas>
f67b97bc683a initial checkin
james
parents:
diff changeset
    59
f67b97bc683a initial checkin
james
parents:
diff changeset
    60
    ^ 
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    61
     #(FullSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    62
        name: windowSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    63
        window: 
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    64
       (WindowSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    65
          label: 'MethodFinder'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    66
          name: 'MethodFinder'
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
    67
          bounds: (Rectangle 0 0 798 595)
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    68
          menu: menu
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
    69
          icon: defaultIcon
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    70
        )
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    71
        component: 
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    72
       (SpecCollection
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    73
          collection: (
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    74
           (VariableHorizontalPanelSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    75
              name: 'VariableHorizontalPanel1'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    76
              layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    77
              snapMode: both
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    78
              component: 
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    79
             (SpecCollection
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    80
                collection: (
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    81
                 (ViewSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    82
                    name: 'LeftBox'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    83
                    level: 1
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    84
                    component: 
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    85
                   (SpecCollection
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    86
                      collection: (
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    87
                       (ViewSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    88
                          name: 'ReceiverArgBox'
2887
01e4c1a45e35 changed:
Claus Gittinger <cg@exept.de>
parents: 2886
diff changeset
    89
                          layout: (LayoutFrame 0 0 0 0 0 1 -100 0.5)
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    90
                          component: 
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    91
                         (SpecCollection
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    92
                            collection: (
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    93
                             (LabelSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    94
                                label: 'Receiver'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    95
                                name: 'ReceiverLabel'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    96
                                layout: (LayoutFrame 0 0 0 0 0 0.34 24 0)
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    97
                                translateLabel: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    98
                              )
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
    99
                             (ComboListSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   100
                                name: 'allowedArgments'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   101
                                layout: (LayoutFrame 0 0.34 1 0 0 0.64 23 0)
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   102
                                model: argCountHolder
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   103
                                comboList: argCountList
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   104
                                useIndex: true
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   105
                              )
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   106
                             (LabelSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   107
                                label: 'Answer'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   108
                                name: 'MessageAnswerLabel'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   109
                                layout: (LayoutFrame 0 0.64 0 0 0 1 24 0)
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   110
                                translateLabel: true
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   111
                              )
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   112
                             (HorizontalPanelViewSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   113
                                name: 'HorizontalPanel1'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   114
                                layout: (LayoutFrame 0 0 25 0 0 1 0 1)
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   115
                                horizontalLayout: fit
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   116
                                verticalLayout: fit
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   117
                                horizontalSpace: 3
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   118
                                verticalSpace: 3
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   119
                                component: 
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   120
                               (SpecCollection
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   121
                                  collection: (
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   122
                                   (WorkspaceSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   123
                                      name: 'ReceiverEditor'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   124
                                      tabable: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   125
                                      hasHorizontalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   126
                                      hasVerticalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   127
                                      miniScrollerHorizontal: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   128
                                      miniScrollerVertical: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   129
                                      autoHideScrollBars: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   130
                                      hasKeyboardFocusInitially: false
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
   131
                                      extent: (Point 113 172)
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   132
                                      postBuildCallback: receiverWidgetCreated:
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   133
                                    )
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   134
                                   (VerticalPanelViewSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   135
                                      name: 'VerticalPanel1'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   136
                                      horizontalLayout: fit
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   137
                                      verticalLayout: fit
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   138
                                      horizontalSpace: 3
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   139
                                      verticalSpace: 3
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   140
                                      component: 
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   141
                                     (SpecCollection
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   142
                                        collection: (
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   143
                                         (ViewSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   144
                                            name: 'Box1'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   145
                                            visibilityChannel: arg1BoxVisible
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   146
                                            component: 
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   147
                                           (SpecCollection
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   148
                                              collection: (
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   149
                                               (WorkspaceSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   150
                                                  name: 'Arg1Editor'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   151
                                                  layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   152
                                                  tabable: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   153
                                                  hasHorizontalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   154
                                                  hasVerticalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   155
                                                  miniScrollerHorizontal: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   156
                                                  miniScrollerVertical: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   157
                                                  autoHideScrollBars: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   158
                                                  hasKeyboardFocusInitially: false
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   159
                                                  postBuildCallback: argument1WidgetCreated:
1532
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
                                            )
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
   164
                                            extent: (Point 114 55)
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   165
                                          )
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   166
                                         (ViewSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   167
                                            name: 'Box2'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   168
                                            visibilityChannel: arg2BoxVisible
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   169
                                            component: 
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   170
                                           (SpecCollection
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   171
                                              collection: (
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   172
                                               (WorkspaceSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   173
                                                  name: 'TextEditor5'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   174
                                                  layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   175
                                                  tabable: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   176
                                                  hasHorizontalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   177
                                                  hasVerticalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   178
                                                  miniScrollerHorizontal: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   179
                                                  miniScrollerVertical: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   180
                                                  autoHideScrollBars: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   181
                                                  hasKeyboardFocusInitially: false
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   182
                                                  postBuildCallback: argument2WidgetCreated:
1532
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
                                            )
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
   187
                                            extent: (Point 114 56)
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   188
                                          )
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   189
                                         (ViewSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   190
                                            name: 'Box3'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   191
                                            visibilityChannel: arg3BoxVisible
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   192
                                            component: 
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   193
                                           (SpecCollection
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   194
                                              collection: (
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   195
                                               (WorkspaceSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   196
                                                  name: 'TextEditor6'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   197
                                                  layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   198
                                                  tabable: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   199
                                                  hasHorizontalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   200
                                                  hasVerticalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   201
                                                  miniScrollerHorizontal: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   202
                                                  miniScrollerVertical: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   203
                                                  autoHideScrollBars: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   204
                                                  hasKeyboardFocusInitially: false
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   205
                                                  postBuildCallback: argument3WidgetCreated:
1532
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
                                             
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   209
                                            )
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
   210
                                            extent: (Point 114 55)
1530
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
                                         )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   213
                                       
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   214
                                      )
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
   215
                                      extent: (Point 114 172)
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   216
                                    )
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   217
                                   (WorkspaceSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   218
                                      name: 'AnswerEditor'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   219
                                      tabable: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   220
                                      hasHorizontalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   221
                                      hasVerticalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   222
                                      miniScrollerHorizontal: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   223
                                      miniScrollerVertical: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   224
                                      autoHideScrollBars: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   225
                                      hasKeyboardFocusInitially: false
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
   226
                                      extent: (Point 114 172)
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   227
                                      postBuildCallback: messageAnswerWidgetCreated:
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   228
                                    )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   229
                                   )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   230
                                 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   231
                                )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   232
                              )
1532
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
                           
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   235
                          )
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   236
                        )
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   237
                       (ViewSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   238
                          name: 'ReceiverArgBoxActionBox'
2887
01e4c1a45e35 changed:
Claus Gittinger <cg@exept.de>
parents: 2886
diff changeset
   239
                          layout: (LayoutFrame 0 0 -98 0.5 0 1 -75 0.5)
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   240
                          component: 
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   241
                         (SpecCollection
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   242
                            collection: (
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   243
                             (ActionButtonSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   244
                                label: 'Clear'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   245
                                name: 'Button2'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   246
                                layout: (LayoutFrame 5 0 0 0 -5 0.5 0 1)
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   247
                                translateLabel: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   248
                                model: clear
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   249
                              )
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   250
                             (ActionButtonSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   251
                                label: 'Search'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   252
                                name: 'Button1'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   253
                                layout: (LayoutFrame 5 0.5 0 0 -5 1 0 1)
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   254
                                translateLabel: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   255
                                tabable: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   256
                                model: search
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   257
                              )
f67b97bc683a initial checkin
james
parents:
diff changeset
   258
                             )
f67b97bc683a initial checkin
james
parents:
diff changeset
   259
                           
f67b97bc683a initial checkin
james
parents:
diff changeset
   260
                          )
f67b97bc683a initial checkin
james
parents:
diff changeset
   261
                        )
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   262
                       (ViewSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   263
                          name: 'MatchActionBox'
2887
01e4c1a45e35 changed:
Claus Gittinger <cg@exept.de>
parents: 2886
diff changeset
   264
                          layout: (LayoutFrame 0 0 -70 0.5 0 1 -20 0.5)
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   265
                          component: 
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   266
                         (SpecCollection
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   267
                            collection: (
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   268
                             (LabelSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   269
                                label: 'Selector Pattern:'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   270
                                name: 'Label1'
2887
01e4c1a45e35 changed:
Claus Gittinger <cg@exept.de>
parents: 2886
diff changeset
   271
                                layout: (LayoutFrame 0 0 0 0 0 0.5 25 0)
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   272
                                translateLabel: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   273
                                adjust: left
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   274
                              )
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   275
                             (InputFieldSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   276
                                name: 'EntryField1'
2887
01e4c1a45e35 changed:
Claus Gittinger <cg@exept.de>
parents: 2886
diff changeset
   277
                                layout: (LayoutFrame 0 0 -25 1 0 0.5 -5 1)
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   278
                                model: selectorPattern
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   279
                                immediateAccept: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   280
                                acceptOnReturn: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   281
                                acceptOnTab: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   282
                                acceptOnPointerLeave: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   283
                              )
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   284
                             (ActionButtonSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   285
                                label: 'Search'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   286
                                name: 'Button4'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   287
                                layout: (LayoutFrame 5 0.5 -25 1 -5 1 0 1)
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   288
                                translateLabel: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   289
                                tabable: true
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   290
                                model: searchPatternMatchesInBackground
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   291
                              )
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   292
                             )
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   293
                           
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   294
                          )
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   295
                        )
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   296
                       (SequenceViewSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   297
                          name: 'ResultList'
2887
01e4c1a45e35 changed:
Claus Gittinger <cg@exept.de>
parents: 2886
diff changeset
   298
                          layout: (LayoutFrame 0 0 -15 0.5 0 1 0 1)
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   299
                          model: selectedImplementorsHolder
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   300
                          menu: resultListMenu
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   301
                          hasHorizontalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   302
                          hasVerticalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   303
                          autoHideScrollBars: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   304
                          valueChangeSelector: updateImplementorsOf:
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   305
                          useIndex: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   306
                          sequenceList: resultHolder
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   307
                        )
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   308
                       )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   309
                     
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   310
                    )
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   311
                  )
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   312
                 (VariableVerticalPanelSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   313
                    name: 'VariableVerticalPanel1'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   314
                    component: 
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   315
                   (SpecCollection
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   316
                      collection: (
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   317
                       (SequenceViewSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   318
                          name: 'List2'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   319
                          model: selectedClassOfResultHolder
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   320
                          menu: implementorListMenu
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   321
                          hasHorizontalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   322
                          hasVerticalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   323
                          autoHideScrollBars: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   324
                          doubleClickSelector: openBrowserOn:
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   325
                          valueChangeSelector: selectedClassOfResultHolderChanged
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   326
                          useIndex: false
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   327
                          sequenceList: classOfResultHolder
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   328
                        )
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   329
                       (CodeViewSpec
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   330
                          name: 'CodeView'
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   331
                          model: codeHolder
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   332
                          hasHorizontalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   333
                          hasVerticalScrollBar: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   334
                          autoHideScrollBars: true
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   335
                          hasKeyboardFocusInitially: false
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   336
                          postBuildCallback: sourceCodeWidgetCreated:
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   337
                        )
f67b97bc683a initial checkin
james
parents:
diff changeset
   338
                       )
f67b97bc683a initial checkin
james
parents:
diff changeset
   339
                     
f67b97bc683a initial checkin
james
parents:
diff changeset
   340
                    )
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   341
                    handles: (Any 0.5 1.0)
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   342
                  )
f67b97bc683a initial checkin
james
parents:
diff changeset
   343
                 )
f67b97bc683a initial checkin
james
parents:
diff changeset
   344
               
f67b97bc683a initial checkin
james
parents:
diff changeset
   345
              )
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
   346
              handles: (Any 0.443786982248521 1.0)
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   347
            )
f67b97bc683a initial checkin
james
parents:
diff changeset
   348
           )
f67b97bc683a initial checkin
james
parents:
diff changeset
   349
         
f67b97bc683a initial checkin
james
parents:
diff changeset
   350
        )
f67b97bc683a initial checkin
james
parents:
diff changeset
   351
      )
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   352
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   353
    "Modified: / 21-09-2012 / 11:09:44 / cg"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   354
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
   355
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   356
!MethodFinderWindow class methodsFor:'menu specs'!
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   357
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   358
implementorListMenu
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   359
    "This resource specification was automatically generated
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   360
     by the MenuEditor of ST/X."
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   361
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   362
    "Do not manually edit this!! If it is corrupted,
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   363
     the MenuEditor may not be able to read the specification."
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   364
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   365
    "
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   366
     MenuEditor new openOnClass:MethodFinderWindow andSelector:#implementorListMenu
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   367
     (Menu new fromLiteralArrayEncoding:(MethodFinderWindow implementorListMenu)) startUp
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   368
    "
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   369
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   370
    <resource: #menu>
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   371
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   372
    ^ 
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   373
     #(#Menu
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   374
        #(
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   375
         #(#MenuItem
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   376
            #label: 'Browse'
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   377
            #translateLabel: true
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   378
            #value: #openBrowserOnSelectedItem
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   379
          )
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   380
         )
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   381
        nil
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   382
        nil
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   383
      )
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   384
!
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   385
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   386
menu
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   387
    "This resource specification was automatically generated
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   388
     by the MenuEditor of ST/X."
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   389
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   390
    "Do not manually edit this!! If it is corrupted,
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   391
     the MenuEditor may not be able to read the specification."
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   392
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   393
    "
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   394
     MenuEditor new openOnClass:MethodFinderWindow andSelector:#menu
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   395
     (Menu new fromLiteralArrayEncoding:(MethodFinderWindow menu)) startUp
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   396
    "
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   397
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   398
    <resource: #menu>
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   399
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   400
    ^ 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   401
     #(#Menu
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   402
        #(
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   403
         #(#MenuItem
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   404
            #label: '&File'
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   405
            #activeHelpKey: #file
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   406
            #submenu: 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   407
           #(#Menu
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   408
              #(
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   409
               #(#MenuItem
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   410
                  #label: 'Exit'
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   411
                  #value: #closeRequest
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   412
                  #activeHelpKey: #fileExit
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   413
                )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   414
               )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   415
              nil
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   416
              nil
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   417
            )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   418
          )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   419
         #(#MenuItem
3193
4ab685b49b91 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
   420
            label: 'MENU_Help'
4ab685b49b91 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
   421
            startGroup: conditionalRight
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   422
            #submenu: 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   423
           #(#Menu
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   424
              #(
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   425
               #(#MenuItem
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   426
                  #label: 'Documentation'
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   427
                  #value: #openHTMLDocumentation
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   428
                  #activeHelpKey: #helpTutorial
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   429
                )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   430
               #(#MenuItem
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   431
                  #label: 'About MethodFinder...'
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   432
                  #value: #openAboutThisApplication
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   433
                  #activeHelpKey: #aboutThisAppliaction
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   434
                )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   435
               )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   436
              nil
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   437
              nil
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   438
            )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   439
          )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   440
         )
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   441
        nil
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   442
        nil
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   443
      )
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   444
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   445
    "Modified: / 13.11.2001 / 12:36:39 / cg"
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   446
!
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   447
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   448
resultListMenu
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   449
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   450
     by the MenuEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   451
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   452
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   453
     the MenuEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   454
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   455
    "
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   456
     MenuEditor new openOnClass:MethodFinderWindow andSelector:#implementorListMenu
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   457
     (Menu new fromLiteralArrayEncoding:(MethodFinderWindow implementorListMenu)) startUp
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   458
    "
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   459
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   460
    <resource: #menu>
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   461
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   462
    ^ 
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   463
     #(#Menu
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   464
        #(
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   465
         #(#MenuItem
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   466
            #label: 'Browse Senders'
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   467
            #translateLabel: true
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   468
            #value: #openBrowserOnSenderOfSelectedResultItem
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   469
          )
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   470
         #(#MenuItem
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   471
            #label: 'Browse Implementors'
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   472
            #translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   473
            #value: #openBrowserOnSelectedResultItem
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   474
          )
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   475
         )
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   476
        nil
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   477
        nil
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   478
      )
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   479
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   480
    "Created: / 21-09-2012 / 11:05:15 / cg"
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   481
! !
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   482
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   483
!MethodFinderWindow methodsFor:'accessing'!
f67b97bc683a initial checkin
james
parents:
diff changeset
   484
f67b97bc683a initial checkin
james
parents:
diff changeset
   485
receiver
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   486
    "Return a copy of the value of the instance variable 'receiver' "
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   487
f67b97bc683a initial checkin
james
parents:
diff changeset
   488
    ^ receiver copy
f67b97bc683a initial checkin
james
parents:
diff changeset
   489
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
   490
f67b97bc683a initial checkin
james
parents:
diff changeset
   491
!MethodFinderWindow methodsFor:'actions'!
f67b97bc683a initial checkin
james
parents:
diff changeset
   492
f67b97bc683a initial checkin
james
parents:
diff changeset
   493
argumentEditorsContents
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   494
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   495
"Determine how many text editors of the arguments are used and store the result
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   496
as argCounter. The result being the minimum between how many editors have
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   497
expressions in and how many are displayed.
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   498
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   499
Add each argument string (key)and the evaluated version (value) to an Ordered Dictionary
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   500
from each of the text editors.
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   501
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   502
Return the OrderedDictionary with the expressions from all the text editors. "
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   503
2165
a5ff995ed0d7 cleanup
sr
parents: 2046
diff changeset
   504
     | tempArguments argCounter tempArgument1Editor tempArgument2Editor tempArgument3Editor
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   505
associationKey associationValue|
f67b97bc683a initial checkin
james
parents:
diff changeset
   506
f67b97bc683a initial checkin
james
parents:
diff changeset
   507
argCounter:=0.
f67b97bc683a initial checkin
james
parents:
diff changeset
   508
f67b97bc683a initial checkin
james
parents:
diff changeset
   509
tempArgument1Editor:= (self cleanInputs: argument1Editor contents).
f67b97bc683a initial checkin
james
parents:
diff changeset
   510
tempArgument2Editor:=  (self cleanInputs: argument2Editor contents).
f67b97bc683a initial checkin
james
parents:
diff changeset
   511
tempArgument3Editor:= (self cleanInputs: argument3Editor contents).
f67b97bc683a initial checkin
james
parents:
diff changeset
   512
f67b97bc683a initial checkin
james
parents:
diff changeset
   513
tempArgument1Editor = '' ifFalse:[argCounter:=argCounter +1].
f67b97bc683a initial checkin
james
parents:
diff changeset
   514
tempArgument2Editor = '' ifFalse:[argCounter:=argCounter +1].
f67b97bc683a initial checkin
james
parents:
diff changeset
   515
tempArgument3Editor = '' ifFalse:[argCounter:=argCounter +1].
f67b97bc683a initial checkin
james
parents:
diff changeset
   516
f67b97bc683a initial checkin
james
parents:
diff changeset
   517
f67b97bc683a initial checkin
james
parents:
diff changeset
   518
argCounter:= (argCounter min: (self argCountHolder value -1)).
f67b97bc683a initial checkin
james
parents:
diff changeset
   519
tempArguments:= OrderedDictionary new:argCounter. 
f67b97bc683a initial checkin
james
parents:
diff changeset
   520
f67b97bc683a initial checkin
james
parents:
diff changeset
   521
(argCounter value >= 1) 
f67b97bc683a initial checkin
james
parents:
diff changeset
   522
                ifTrue:[associationValue:= (Compiler evaluate: tempArgument1Editor).
f67b97bc683a initial checkin
james
parents:
diff changeset
   523
                        ((self isExpression:tempArgument1Editor) or:[ associationValue isNil]) ifTrue:[                  "looks if an expression is typed in"
f67b97bc683a initial checkin
james
parents:
diff changeset
   524
                                        associationKey:=associationValue printString]
f67b97bc683a initial checkin
james
parents:
diff changeset
   525
                                                          ifFalse:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   526
                                        associationKey:=tempArgument1Editor].
f67b97bc683a initial checkin
james
parents:
diff changeset
   527
f67b97bc683a initial checkin
james
parents:
diff changeset
   528
                        tempArguments add: associationKey-> associationValue.
f67b97bc683a initial checkin
james
parents:
diff changeset
   529
                        ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   530
(argCounter value >= 2) 
f67b97bc683a initial checkin
james
parents:
diff changeset
   531
                ifTrue:[ associationValue:= (Compiler evaluate: tempArgument2Editor).
f67b97bc683a initial checkin
james
parents:
diff changeset
   532
                        (((self isExpression:tempArgument2Editor) or:[ associationValue isNil])) ifTrue:[                  "looks if an expression is typed in"
f67b97bc683a initial checkin
james
parents:
diff changeset
   533
                                        associationKey:=associationValue printString]
f67b97bc683a initial checkin
james
parents:
diff changeset
   534
                                                          ifFalse:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   535
                                        associationKey:=tempArgument2Editor].
f67b97bc683a initial checkin
james
parents:
diff changeset
   536
f67b97bc683a initial checkin
james
parents:
diff changeset
   537
                        tempArguments add: associationKey-> associationValue].
f67b97bc683a initial checkin
james
parents:
diff changeset
   538
f67b97bc683a initial checkin
james
parents:
diff changeset
   539
(argCounter value >= 3)
f67b97bc683a initial checkin
james
parents:
diff changeset
   540
                ifTrue:[ associationValue:= (Compiler evaluate: tempArgument3Editor).
f67b97bc683a initial checkin
james
parents:
diff changeset
   541
                        ((self isExpression:tempArgument3Editor) or:[ associationValue isNil]) ifTrue:[                  "looks if an expression is typed in"
f67b97bc683a initial checkin
james
parents:
diff changeset
   542
                                        associationKey:=associationValue printString]
f67b97bc683a initial checkin
james
parents:
diff changeset
   543
                                                          ifFalse:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   544
                                        associationKey:=tempArgument3Editor].
f67b97bc683a initial checkin
james
parents:
diff changeset
   545
f67b97bc683a initial checkin
james
parents:
diff changeset
   546
                        tempArguments add: associationKey-> associationValue].
f67b97bc683a initial checkin
james
parents:
diff changeset
   547
f67b97bc683a initial checkin
james
parents:
diff changeset
   548
f67b97bc683a initial checkin
james
parents:
diff changeset
   549
^tempArguments
f67b97bc683a initial checkin
james
parents:
diff changeset
   550
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   551
f67b97bc683a initial checkin
james
parents:
diff changeset
   552
clear
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   553
    "Reset the contents of all the outputs. Return the receiver."
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   554
f67b97bc683a initial checkin
james
parents:
diff changeset
   555
    receiverEditor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
   556
    argument1Editor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
   557
    argument2Editor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
   558
    argument3Editor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
   559
    messageAnswerEditor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
   560
    self resultHolder value:nil.
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   561
    self classOfResultHolder value: nil.
2730
abcb0402d5ba changed: #clear
Claus Gittinger <cg@exept.de>
parents: 2459
diff changeset
   562
    codeHolder value:nil.
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   563
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   564
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   565
extractClassAndSelectorFrom:anArgument 
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   566
    "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
   567
       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
   568
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   569
    |aClass aSelector x theArgument marker|
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   570
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   571
    anArgument isNil ifTrue:[
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   572
        ^ nil
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   573
    ].
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   574
    marker := self class markerForImplementingClass.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   575
3003
a09b88434b56 refactored
Claus Gittinger <cg@exept.de>
parents: 2927
diff changeset
   576
    theArgument := anArgument string withoutPrefix:marker.
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   577
    aClass := theArgument copyUpTo:(Character space).
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   578
    x := aClass size + 2.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   579
    aSelector := theArgument copyFrom:x.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   580
    aClass := Smalltalk classNamed:aClass.
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   581
    (aSelector startsWith:'class ') ifTrue:[
3003
a09b88434b56 refactored
Claus Gittinger <cg@exept.de>
parents: 2927
diff changeset
   582
        aSelector := aSelector withoutPrefix:'class '.
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   583
        aClass := aClass class.
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   584
    ].
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   585
    ^ aClass -> aSelector asSymbol
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   586
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   587
"
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   588
MethodFinderWindow new extractClassAndSelectorFrom: '*SmallInteger +'
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   589
MethodFinderWindow new extractClassAndSelectorFrom: 'String ,'       
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   590
MethodFinderWindow new extractClassAndSelectorFrom: 'Number detentBy:atMultiplesOf:snap:' 
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   591
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   592
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   593
"
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   594
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   595
    "Modified: / 27-04-2012 / 15:05:53 / cg"
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   596
!
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   597
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   598
isExpression:aString 
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   599
    "Return true or false depending on if the subString includes certain characters"
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   600
    
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   601
    (aString includesSubString:': ') ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   602
        ^ true
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   603
    ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   604
    (aString includes:$+) ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   605
        ^ true
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   606
    ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   607
    (aString includes:$-) ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   608
        ^ true
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   609
    ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   610
    (aString includes:$*) ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   611
        ^ true
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   612
    ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   613
    (aString includes:$/) ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   614
        ^ true
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   615
    ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   616
    (aString includes:$>) ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   617
        ^ true
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   618
    ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   619
    (aString includes:$<) ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   620
        ^ true
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   621
    ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   622
    (aString includesSubString:' new') ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   623
        ^ true
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   624
    ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   625
    (aString includes:$[) 
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   626
        & (aString includes:$]) 
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   627
        & (aString includes:$.) ifTrue:[ ^ false ].
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   628
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   629
    (aString includes:$.) ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   630
        ^ true
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   631
    ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   632
    ^ false
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   633
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   634
f67b97bc683a initial checkin
james
parents:
diff changeset
   635
messageAnswerEditorContents
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   636
    "Return a cleaned up version of message answer taken from the messageAnswerEditor
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   637
     as an association. The association has cleanedAnswerString as a key and the
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   638
     compiledAnswer as value."
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   639
    
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   640
    |aCleanedAnswerString compiledAnswer|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   641
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   642
    aCleanedAnswerString := self cleanInputs:(messageAnswerEditor contents).
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   643
    compiledAnswer := Compiler evaluate:aCleanedAnswerString.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   644
    ((self isExpression:aCleanedAnswerString) or:[ compiledAnswer isNil ]) ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   645
        aCleanedAnswerString := compiledAnswer printString
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   646
    ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   647
    ^ aCleanedAnswerString -> compiledAnswer.
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   648
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   649
f67b97bc683a initial checkin
james
parents:
diff changeset
   650
openBrowserOn:anArgument 
f67b97bc683a initial checkin
james
parents:
diff changeset
   651
    "Opens browser on theArgument of a specific class. anArgument being a string with the
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   652
       Class and the selector upon which the browser is to be opened. Return the receiver."
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   653
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   654
    |classAndSelector|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   655
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   656
    classAndSelector := self extractClassAndSelectorFrom:anArgument.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   657
    classAndSelector isNil ifTrue:[
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   658
        ^ self
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   659
    ].
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   660
    UserPreferences systemBrowserClass
2459
dc2cc94d9444 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
   661
        openInClass:classAndSelector key 
dc2cc94d9444 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
   662
        selector:classAndSelector value   
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   663
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   664
"
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   665
MethodFinderWindow new openBrowserOn: '*SmallInteger +'
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   666
MethodFinderWindow new openBrowserOn: 'String ,'
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   667
MethodFinderWindow new openBrowserOn: 'Number detentBy:atMultiplesOf:snap:' 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   668
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   669
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   670
"
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   671
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   672
    "Modified: / 13.11.2001 / 12:46:17 / cg"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   673
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   674
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   675
openBrowserOnSelectedItem 
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   676
    "on the selected implementor"
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   677
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   678
    |sel|
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   679
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   680
    sel := self selectedClassOfResultHolder value.
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   681
    self openBrowserOn:sel
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   682
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   683
    "Modified: / 13-11-2001 / 12:47:39 / cg"
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   684
    "Modified (comment): / 21-09-2012 / 11:08:33 / cg"
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   685
!
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   686
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   687
openBrowserOnSelectedResultItem 
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   688
    "on an item in the lower left list,
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   689
     on all implementors of that message"
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   690
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   691
    |selIndex selector|
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   692
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   693
    selIndex := self selectedImplementorsHolder value.
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   694
    selIndex isNil ifTrue:[^ self].
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   695
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   696
    selector := resultSelectors at:selIndex.
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   697
    UserPreferences browserClass browseImplementorsOf:selector.
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   698
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   699
    "Created: / 21-09-2012 / 11:05:46 / cg"
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   700
!
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   701
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   702
openBrowserOnSenderOfSelectedResultItem
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   703
    "on an item in the lower left list,
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   704
     on all implementors of that message"
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   705
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   706
    |selIndex selector|
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   707
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   708
    selIndex := self selectedImplementorsHolder value.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   709
    selIndex isNil ifTrue:[^ self].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   710
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   711
    selector := resultSelectors at:selIndex.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   712
    UserPreferences browserClass browseSendersOf:selector.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   713
!
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   714
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   715
receiverEditorContents
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   716
    "Return a cleaned up version of receiver taken from the receiverEditor
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   717
     as an association. The association has aCleanedRecieverString as a key and the
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   718
     compiledReceiver as value."
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   719
    
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   720
    |aCleanedRecieverString compiledReceiver|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   721
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   722
    aCleanedRecieverString := self cleanInputs:(receiverEditor contents).
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   723
    compiledReceiver := Compiler evaluate:aCleanedRecieverString.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   724
    ((self isExpression:aCleanedRecieverString) or:[ compiledReceiver isNil ]) ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   725
        aCleanedRecieverString := compiledReceiver printString
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   726
    ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   727
    ^ aCleanedRecieverString -> compiledReceiver.
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   728
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   729
f67b97bc683a initial checkin
james
parents:
diff changeset
   730
search
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   731
    "Do a search based on the input in the various text editors. Return the receiver."
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   732
    
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   733
    |tempReceiver tempAnswer tempArguments anArray resultArray receiverWithArgument mf|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   734
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   735
    self resultHolder value:nil.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   736
    self classOfResultHolder value:nil.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   737
    self codeHolder value:nil.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   738
    tempArguments := self argumentEditorsContents.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   739
    tempReceiver := self receiverEditorContents.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   740
    tempAnswer := self messageAnswerEditorContents.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   741
     "self cleanInputRec:tempReceiver arg:tempArguments ans:tempAnswer."
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   742
    anArray := Array new:2.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   743
    receiverWithArgument := self mergReciever:(tempReceiver value)
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   744
            WithArgument:(tempArguments values).
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   745
    anArray
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   746
        at:1 put:receiverWithArgument;
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   747
        at:2 put:tempAnswer value.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   748
     "an array now holds the following array #(#(receiver argument) answer) or #(#(reciever) answer). which should
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   749
     be suitable input for the method finder."
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   750
    self withCursor:Cursor execute
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   751
        do:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   752
            mf := MethodFinder new.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   753
            resultArray := mf
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   754
                    load:anArray;
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   755
                    findMessage.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   756
        ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   757
    ((resultArray at:1) includesSubString:'no single') ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   758
        self warn:(resultArray at:1).
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   759
        ^ self
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   760
    ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   761
     "the following then replaces data1 and data2 created by the method finder to the appropriate arguments"
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   762
    resultArray 
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   763
        keysAndValuesDo:[:key :value | 
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   764
            |newValue|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   765
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   766
            newValue := value replString:'data1' withString:(tempReceiver key).
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   767
            (tempArguments size) >= 1 ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   768
                newValue := newValue replString:'data2'
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   769
                        withString:(tempArguments keyAt:1)
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   770
            ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   771
            (tempArguments size) > 1 ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   772
                newValue := newValue replString:'data3'
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   773
                        withString:(tempArguments keyAt:2).
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   774
            ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   775
            (tempArguments size) > 2 ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   776
                newValue := newValue replString:'data4'
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   777
                        withString:(tempArguments keyAt:3).
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   778
            ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   779
            (tempArguments size) > 3 ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   780
                self halt:'unimplemented'.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   781
            ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   782
             "    newValue:= value replString: 'data3' withString:(self messageAnswer key). "
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   783
            newValue := newValue , ' --> ' , (tempAnswer key).
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   784
            newValue replaceAll:Character cr with:Character space.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   785
            resultArray at:key put:newValue.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   786
        ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   787
    self resultHolder value:resultArray.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   788
    resultSelectors := mf selectors.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
   789
    receiver := tempReceiver
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   790
2859
118c4294d9cd changed: #search
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
   791
    "Modified: / 26-09-2011 / 12:42:28 / cg"
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   792
!
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   793
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   794
searchPatternChanged
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   795
    self searchPatternMatchesInBackground
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   796
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   797
    "Created: / 01-06-2012 / 13:18:16 / cg"
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   798
!
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   799
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   800
searchPatternMatchesInBackground
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   801
    "Do a search based on the pattern match as a background task"
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   802
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   803
    | p pattern|
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   804
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   805
    (p := searchProcess) notNil ifTrue:[
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   806
        searchProcess := nil.
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   807
        p terminate.
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   808
    ].
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   809
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   810
    pattern := self selectorPattern value.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   811
    pattern isEmptyOrNil ifTrue:[
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   812
        self resultHolder value:self resultInfoText.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   813
        self classOfResultHolder value:nil.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   814
        self codeHolder value:nil.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   815
        ^ self
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   816
    ].
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   817
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   818
    searchProcess := 
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   819
        [
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   820
            |list counts firsts seconds selectors resultList|
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   821
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   822
            self withCursor:Cursor execute do:[
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   823
                pattern includesMatchCharacters ifFalse:[   
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   824
                    pattern := '*',pattern,'*'
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   825
                ].
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   826
                list := SystemBrowser findImplementorsMatching:pattern in:Smalltalk allClasses ignoreCase:true.
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   827
            ].
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   828
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   829
            counts := IdentityDictionary new.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   830
            firsts := IdentityDictionary new.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   831
            seconds := IdentityDictionary new.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   832
            selectors := IdentitySet new.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   833
            list do:[:eachMethod |
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   834
                |msel|
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   835
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   836
                msel := eachMethod selector.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   837
                selectors add:msel.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   838
                (counts at:msel ifAbsentPut:[ 0 asValue ]) increment.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   839
                (firsts includesKey:msel) ifTrue:[
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   840
                    (seconds includesKey:msel) ifFalse:[
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   841
                        seconds at:msel ifAbsentPut:[ eachMethod mclass ].
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   842
                    ].
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   843
                ] ifFalse:[
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   844
                    firsts at:msel ifAbsentPut:[ eachMethod mclass ].
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   845
                ].
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   846
            ].
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   847
            resultSelectors := selectors asOrderedCollection sort.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   848
            resultList := resultSelectors 
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   849
                            collect:[:sel | 
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   850
                                |cnt s|
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   851
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   852
                                s := sel allBold , ' --> '.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   853
                                cnt := (counts at:sel) value.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   854
                                cnt == 1 ifTrue:[
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   855
                                    s , (firsts at:sel) name
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   856
                                ] ifFalse:[
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   857
                                    cnt == 2 ifTrue:[
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   858
                                        s , (firsts at:sel) name , ' and ' , (seconds at:sel) name
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   859
                                    ] ifFalse:[
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   860
                                        s , cnt printString , ' implementor(s)'
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   861
                                    ]
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   862
                                ].
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   863
                            ].
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   864
            self enqueueDelayedAction:[ self updateListAfterPatternSearch: resultList ]
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   865
        ] fork.
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   866
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   867
    "Created: / 01-06-2012 / 13:16:54 / cg"
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   868
!
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   869
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   870
selectedClassOfResultHolderChanged
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   871
    |sel classAndSelector mthd|
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   872
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   873
    sel := self selectedClassOfResultHolder value.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   874
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   875
    classAndSelector := self extractClassAndSelectorFrom:sel.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   876
    classAndSelector isNil ifTrue:[
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   877
        ^ self
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   878
    ].
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   879
    mthd := classAndSelector key >> classAndSelector value.   
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   880
    mthd notNil ifTrue:[
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   881
        self withWaitCursorDo:[
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   882
            self codeHolder value:mthd source
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   883
        ]
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   884
    ] ifFalse:[
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   885
        self codeHolder value:nil
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   886
    ].
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   887
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   888
    "Created: / 13.11.2001 / 12:43:43 / cg"
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   889
    "Modified: / 13.11.2001 / 12:48:56 / cg"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   890
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   891
f67b97bc683a initial checkin
james
parents:
diff changeset
   892
updateImplementorsOf:anInteger 
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   893
    "Request the implementors of the selected argument provided by aNumber.
2892
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   894
     Return the receiver."
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   895
    
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   896
    |methods classList aNumber|
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   897
2892
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   898
    (anInteger isNil) ifTrue:[
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   899
        ^ self
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   900
    ].
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   901
    anInteger isNil ifTrue:[
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   902
        aNumber := 1
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   903
    ] ifFalse:[
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   904
        aNumber := anInteger
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   905
    ].
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   906
    methods := SystemBrowser 
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   907
            findImplementorsOf:(resultSelectors at:aNumber)
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   908
            in:Smalltalk allClasses
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   909
            ignoreCase:false.
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   910
    classList := methods asOrderedCollection 
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   911
            collect:[:m | m mclass name , ' ' , m selector ].
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   912
    classList := (self markMatchingClasses:(resultSelectors at:aNumber)
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   913
            classesWithSelector:classList).
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   914
    self classOfResultHolder value:classList.
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   915
    classList size > 0 ifTrue:[
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   916
        self selectedClassOfResultHolder value:(classList first).
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   917
        self selectedClassOfResultHolderChanged.
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   918
    ] ifFalse:[
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   919
        self selectedClassOfResultHolder value:nil.
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   920
    ].
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   921
2892
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   922
    "Modified (comment): / 24-06-2012 / 18:41:45 / cg"
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   923
!
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   924
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   925
updateListAfterPatternSearch:resultList 
2892
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   926
    self classOfResultHolder value:nil.
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
   927
    self codeHolder value:nil.
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
   928
    self resultHolder value:resultList.
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   929
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
   930
    "Created: / 01-06-2012 / 13:17:34 / cg"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   931
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
   932
f67b97bc683a initial checkin
james
parents:
diff changeset
   933
!MethodFinderWindow methodsFor:'aspects'!
f67b97bc683a initial checkin
james
parents:
diff changeset
   934
f67b97bc683a initial checkin
james
parents:
diff changeset
   935
arg1BoxVisible
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   936
"Determines if the box should be visble or not. Return true or false"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   937
    arg1BoxVisible isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   938
        arg1BoxVisible := BlockValue
f67b97bc683a initial checkin
james
parents:
diff changeset
   939
                              with:[:vh | vh value >= 2 ]
f67b97bc683a initial checkin
james
parents:
diff changeset
   940
                              argument:(self argCountHolder)
f67b97bc683a initial checkin
james
parents:
diff changeset
   941
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   942
    ^ arg1BoxVisible.
f67b97bc683a initial checkin
james
parents:
diff changeset
   943
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   944
f67b97bc683a initial checkin
james
parents:
diff changeset
   945
arg2BoxVisible
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   946
"Determines if the box should be visble or not. Return true or false"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   947
    arg2BoxVisible isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   948
        arg2BoxVisible := BlockValue
f67b97bc683a initial checkin
james
parents:
diff changeset
   949
                              with:[:vh | vh value >= 3 ]
f67b97bc683a initial checkin
james
parents:
diff changeset
   950
                              argument:(self argCountHolder)
f67b97bc683a initial checkin
james
parents:
diff changeset
   951
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   952
    ^ arg2BoxVisible.
f67b97bc683a initial checkin
james
parents:
diff changeset
   953
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   954
f67b97bc683a initial checkin
james
parents:
diff changeset
   955
arg3BoxVisible
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   956
"Determines if the box should be visble or not. Return true or false"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   957
    arg3BoxVisible isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   958
        arg3BoxVisible := BlockValue
f67b97bc683a initial checkin
james
parents:
diff changeset
   959
                              with:[:vh | vh value >= 4 ]
f67b97bc683a initial checkin
james
parents:
diff changeset
   960
                              argument:(self argCountHolder)
f67b97bc683a initial checkin
james
parents:
diff changeset
   961
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   962
    ^ arg3BoxVisible.
f67b97bc683a initial checkin
james
parents:
diff changeset
   963
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   964
f67b97bc683a initial checkin
james
parents:
diff changeset
   965
arg4BoxVisible
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   966
"Determines if the box should be visble or not. Return true or false"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   967
    arg4BoxVisible isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   968
        arg4BoxVisible := BlockValue
f67b97bc683a initial checkin
james
parents:
diff changeset
   969
                              with:[:vh | vh value >= 5 ]
f67b97bc683a initial checkin
james
parents:
diff changeset
   970
                              argument:(self argCountHolder)
f67b97bc683a initial checkin
james
parents:
diff changeset
   971
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   972
    ^ arg4BoxVisible.
f67b97bc683a initial checkin
james
parents:
diff changeset
   973
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   974
f67b97bc683a initial checkin
james
parents:
diff changeset
   975
argCountHolder
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   976
"Return the value of argCounterHolder which is initialized at 2."
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   977
    argCountHolder isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   978
        argCountHolder := 2 asValue.
f67b97bc683a initial checkin
james
parents:
diff changeset
   979
    ].     
f67b97bc683a initial checkin
james
parents:
diff changeset
   980
    ^ argCountHolder.
f67b97bc683a initial checkin
james
parents:
diff changeset
   981
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   982
f67b97bc683a initial checkin
james
parents:
diff changeset
   983
argCountList
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   984
"Return the argCountList"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   985
    argCountList isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
   986
        argCountList := #('0 arguments' '1 argument' '2 arguments' '3 arguments') asValue  
f67b97bc683a initial checkin
james
parents:
diff changeset
   987
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
   988
    ^ argCountList.
f67b97bc683a initial checkin
james
parents:
diff changeset
   989
!
f67b97bc683a initial checkin
james
parents:
diff changeset
   990
f67b97bc683a initial checkin
james
parents:
diff changeset
   991
classOfResultHolder
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   992
    "Return a valueHolder which contains a collection with the names of the 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   993
     implementors of a specific message.   "
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   994
f67b97bc683a initial checkin
james
parents:
diff changeset
   995
    |holder|
f67b97bc683a initial checkin
james
parents:
diff changeset
   996
    (holder := builder bindingAt:#classOfResultHolder) isNil ifTrue:[
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   997
        holder := ValueHolder new.
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   998
        builder aspectAt:#classOfResultHolder put:holder
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   999
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
  1000
    ^ holder
f67b97bc683a initial checkin
james
parents:
diff changeset
  1001
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1002
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1003
codeHolder
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1004
    codeHolder isNil ifTrue:[
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1005
        codeHolder := '' asValue.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1006
    ].
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1007
    ^ codeHolder.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1008
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1009
    "Created: / 13.11.2001 / 12:44:11 / cg"
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1010
!
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1011
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1012
resultHolder
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1013
    "Return a value holder which contains the results of a search as a collection."
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1014
f67b97bc683a initial checkin
james
parents:
diff changeset
  1015
    |holder|
f67b97bc683a initial checkin
james
parents:
diff changeset
  1016
    (holder := builder bindingAt:#resultHolder) isNil ifTrue:[
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1017
        holder := ValueHolder new.
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1018
        builder aspectAt:#resultHolder put:holder.
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1019
        holder value:self resultInfoText.
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1020
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
  1021
    ^ holder.
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1022
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
  1023
    "Modified: / 01-06-2012 / 13:06:02 / cg"
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1024
!
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1025
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1026
resultInfoText
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1027
    ^  {
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1028
          'Please enter combination of' .
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1029
          '    ',('receiver, arg and result' allBold) .
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1030
          'or a'.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1031
          '    ',('selector search pattern' allBold) .
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1032
          'into the above fields, then click on either ',('"search"' allBold),'-button.'
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1033
       }
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1034
!
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1035
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1036
selectedClassOfResultHolder
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1037
    "valueHolder which contains the index of the selected result class (right list)"
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1038
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1039
    |holder|
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1040
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1041
    (holder := builder bindingAt:#selectedClassOfResultHolder) isNil ifTrue:[
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1042
        holder := ValueHolder new.
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1043
        builder aspectAt:#selectedClassOfResultHolder put:holder
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1044
    ].
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1045
    ^ holder
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1046
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1047
    "Modified (comment): / 21-09-2012 / 11:10:29 / cg"
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1048
!
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1049
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1050
selectedImplementorsHolder
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1051
    "valueHolder which contains the index of the selected implementors list (left list)"
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1052
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1053
    |holder|
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1054
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1055
    (holder := builder bindingAt:#selectedImplementorsHolder) isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1056
        holder := ValueHolder new.
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1057
        builder aspectAt:#selectedImplementorsHolder put:holder
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1058
    ].
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1059
    ^ holder
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1060
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1061
    "Created: / 21-09-2012 / 11:10:13 / cg"
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1062
!
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1063
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1064
selectorPattern
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1065
    |holder|
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1066
    (holder := builder bindingAt:#selectorPattern) isNil ifTrue:[
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1067
        holder := ValueHolder new.
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1068
        builder aspectAt:#selectorPattern put:holder.
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1069
        holder onChangeSend:#searchPatternChanged to:self.
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1070
    ].
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1071
    ^ holder
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1072
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1073
    "Created: / 27-04-2012 / 14:44:01 / cg"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1074
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
  1075
f67b97bc683a initial checkin
james
parents:
diff changeset
  1076
!MethodFinderWindow methodsFor:'callBacks'!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1077
f67b97bc683a initial checkin
james
parents:
diff changeset
  1078
argument1WidgetCreated: aWidget
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1079
"Store the widget as an instance variable. Return the receiver"
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1080
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1081
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1082
        argument1Editor := aWidget scrolledView.
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1083
        aWidget tabMeansNextField:true.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1084
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1085
    "Modified: / 13.11.2001 / 12:21:41 / cg"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1086
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1087
f67b97bc683a initial checkin
james
parents:
diff changeset
  1088
argument2WidgetCreated: aWidget
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1089
"Store the widget as an instance variable. Return the receiver"
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1090
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1091
f67b97bc683a initial checkin
james
parents:
diff changeset
  1092
        argument2Editor := aWidget scrolledView.
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1093
        aWidget tabMeansNextField:true.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1094
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1095
    "Modified: / 13.11.2001 / 12:21:45 / cg"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1096
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1097
f67b97bc683a initial checkin
james
parents:
diff changeset
  1098
argument3WidgetCreated: aWidget
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1099
"Store the widget as an instance variable. Return the receiver"
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1100
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1101
f67b97bc683a initial checkin
james
parents:
diff changeset
  1102
        argument3Editor := aWidget scrolledView.
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1103
        aWidget tabMeansNextField:true.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1104
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1105
    "Modified: / 13.11.2001 / 12:21:49 / cg"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1106
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1107
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1108
messageAnswerWidgetCreated: aWidget
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1109
"Store the widget as an instance variable. Return the receiver"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1110
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1111
        messageAnswerEditor := aWidget scrolledView.
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1112
        aWidget tabMeansNextField:true.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1113
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1114
    "Modified: / 13.11.2001 / 12:24:55 / cg"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1115
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1116
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1117
openHTMLDocumentation
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1118
    HTMLDocumentView openFullOnDocumentationFile:'tools/misc/TOP.html#METHODFINDER'
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1119
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1120
f67b97bc683a initial checkin
james
parents:
diff changeset
  1121
receiverWidgetCreated: aWidget
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1122
"Store the widget as an instance variable. Return the receiver"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1123
f67b97bc683a initial checkin
james
parents:
diff changeset
  1124
        receiverEditor := aWidget scrolledView.
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1125
        aWidget tabMeansNextField:true.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1126
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1127
    "Modified: / 13.11.2001 / 12:24:49 / cg"
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1128
!
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1129
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1130
sourceCodeWidgetCreated: aWidget
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1131
        aWidget acceptAction:nil.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1132
        aWidget readOnly:true
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1133
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1134
    "Created: / 13.11.2001 / 12:50:27 / cg"
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1135
    "Modified: / 13.11.2001 / 12:51:23 / cg"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1136
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
  1137
f67b97bc683a initial checkin
james
parents:
diff changeset
  1138
!MethodFinderWindow methodsFor:'controlInput'!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1139
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1140
cleanInputs:aDirtyString 
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1141
    "Find and remove common mistakes made by the user. Return the 
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1142
     'aStringToBeCleaned' variable"
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1143
    
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1144
    |aStringToBeCleaned rs position|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1145
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1146
    aStringToBeCleaned := aDirtyString.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1147
    (aStringToBeCleaned endsWith:(Character cr)) ifTrue:[
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1148
        aStringToBeCleaned := aStringToBeCleaned copyFrom:1 to:(aStringToBeCleaned size - 1).
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1149
    ].
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1150
    aStringToBeCleaned := aStringToBeCleaned withoutSeparators.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1151
    rs := ReadStream on:aStringToBeCleaned.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1152
    [
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1153
        rs upToAll_positionBefore:'#true'.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1154
        rs atEnd
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1155
    ] whileFalse:[
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1156
        position := rs position.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1157
        aStringToBeCleaned := aStringToBeCleaned 
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1158
                copyReplaceFrom:position
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1159
                to:position
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1160
                with:''.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1161
        rs := ReadStream on:aStringToBeCleaned.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1162
    ].
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1163
    rs := ReadStream on:aStringToBeCleaned.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1164
    [
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1165
        rs upToAll_positionBefore:'#false'.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1166
        rs atEnd
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1167
    ] whileFalse:[
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1168
        position := rs position.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1169
        aStringToBeCleaned := aStringToBeCleaned 
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1170
                copyReplaceFrom:position
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1171
                to:position
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1172
                with:''.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1173
        rs := ReadStream on:aStringToBeCleaned.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1174
    ].
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1175
    [
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1176
        rs upToAll_positionBefore:'#nil'.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1177
        rs atEnd
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1178
    ] whileFalse:[
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1179
        position := rs position.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1180
        aStringToBeCleaned := aStringToBeCleaned 
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1181
                copyReplaceFrom:position
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1182
                to:position
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1183
                with:''.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1184
        rs := ReadStream on:aStringToBeCleaned.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1185
    ].
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1186
    ^ aStringToBeCleaned
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1187
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1188
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1189
markMatchingClasses:aSelector classesWithSelector:anOrderedCollection 
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1190
    " Matches the class of the receiver with all the elements in anOrderedCollection
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1191
     (which are classes with selectors). If a match is found it is marked with an asterisk.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1192
     The classes are then sorted so the the asterisk appears first. Return the
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1193
     markedClassList."
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1194
    
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1195
    |marker recClass unmarkedClassList markedClassList|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1196
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1197
    marker := self class markerForImplementingClass.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1198
    recClass := receiver value class.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1199
    unmarkedClassList := anOrderedCollection copy.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1200
    unmarkedClassList do:[:classAndMethod | 
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1201
        |class|
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1202
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1203
        class := Compiler 
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1204
                evaluate:(classAndMethod upToAll:aSelector).
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1205
        
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1206
        "/ (recClass == class)
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1207
        
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1208
        (recClass whichClassImplements:aSelector) == class ifTrue:[
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1209
            "/ unmarkedClassList add: marker, classAndMethod.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1210
            unmarkedClassList add:classAndMethod allBold.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1211
            unmarkedClassList remove:classAndMethod.
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1212
        ].
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1213
    ].
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1214
    unmarkedClassList 
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1215
        sort:[:a :b | 
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1216
            |rawA rawB|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1217
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1218
            rawA := a string withoutPrefix:marker.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1219
            rawB := b string withoutPrefix:marker.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1220
            rawA < rawB.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1221
        ].
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1222
    markedClassList := unmarkedClassList.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1223
    ^ markedClassList
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1224
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1225
    "Modified: / 13.11.2001 / 12:16:05 / cg"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1226
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1227
f67b97bc683a initial checkin
james
parents:
diff changeset
  1228
mergReciever: aReceiver WithArgument: arguments
f67b97bc683a initial checkin
james
parents:
diff changeset
  1229
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1230
"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
  1231
 MethodFinder. Return an array."
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1232
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1233
| tempReceiver tempArguments receiverWithArgument|
f67b97bc683a initial checkin
james
parents:
diff changeset
  1234
f67b97bc683a initial checkin
james
parents:
diff changeset
  1235
  tempReceiver:= aReceiver.
f67b97bc683a initial checkin
james
parents:
diff changeset
  1236
 tempArguments :=  arguments.
f67b97bc683a initial checkin
james
parents:
diff changeset
  1237
f67b97bc683a initial checkin
james
parents:
diff changeset
  1238
(tempArguments isEmpty or:[(tempArguments) isNil])
f67b97bc683a initial checkin
james
parents:
diff changeset
  1239
                ifTrue:[  receiverWithArgument:=Array new:1."no argument"
f67b97bc683a initial checkin
james
parents:
diff changeset
  1240
                          receiverWithArgument at:1 put: tempReceiver.     
f67b97bc683a initial checkin
james
parents:
diff changeset
  1241
                        ]
f67b97bc683a initial checkin
james
parents:
diff changeset
  1242
                ifFalse:[
f67b97bc683a initial checkin
james
parents:
diff changeset
  1243
        (tempArguments size = 1)
f67b97bc683a initial checkin
james
parents:
diff changeset
  1244
                        ifTrue:[ receiverWithArgument:=Array new:2.
f67b97bc683a initial checkin
james
parents:
diff changeset
  1245
                                  receiverWithArgument at:1 put: tempReceiver.      
f67b97bc683a initial checkin
james
parents:
diff changeset
  1246
                                  receiverWithArgument at:2 put: (tempArguments at:1)
f67b97bc683a initial checkin
james
parents:
diff changeset
  1247
                                ].  "a receiver with an argument"
f67b97bc683a initial checkin
james
parents:
diff changeset
  1248
f67b97bc683a initial checkin
james
parents:
diff changeset
  1249
        (tempArguments size = 2)
f67b97bc683a initial checkin
james
parents:
diff changeset
  1250
                        ifTrue:[ receiverWithArgument:=Array new:3.
f67b97bc683a initial checkin
james
parents:
diff changeset
  1251
                                  receiverWithArgument at:1 put: tempReceiver.      
f67b97bc683a initial checkin
james
parents:
diff changeset
  1252
                                  (receiverWithArgument at:2 put: (tempArguments at:1)).
f67b97bc683a initial checkin
james
parents:
diff changeset
  1253
                                  (receiverWithArgument at:3 put: (tempArguments at:2))
f67b97bc683a initial checkin
james
parents:
diff changeset
  1254
                                ].  "a receiver with an argument"
f67b97bc683a initial checkin
james
parents:
diff changeset
  1255
        (tempArguments size = 3)
f67b97bc683a initial checkin
james
parents:
diff changeset
  1256
                        ifTrue:[ receiverWithArgument:=Array new:4.
f67b97bc683a initial checkin
james
parents:
diff changeset
  1257
                                  receiverWithArgument at:1 put: tempReceiver.      
f67b97bc683a initial checkin
james
parents:
diff changeset
  1258
                                  (receiverWithArgument at:2 put: (tempArguments at:1)).
f67b97bc683a initial checkin
james
parents:
diff changeset
  1259
                                  (receiverWithArgument at:3 put: (tempArguments at:2)).
f67b97bc683a initial checkin
james
parents:
diff changeset
  1260
                                  (receiverWithArgument at:4 put: (tempArguments at:3)).
f67b97bc683a initial checkin
james
parents:
diff changeset
  1261
f67b97bc683a initial checkin
james
parents:
diff changeset
  1262
                                ].  "a receiver with an argument"
f67b97bc683a initial checkin
james
parents:
diff changeset
  1263
f67b97bc683a initial checkin
james
parents:
diff changeset
  1264
                        ].
f67b97bc683a initial checkin
james
parents:
diff changeset
  1265
^receiverWithArgument
f67b97bc683a initial checkin
james
parents:
diff changeset