MethodFinderWindow.st
author Claus Gittinger <cg@exept.de>
Tue, 01 Oct 2019 09:54:00 +0200
changeset 3771 33d35c030113
parent 3770 3f324e812f60
child 3772 33679accc619
permissions -rw-r--r--
#UI_ENHANCEMENT by exept class: MethodFinderWindow class changed: #helpSpec
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3770
3f324e812f60 #DOCUMENTATION by exept
Claus Gittinger <cg@exept.de>
parents: 3769
diff changeset
     1
"{ Encoding: utf8 }"
3f324e812f60 #DOCUMENTATION by exept
Claus Gittinger <cg@exept.de>
parents: 3769
diff changeset
     2
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
     3
"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
     4
 Copyright (C) Original Authors (Kaehler, Scott Wallace and Dan Ingalls)
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
     5
 Copyright (C) 2001 eXept Software AG
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
     6
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
     7
 Permission is hereby granted, free of charge, to any 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
     8
 person obtaining a copy of this software and associated 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
     9
 documentation files (the 'Software'), to deal in the 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    10
 Software without restriction, including without limitation 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    11
 the rights to use, copy, modify, merge, publish, distribute, 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    12
 sublicense, and/or sell copies of the Software, and to 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    13
 permit persons to whom the Software is furnished to do so, 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    14
 subject to the following conditions:
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    15
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    16
 The above copyright notice and this permission notice shall 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    17
 be included in all copies or substantial portions of the Software.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    18
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    19
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    20
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    21
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    22
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    23
 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    24
 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    25
 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    26
"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    27
"{ Package: 'stx:libtool2' }"
f67b97bc683a initial checkin
james
parents:
diff changeset
    28
3193
4ab685b49b91 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
    29
"{ NameSpace: Smalltalk }"
4ab685b49b91 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
    30
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    31
ApplicationModel subclass:#MethodFinderWindow
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    32
	instanceVariableNames:'resultHolder selectorPatternHolder classOfResultHolder
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    33
		selectedClassOfResultHolder selectedImplementorsHolder
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    34
		argumentsEditor messageAnswerEditor receiverEditor receiver
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    35
		resultSelectors arg2BoxVisible arg1BoxVisible arg4BoxVisible
f67b97bc683a initial checkin
james
parents:
diff changeset
    36
		arg3BoxVisible argCountHolder argCountList argument1Editor
f67b97bc683a initial checkin
james
parents:
diff changeset
    37
		argument2Editor argument3Editor argument4Editor resultSelected
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
    38
		lookAtResultEditor codeHolder searchProcess'
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    39
	classVariableNames:''
f67b97bc683a initial checkin
james
parents:
diff changeset
    40
	poolDictionaries:''
3215
4c69b031fb70 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3193
diff changeset
    41
	category:'Interface-Tools'
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    42
!
f67b97bc683a initial checkin
james
parents:
diff changeset
    43
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    44
!MethodFinderWindow class methodsFor:'documentation'!
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    45
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    46
copyright
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    47
"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    48
 Copyright (C) Original Authors (Kaehler, Scott Wallace and Dan Ingalls)
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    49
 Copyright (C) 2001 eXept Software AG
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    50
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    51
 Permission is hereby granted, free of charge, to any 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    52
 person obtaining a copy of this software and associated 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    53
 documentation files (the 'Software'), to deal in the 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    54
 Software without restriction, including without limitation 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    55
 the rights to use, copy, modify, merge, publish, distribute, 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    56
 sublicense, and/or sell copies of the Software, and to 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    57
 permit persons to whom the Software is furnished to do so, 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    58
 subject to the following conditions:
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    59
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    60
 The above copyright notice and this permission notice shall 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    61
 be included in all copies or substantial portions of the Software.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    62
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    63
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    64
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    65
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    66
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    67
 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    68
 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    69
 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    70
"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    71
!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    72
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    73
documentation
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    74
"
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    75
  a tool to find implementing methods by example.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    76
  Give it values for a receiver, optional arguments and a desired result,
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    77
  and it will find methods which do that for you.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    78
  Please read the online documentation for details (open via the tool's help menu).
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    79
1531
9d4f8cd101fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1530
diff changeset
    80
  [author:]
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    81
    original squeak version by Ted Kaehler, Scott Wallace and Dan Ingalls.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    82
    ported from Squeak and GUI enhanced 2001 by James Hayes james@exept.de.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
    83
    improved by Claus Gittinger.
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    84
"
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
    85
! !
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
    86
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    87
!MethodFinderWindow class methodsFor:'constants'!
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    88
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
    89
defaultIcon
3109
92920c76aae3 Mark program icons with resource
Stefan Vogel <sv@exept.de>
parents: 3090
diff changeset
    90
    <resource: #programImage>
92920c76aae3 Mark program icons with resource
Stefan Vogel <sv@exept.de>
parents: 3090
diff changeset
    91
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
    92
    ^ ToolbarIconLibrary methodFinder24x24Icon
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
    93
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
    94
    "Created: / 01-06-2012 / 13:05:11 / cg"
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
    95
!
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
    96
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    97
markerForImplementingClass
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    98
    ^ '=> '.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
    99
    ^ '*'
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   100
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   101
    "Created: / 13.11.2001 / 12:09:52 / cg"
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   102
    "Modified: / 13.11.2001 / 12:11:57 / cg"
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   103
! !
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   104
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   105
!MethodFinderWindow class methodsFor:'help specs'!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   106
3514
d3a2e53f3d57 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 3482
diff changeset
   107
helpSpec
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   108
    "This resource specification was automatically generated
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   109
     by the UIHelpTool of ST/X."
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   110
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   111
    "Do not manually edit this!! If it is corrupted,
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   112
     the UIHelpTool may not be able to read the specification."
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   113
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   114
    "
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   115
     UIHelpTool openOnClass:MethodFinderWindow
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   116
    "
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   117
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   118
    <resource: #help>
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   119
3514
d3a2e53f3d57 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 3482
diff changeset
   120
    ^ super helpSpec addPairsFrom:#(
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   121
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   122
#'*'
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   123
'as in GLOB patterns (i.e. like filename patterns)'
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   124
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   125
#answerValue
3771
33d35c030113 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 3770
diff changeset
   126
'Enter result value here.\Can be a constant like $a or ''hello'' or #(10 20 30)\or a Smalltalk expression, such as "10@20" or "Rectangle new".'
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   127
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   128
#arg1Value
3771
33d35c030113 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 3770
diff changeset
   129
'Enter a value for the first argument here.\Can be a constant like $a or ''hello'' or #(10 20 30)\or a Smalltalk expression, such as "10@20" or "Rectangle new".'
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   130
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   131
#arg2Value
3770
3f324e812f60 #DOCUMENTATION by exept
Claus Gittinger <cg@exept.de>
parents: 3769
diff changeset
   132
'Enter a value for the second argument here.\Can be a constant or a Smalltalk expression.'
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   133
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   134
#arg3Value
3770
3f324e812f60 #DOCUMENTATION by exept
Claus Gittinger <cg@exept.de>
parents: 3769
diff changeset
   135
'Enter a value for the third argument here.\Can be a constant or a Smalltalk expression.'
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   136
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   137
#argumentCount
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   138
'Specify the number of arguments here.'
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   139
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   140
#clearButton
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   141
'Clear all sample value fields.'
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   142
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   143
#implementorsFound
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   144
'Shows a list of messages which deliver the result or match the selector pattern'
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   145
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   146
#receiverValue
3770
3f324e812f60 #DOCUMENTATION by exept
Claus Gittinger <cg@exept.de>
parents: 3769
diff changeset
   147
'Enter a receiver value here.\Can be a constant (like ''hello'')\or a Smalltalk expression, such as "Rectangle basicNew".'
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   148
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   149
#selectorPattern
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   150
'Enter a pattern to search by message name'
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   151
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   152
#selectorPatternSearch
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   153
'Search by name.\You can use match characters'
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   154
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   155
#startSearchButton
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   156
'Search for methods which answer the desired value,\given the concrete arguments'
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   157
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   158
#startSearchPatternButton
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   159
'Search for methods whose name matches the pattern'
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   160
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   161
)
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   162
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   163
    "Modified: / 08-06-2019 / 16:06:17 / Claus Gittinger"
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   164
! !
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   165
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   166
!MethodFinderWindow class methodsFor:'interface specs'!
f67b97bc683a initial checkin
james
parents:
diff changeset
   167
f67b97bc683a initial checkin
james
parents:
diff changeset
   168
windowSpec
f67b97bc683a initial checkin
james
parents:
diff changeset
   169
    "This resource specification was automatically generated
f67b97bc683a initial checkin
james
parents:
diff changeset
   170
     by the UIPainter of ST/X."
f67b97bc683a initial checkin
james
parents:
diff changeset
   171
f67b97bc683a initial checkin
james
parents:
diff changeset
   172
    "Do not manually edit this!! If it is corrupted,
f67b97bc683a initial checkin
james
parents:
diff changeset
   173
     the UIPainter may not be able to read the specification."
f67b97bc683a initial checkin
james
parents:
diff changeset
   174
f67b97bc683a initial checkin
james
parents:
diff changeset
   175
    "
f67b97bc683a initial checkin
james
parents:
diff changeset
   176
     UIPainter new openOnClass:MethodFinderWindow andSelector:#windowSpec
f67b97bc683a initial checkin
james
parents:
diff changeset
   177
     MethodFinderWindow new openInterface:#windowSpec
f67b97bc683a initial checkin
james
parents:
diff changeset
   178
     MethodFinderWindow open
f67b97bc683a initial checkin
james
parents:
diff changeset
   179
    "
f67b97bc683a initial checkin
james
parents:
diff changeset
   180
f67b97bc683a initial checkin
james
parents:
diff changeset
   181
    <resource: #canvas>
f67b97bc683a initial checkin
james
parents:
diff changeset
   182
f67b97bc683a initial checkin
james
parents:
diff changeset
   183
    ^ 
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   184
    #(FullSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   185
       name: windowSpec
3710
280daf8b3626 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3709
diff changeset
   186
       uuid: '1871401e-aa2d-11e9-8c78-b8f6b1108e05'
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   187
       window: 
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   188
      (WindowSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   189
         label: 'MethodFinder'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   190
         name: 'MethodFinder'
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   191
         uuid: '5fb0c87a-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   192
         bounds: (Rectangle 0 0 816 738)
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   193
         menu: menu
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   194
         icon: defaultIcon
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   195
       )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   196
       component: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   197
      (SpecCollection
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   198
         collection: (
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   199
          (VariableHorizontalPanelSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   200
             name: 'VariableHorizontalPanel1'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   201
             layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   202
             uuid: '5fb0cd98-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   203
             showHandle: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   204
             snapMode: both
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   205
             component: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   206
            (SpecCollection
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   207
               collection: (
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   208
                (VariableVerticalPanelSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   209
                   name: 'LeftBox'
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   210
                   uuid: '5fb0d1a8-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   211
                   showHandle: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   212
                   component: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   213
                  (SpecCollection
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   214
                     collection: (
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   215
                      (ViewSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   216
                         name: 'MethodFinderBox'
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   217
                         uuid: '5fb0d36a-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   218
                         component: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   219
                        (SpecCollection
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   220
                           collection: (
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   221
                            (ViewSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   222
                               name: 'ReceiverArgBox'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   223
                               layout: (LayoutFrame 0 0 0 0 0 1 -30 1)
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   224
                               uuid: '5fb0d4f0-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   225
                               component: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   226
                              (SpecCollection
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   227
                                 collection: (
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   228
                                  (LabelSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   229
                                     label: 'Receiver'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   230
                                     name: 'ReceiverLabel'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   231
                                     layout: (LayoutFrame 0 0 0 0 0 0.34000000000000002 28 0)
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   232
                                     uuid: '5fb0d6b2-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   233
                                     translateLabel: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   234
                                   )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   235
                                  (ComboListSpec
3698
173ace914343 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3697
diff changeset
   236
                                     name: 'AllowedArguments'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   237
                                     layout: (LayoutFrame 0 0.34000000000000002 1 0 0 0.64000000000000135 28 0)
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   238
                                     activeHelpKey: argumentCount
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   239
                                     uuid: '5fb0da9a-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   240
                                     model: argCountHolder
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   241
                                     comboList: argCountList
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   242
                                     useIndex: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   243
                                   )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   244
                                  (LabelSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   245
                                     label: 'Answer'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   246
                                     name: 'MessageAnswerLabel'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   247
                                     layout: (LayoutFrame 0 0.64000000000000135 0 0 0 1 28 0)
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   248
                                     activeHelpKey: arg1Value
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   249
                                     uuid: '5fb0dd60-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   250
                                     translateLabel: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   251
                                   )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   252
                                  (HorizontalPanelViewSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   253
                                     name: 'HorizontalPanel1'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   254
                                     layout: (LayoutFrame 0 0 30 0 0 1 0 1)
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   255
                                     uuid: '5fb0dee6-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   256
                                     horizontalLayout: fit
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   257
                                     verticalLayout: fit
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   258
                                     horizontalSpace: 3
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   259
                                     verticalSpace: 3
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   260
                                     component: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   261
                                    (SpecCollection
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   262
                                       collection: (
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   263
                                        (WorkspaceSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   264
                                           name: 'ReceiverEditor'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   265
                                           activeHelpKey: receiverValue
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   266
                                           uuid: '5fb0e152-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   267
                                           tabable: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   268
                                           hasHorizontalScrollBar: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   269
                                           hasVerticalScrollBar: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   270
                                           miniScrollerHorizontal: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   271
                                           miniScrollerVertical: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   272
                                           autoHideScrollBars: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   273
                                           hasKeyboardFocusInitially: false
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   274
                                           extent: (Point 86 142)
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   275
                                           postBuildCallback: receiverWidgetCreated:
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   276
                                         )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   277
                                        (VerticalPanelViewSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   278
                                           name: 'VerticalPanel1'
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   279
                                           uuid: '5fb0e51c-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   280
                                           horizontalLayout: fit
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   281
                                           verticalLayout: fit
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   282
                                           horizontalSpace: 3
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   283
                                           verticalSpace: 3
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   284
                                           component: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   285
                                          (SpecCollection
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   286
                                             collection: (
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   287
                                              (ViewSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   288
                                                 name: 'Box1'
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   289
                                                 uuid: '5fb0e6d4-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   290
                                                 visibilityChannel: arg1BoxVisible
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   291
                                                 component: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   292
                                                (SpecCollection
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   293
                                                   collection: (
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   294
                                                    (WorkspaceSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   295
                                                       name: 'Arg1Editor'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   296
                                                       layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   297
                                                       activeHelpKey: arg1Value
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   298
                                                       uuid: '5fb0e7ce-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   299
                                                       tabable: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   300
                                                       hasHorizontalScrollBar: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   301
                                                       hasVerticalScrollBar: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   302
                                                       miniScrollerHorizontal: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   303
                                                       miniScrollerVertical: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   304
                                                       autoHideScrollBars: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   305
                                                       hasKeyboardFocusInitially: false
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   306
                                                       postBuildCallback: argument1WidgetCreated:
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   307
                                                     )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   308
                                                    )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   309
                                                  
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   310
                                                 )
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   311
                                                 extent: (Point 87 45)
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   312
                                               )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   313
                                              (ViewSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   314
                                                 name: 'Box2'
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   315
                                                 uuid: '5fb0e9b8-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   316
                                                 visibilityChannel: arg2BoxVisible
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   317
                                                 component: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   318
                                                (SpecCollection
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   319
                                                   collection: (
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   320
                                                    (WorkspaceSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   321
                                                       name: 'TextEditor5'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   322
                                                       layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   323
                                                       activeHelpKey: arg2Value
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   324
                                                       uuid: '5fb0eabc-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   325
                                                       tabable: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   326
                                                       hasHorizontalScrollBar: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   327
                                                       hasVerticalScrollBar: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   328
                                                       miniScrollerHorizontal: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   329
                                                       miniScrollerVertical: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   330
                                                       autoHideScrollBars: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   331
                                                       hasKeyboardFocusInitially: false
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   332
                                                       postBuildCallback: argument2WidgetCreated:
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   333
                                                     )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   334
                                                    )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   335
                                                  
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   336
                                                 )
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   337
                                                 extent: (Point 87 46)
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   338
                                               )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   339
                                              (ViewSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   340
                                                 name: 'Box3'
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   341
                                                 uuid: '5fb0ec74-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   342
                                                 visibilityChannel: arg3BoxVisible
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   343
                                                 component: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   344
                                                (SpecCollection
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   345
                                                   collection: (
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   346
                                                    (WorkspaceSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   347
                                                       name: 'TextEditor6'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   348
                                                       layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   349
                                                       activeHelpKey: arg3Value
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   350
                                                       uuid: '5fb0ed64-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   351
                                                       tabable: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   352
                                                       hasHorizontalScrollBar: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   353
                                                       hasVerticalScrollBar: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   354
                                                       miniScrollerHorizontal: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   355
                                                       miniScrollerVertical: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   356
                                                       autoHideScrollBars: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   357
                                                       hasKeyboardFocusInitially: false
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   358
                                                       postBuildCallback: argument3WidgetCreated:
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   359
                                                     )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   360
                                                    )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   361
                                                  
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   362
                                                 )
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   363
                                                 extent: (Point 87 45)
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   364
                                               )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   365
                                              )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   366
                                            
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   367
                                           )
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   368
                                           extent: (Point 87 142)
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   369
                                         )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   370
                                        (WorkspaceSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   371
                                           name: 'AnswerEditor'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   372
                                           activeHelpKey: answerValue
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   373
                                           uuid: '5fb0ef30-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   374
                                           tabable: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   375
                                           hasHorizontalScrollBar: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   376
                                           hasVerticalScrollBar: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   377
                                           miniScrollerHorizontal: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   378
                                           miniScrollerVertical: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   379
                                           autoHideScrollBars: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   380
                                           hasKeyboardFocusInitially: false
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   381
                                           extent: (Point 87 142)
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   382
                                           postBuildCallback: messageAnswerWidgetCreated:
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   383
                                         )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   384
                                        )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   385
                                      
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   386
                                     )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   387
                                   )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   388
                                  )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   389
                                
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   390
                               )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   391
                             )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   392
                            (ViewSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   393
                               name: 'ReceiverArgBoxActionBox'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   394
                               layout: (LayoutFrame 0 0 -30 1 0 1 0 1)
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   395
                               uuid: '5fb0f0fc-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   396
                               component: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   397
                              (SpecCollection
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   398
                                 collection: (
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   399
                                  (ActionButtonSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   400
                                     label: 'Clear'
3708
e709d40e6bc9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3699
diff changeset
   401
                                     name: 'ClearButton'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   402
                                     layout: (LayoutFrame 5 0 0 0 -5 0.5 0 1)
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   403
                                     activeHelpKey: clearButton
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   404
                                     uuid: '5fb0f214-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   405
                                     translateLabel: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   406
                                     model: clear
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   407
                                   )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   408
                                  (ActionButtonSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   409
                                     label: 'Search'
3708
e709d40e6bc9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3699
diff changeset
   410
                                     name: 'SearchButton'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   411
                                     layout: (LayoutFrame 5 0.5 0 0 -5 1 0 1)
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   412
                                     activeHelpKey: startSearchButton
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   413
                                     uuid: '5fb0f52a-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   414
                                     translateLabel: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   415
                                     tabable: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   416
                                     model: search
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   417
                                   )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   418
                                  )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   419
                                
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   420
                               )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   421
                             )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   422
                            )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   423
                          
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   424
                         )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   425
                       )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   426
                      (ViewSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   427
                         name: 'SelectorFinderBox'
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   428
                         uuid: '5fb0f714-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   429
                         component: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   430
                        (SpecCollection
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   431
                           collection: (
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   432
                            (ViewSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   433
                               name: 'MatchActionBox'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   434
                               layout: (LayoutFrame 0 0 0 0 0 1 90 0)
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   435
                               uuid: '5fb0f818-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   436
                               component: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   437
                              (SpecCollection
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   438
                                 collection: (
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   439
                                  (LabelSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   440
                                     label: 'Selector Pattern:'
3708
e709d40e6bc9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3699
diff changeset
   441
                                     name: 'SelectorPatternLabel'
3699
1070017213b7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3698
diff changeset
   442
                                     layout: (LayoutFrame 0 0 0 0 0 1 25 0)
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   443
                                     uuid: '5fb0f908-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   444
                                     translateLabel: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   445
                                     adjust: left
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   446
                                   )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   447
                                  (InputFieldSpec
3708
e709d40e6bc9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3699
diff changeset
   448
                                     name: 'SelectorPattern'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   449
                                     layout: (LayoutFrame 2 0 -54 1 -2 1 -29 1)
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   450
                                     activeHelpKey: selectorPattern
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   451
                                     uuid: '5fb0fa70-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   452
                                     model: selectorPatternHolder
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   453
                                     immediateAccept: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   454
                                     acceptOnReturn: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   455
                                     acceptOnTab: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   456
                                     acceptOnPointerLeave: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   457
                                   )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   458
                                  (ActionButtonSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   459
                                     label: 'Search'
3708
e709d40e6bc9 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3699
diff changeset
   460
                                     name: 'SearchPatternButton'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   461
                                     layout: (LayoutFrame 5 0.5 -25 1 -5 1 0 1)
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   462
                                     activeHelpKey: startSearchPatternButton
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   463
                                     uuid: '5fb0fea8-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   464
                                     translateLabel: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   465
                                     tabable: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   466
                                     model: searchPatternMatchesInBackground
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   467
                                   )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   468
                                  )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   469
                                
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   470
                               )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   471
                             )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   472
                            (SequenceViewSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   473
                               name: 'ResultList'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   474
                               layout: (LayoutFrame 0 0 94 0 0 1 0 1)
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   475
                               activeHelpKey: implementorsFound
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   476
                               uuid: '5fb1009c-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   477
                               model: selectedImplementorsHolder
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   478
                               menu: resultListMenu
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   479
                               hasHorizontalScrollBar: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   480
                               hasVerticalScrollBar: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   481
                               autoHideScrollBars: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   482
                               useIndex: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   483
                               sequenceList: resultHolder
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   484
                             )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   485
                            )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   486
                          
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   487
                         )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   488
                       )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   489
                      )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   490
                    
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   491
                   )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   492
                   handles: (Any 0.28000000000000003 1.0)
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   493
                 )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   494
                (VariableVerticalPanelSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   495
                   name: 'RightBox'
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   496
                   uuid: '5fb103c6-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   497
                   component: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   498
                  (SpecCollection
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   499
                     collection: (
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   500
                      (SequenceViewSpec
3710
280daf8b3626 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3709
diff changeset
   501
                         name: 'ImplementorsList'
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
   502
                         uuid: '5fb10524-89f6-11e9-8df0-b8f6b1108e05'
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   503
                         model: selectedClassOfResultHolder
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   504
                         menu: implementorListMenu
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   505
                         hasHorizontalScrollBar: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   506
                         hasVerticalScrollBar: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   507
                         autoHideScrollBars: true
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   508
                         doubleClickSelector: openBrowserOn:
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   509
                         valueChangeSelector: selectedClassOfResultHolderChanged
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   510
                         useIndex: false
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   511
                         sequenceList: classOfResultHolder
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   512
                       )
3695
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   513
                      (ViewSpec
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   514
                         name: 'Box4'
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   515
                         uuid: '4698d744-a993-11e9-b8a4-b8f6b1108e05'
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   516
                         component: 
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   517
                        (SpecCollection
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   518
                           collection: (
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   519
                            (CodeViewSpec
3710
280daf8b3626 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3709
diff changeset
   520
                               name: 'CodeView'
3695
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   521
                               layout: (LayoutFrame 0 0 0 0 0 1 0 1)
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   522
                               uuid: '5fb106dc-89f6-11e9-8df0-b8f6b1108e05'
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   523
                               model: codeHolder
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   524
                               hasHorizontalScrollBar: true
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   525
                               hasVerticalScrollBar: true
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   526
                               autoHideScrollBars: true
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   527
                               hasKeyboardFocusInitially: false
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   528
                               viewClassName: 'codeViewClass'
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   529
                               postBuildCallback: sourceCodeWidgetCreated:
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   530
                             )
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   531
                            )
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   532
                          
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   533
                         )
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   534
                       )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   535
                      )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   536
                    
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   537
                   )
3695
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
   538
                   handles: (Any 0.5 1.0)
3301
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   539
                 )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   540
                )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   541
              
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   542
             )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   543
             handles: (Any 0.33000000000000002 1.0)
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   544
           )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   545
          )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   546
        
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   547
       )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   548
     )
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   549
!
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   550
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   551
windowSpec_old
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   552
    "This resource specification was automatically generated
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   553
     by the UIPainter of ST/X."
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   554
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   555
    "Do not manually edit this!! If it is corrupted,
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   556
     the UIPainter may not be able to read the specification."
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   557
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   558
    "
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   559
     UIPainter new openOnClass:MethodFinderWindow andSelector:#windowSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   560
     MethodFinderWindow new openInterface:#windowSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   561
     MethodFinderWindow open
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   562
    "
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   563
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   564
    <resource: #canvas>
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   565
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   566
    ^ 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   567
    #(FullSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   568
       name: windowSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   569
       window: 
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   570
      (WindowSpec
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   571
         label: 'MethodFinder'
1663b107709f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3292
diff changeset
   572
         name: 'MethodFinder'
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   573
         bounds: (Rectangle 0 0 920 690)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   574
         menu: menu
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   575
         icon: defaultIcon
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   576
       )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   577
       component: 
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   578
      (SpecCollection
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   579
         collection: (
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   580
          (VariableHorizontalPanelSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   581
             name: 'VariableHorizontalPanel1'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   582
             layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   583
             snapMode: both
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   584
             component: 
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   585
            (SpecCollection
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   586
               collection: (
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   587
                (ViewSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   588
                   name: 'LeftBox'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   589
                   level: 1
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   590
                   component: 
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   591
                  (SpecCollection
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   592
                     collection: (
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   593
                      (ViewSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   594
                         name: 'ReceiverArgBox'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   595
                         layout: (LayoutFrame 0 0 0 0 0 1 -100 0.5)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   596
                         component: 
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   597
                        (SpecCollection
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   598
                           collection: (
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   599
                            (LabelSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   600
                               label: 'Receiver'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   601
                               name: 'ReceiverLabel'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   602
                               layout: (LayoutFrame 0 0 0 0 0 0.34000000000000002 28 0)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   603
                               translateLabel: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   604
                             )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   605
                            (ComboListSpec
3698
173ace914343 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3697
diff changeset
   606
                               name: 'AllowedArguments'
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   607
                               layout: (LayoutFrame 0 0.34000000000000002 1 0 0 0.64000000000000046 28 0)
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   608
                               activeHelpKey: argumentCount
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   609
                               model: argCountHolder
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   610
                               comboList: argCountList
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   611
                               useIndex: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   612
                             )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   613
                            (LabelSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   614
                               label: 'Answer'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   615
                               name: 'MessageAnswerLabel'
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   616
                               layout: (LayoutFrame 0 0.64000000000000046 0 0 0 1 28 0)
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   617
                               activeHelpKey: arg1Value
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   618
                               translateLabel: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   619
                             )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   620
                            (HorizontalPanelViewSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   621
                               name: 'HorizontalPanel1'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   622
                               layout: (LayoutFrame 0 0 30 0 0 1 0 1)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   623
                               horizontalLayout: fit
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   624
                               verticalLayout: fit
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   625
                               horizontalSpace: 3
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   626
                               verticalSpace: 3
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   627
                               component: 
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   628
                              (SpecCollection
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   629
                                 collection: (
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   630
                                  (WorkspaceSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   631
                                     name: 'ReceiverEditor'
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   632
                                     activeHelpKey: receiverValue
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   633
                                     tabable: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   634
                                     hasHorizontalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   635
                                     hasVerticalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   636
                                     miniScrollerHorizontal: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   637
                                     miniScrollerVertical: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   638
                                     autoHideScrollBars: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   639
                                     hasKeyboardFocusInitially: false
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   640
                                     extent: (Point 110 214)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   641
                                     postBuildCallback: receiverWidgetCreated:
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   642
                                   )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   643
                                  (VerticalPanelViewSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   644
                                     name: 'VerticalPanel1'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   645
                                     horizontalLayout: fit
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   646
                                     verticalLayout: fit
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   647
                                     horizontalSpace: 3
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   648
                                     verticalSpace: 3
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   649
                                     component: 
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   650
                                    (SpecCollection
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   651
                                       collection: (
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   652
                                        (ViewSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   653
                                           name: 'Box1'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   654
                                           visibilityChannel: arg1BoxVisible
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   655
                                           component: 
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   656
                                          (SpecCollection
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   657
                                             collection: (
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   658
                                              (WorkspaceSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   659
                                                 name: 'Arg1Editor'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   660
                                                 layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   661
                                                 activeHelpKey: arg1Value
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   662
                                                 tabable: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   663
                                                 hasHorizontalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   664
                                                 hasVerticalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   665
                                                 miniScrollerHorizontal: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   666
                                                 miniScrollerVertical: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   667
                                                 autoHideScrollBars: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   668
                                                 hasKeyboardFocusInitially: false
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   669
                                                 postBuildCallback: argument1WidgetCreated:
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   670
                                               )
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   671
                                              )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   672
                                            
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   673
                                           )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   674
                                           extent: (Point 110 69)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   675
                                         )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   676
                                        (ViewSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   677
                                           name: 'Box2'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   678
                                           visibilityChannel: arg2BoxVisible
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   679
                                           component: 
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   680
                                          (SpecCollection
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   681
                                             collection: (
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   682
                                              (WorkspaceSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   683
                                                 name: 'TextEditor5'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   684
                                                 layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   685
                                                 activeHelpKey: arg2Value
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   686
                                                 tabable: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   687
                                                 hasHorizontalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   688
                                                 hasVerticalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   689
                                                 miniScrollerHorizontal: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   690
                                                 miniScrollerVertical: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   691
                                                 autoHideScrollBars: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   692
                                                 hasKeyboardFocusInitially: false
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   693
                                                 postBuildCallback: argument2WidgetCreated:
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   694
                                               )
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   695
                                              )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   696
                                            
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   697
                                           )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   698
                                           extent: (Point 110 70)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   699
                                         )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   700
                                        (ViewSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   701
                                           name: 'Box3'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   702
                                           visibilityChannel: arg3BoxVisible
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   703
                                           component: 
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   704
                                          (SpecCollection
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   705
                                             collection: (
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   706
                                              (WorkspaceSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   707
                                                 name: 'TextEditor6'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   708
                                                 layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   709
                                                 activeHelpKey: arg3Value
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   710
                                                 tabable: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   711
                                                 hasHorizontalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   712
                                                 hasVerticalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   713
                                                 miniScrollerHorizontal: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   714
                                                 miniScrollerVertical: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   715
                                                 autoHideScrollBars: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   716
                                                 hasKeyboardFocusInitially: false
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   717
                                                 postBuildCallback: argument3WidgetCreated:
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   718
                                               )
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   719
                                              )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   720
                                            
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   721
                                           )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   722
                                           extent: (Point 110 69)
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   723
                                         )
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   724
                                        )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   725
                                      
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   726
                                     )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   727
                                     extent: (Point 110 214)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   728
                                   )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   729
                                  (WorkspaceSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   730
                                     name: 'AnswerEditor'
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   731
                                     activeHelpKey: answerValue
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   732
                                     tabable: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   733
                                     hasHorizontalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   734
                                     hasVerticalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   735
                                     miniScrollerHorizontal: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   736
                                     miniScrollerVertical: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   737
                                     autoHideScrollBars: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   738
                                     hasKeyboardFocusInitially: false
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   739
                                     extent: (Point 110 214)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   740
                                     postBuildCallback: messageAnswerWidgetCreated:
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   741
                                   )
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   742
                                  )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   743
                                
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   744
                               )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   745
                             )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   746
                            )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   747
                          
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   748
                         )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   749
                       )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   750
                      (ViewSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   751
                         name: 'ReceiverArgBoxActionBox'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   752
                         layout: (LayoutFrame 0 0 -98 0.5 0 1 -75 0.5)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   753
                         component: 
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   754
                        (SpecCollection
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   755
                           collection: (
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   756
                            (ActionButtonSpec
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   757
                               activeHelpKey: clearButton    
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   758
                               label: 'Clear'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   759
                               name: 'Button2'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   760
                               layout: (LayoutFrame 5 0 0 0 -5 0.5 0 1)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   761
                               translateLabel: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   762
                               model: clear
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
   763
                             )
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   764
                            (ActionButtonSpec
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   765
                               activeHelpKey: startSearchButton    
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   766
                               label: 'Search'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   767
                               name: 'Button1'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   768
                               layout: (LayoutFrame 5 0.5 0 0 -5 1 0 1)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   769
                               translateLabel: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   770
                               tabable: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   771
                               model: search
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   772
                             )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   773
                            )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   774
                          
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   775
                         )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   776
                       )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   777
                      (ViewSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   778
                         name: 'MatchActionBox'
3290
19e31edb0dd6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3289
diff changeset
   779
                         layout: (LayoutFrame 0 0 -70 0.5 0 1 10 0.5)
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   780
                         component: 
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   781
                        (SpecCollection
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   782
                           collection: (
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   783
                            (LabelSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   784
                               label: 'Selector Pattern:'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   785
                               name: 'Label1'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   786
                               layout: (LayoutFrame 0 0 0 0 0 0.5 25 0)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   787
                               translateLabel: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   788
                               adjust: left
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   789
                             )
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   790
                            (InputFieldSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   791
                               name: 'EntryField1'
3290
19e31edb0dd6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3289
diff changeset
   792
                               layout: (LayoutFrame 2 0 -54 1 -2 1 -29 1)
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   793
                               model: selectorPatternHolder
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   794
                               immediateAccept: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   795
                               acceptOnReturn: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   796
                               acceptOnTab: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   797
                               acceptOnPointerLeave: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   798
                             )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   799
                            (ActionButtonSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   800
                               label: 'Search'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   801
                               name: 'Button4'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   802
                               layout: (LayoutFrame 5 0.5 -25 1 -5 1 0 1)
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   803
                               translateLabel: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   804
                               tabable: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   805
                               model: searchPatternMatchesInBackground
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
   806
                             )
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   807
                            )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   808
                          
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   809
                         )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   810
                       )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   811
                      (SequenceViewSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   812
                         name: 'ResultList'
3290
19e31edb0dd6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3289
diff changeset
   813
                         layout: (LayoutFrame 0 0 15 0.5 0 1 0 1)
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   814
                         model: selectedImplementorsHolder
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   815
                         menu: resultListMenu
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   816
                         hasHorizontalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   817
                         hasVerticalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   818
                         autoHideScrollBars: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   819
                         useIndex: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   820
                         sequenceList: resultHolder
1530
37b18e9a12fb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1529
diff changeset
   821
                       )
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   822
                      )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   823
                    
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   824
                   )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   825
                 )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   826
                (VariableVerticalPanelSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   827
                   name: 'VariableVerticalPanel1'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   828
                   component: 
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   829
                  (SpecCollection
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   830
                     collection: (
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   831
                      (SequenceViewSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   832
                         name: 'List2'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   833
                         model: selectedClassOfResultHolder
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   834
                         menu: implementorListMenu
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   835
                         hasHorizontalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   836
                         hasVerticalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   837
                         autoHideScrollBars: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   838
                         doubleClickSelector: openBrowserOn:
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   839
                         valueChangeSelector: selectedClassOfResultHolderChanged
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   840
                         useIndex: false
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   841
                         sequenceList: classOfResultHolder
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   842
                       )
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   843
                      (CodeViewSpec
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   844
                         name: 'CodeView'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   845
                         model: codeHolder
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   846
                         hasHorizontalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   847
                         hasVerticalScrollBar: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   848
                         autoHideScrollBars: true
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   849
                         hasKeyboardFocusInitially: false
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   850
                         postBuildCallback: sourceCodeWidgetCreated:
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   851
                         viewClassName: 'codeViewClass'
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   852
                       )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   853
                      )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   854
                    
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   855
                   )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   856
                   handles: (Any 0.5 1.0)
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   857
                 )
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   858
                )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   859
              
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   860
             )
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
   861
             handles: (Any 0.37391304347826104 1.0)
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   862
           )
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   863
          )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   864
        
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   865
       )
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
   866
     )
3698
173ace914343 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3697
diff changeset
   867
173ace914343 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3697
diff changeset
   868
    "Modified: / 19-07-2019 / 12:01:12 / Claus Gittinger"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
   869
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
   870
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   871
!MethodFinderWindow class methodsFor:'menu specs'!
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   872
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   873
helpMenu
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   874
    "This resource specification was automatically generated
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   875
     by the MenuEditor of ST/X."
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   876
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   877
    "Do not manually edit this!! If it is corrupted,
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   878
     the MenuEditor may not be able to read the specification."
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   879
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   880
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   881
    "
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   882
     MenuEditor new openOnClass:MethodFinderWindow andSelector:#helpMenu
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   883
     (Menu new fromLiteralArrayEncoding:(MethodFinderWindow helpMenu)) startUp
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   884
    "
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   885
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   886
    <resource: #menu>
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   887
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   888
    ^ 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   889
     #(Menu 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   890
       (MenuItem
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   891
          activeHelpKey: helpTutorial
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   892
          label: 'Documentation'
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   893
          itemValue: openHTMLDocumentation
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   894
       ) 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   895
       (MenuItem
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   896
          label: '-'
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   897
       ) 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   898
       (MenuItem
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   899
          label: 'Show Me How it Works'
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   900
          itemValue: showMeHowItWorks
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   901
       ) 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   902
       (MenuItem
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   903
          label: '-'
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   904
       ) 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   905
       (MenuItem
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   906
          activeHelpKey: aboutThisAppliaction
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   907
          label: 'About MethodFinder...'
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   908
          itemValue: openAboutThisApplication
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   909
       )
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   910
     )
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   911
!
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   912
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   913
implementorListMenu
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   914
    "This resource specification was automatically generated
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   915
     by the MenuEditor of ST/X."
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   916
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   917
    "Do not manually edit this!! If it is corrupted,
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   918
     the MenuEditor may not be able to read the specification."
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   919
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   920
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   921
    "
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   922
     MenuEditor new openOnClass:MethodFinderWindow andSelector:#implementorListMenu
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   923
     (Menu new fromLiteralArrayEncoding:(MethodFinderWindow implementorListMenu)) startUp
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   924
    "
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   925
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   926
    <resource: #menu>
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   927
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   928
    ^ 
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   929
     #(Menu 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   930
       (MenuItem
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   931
          label: 'Browse'
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   932
          itemValue: openBrowserOnSelectedItem
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   933
       )
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   934
     )
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   935
!
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   936
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   937
menu
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   938
    "This resource specification was automatically generated
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   939
     by the MenuEditor of ST/X."
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   940
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   941
    "Do not manually edit this!! If it is corrupted,
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   942
     the MenuEditor may not be able to read the specification."
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   943
3685
854b28268aa6 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   944
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   945
    "
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   946
     MenuEditor new openOnClass:MethodFinderWindow andSelector:#menu
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   947
     (Menu new fromLiteralArrayEncoding:(MethodFinderWindow menu)) startUp
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   948
    "
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   949
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   950
    <resource: #menu>
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   951
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   952
    ^ 
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   953
     #(Menu 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   954
       (MenuItem
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   955
          activeHelpKey: file
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   956
          label: '&File'
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   957
          submenu: 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   958
         (Menu 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   959
           (MenuItem
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   960
              activeHelpKey: fileExit
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   961
              label: 'Exit'
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   962
              itemValue: closeRequest
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   963
           )
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
   964
         )
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   965
       ) 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   966
       (MenuItem
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   967
          label: 'MENU_Help'
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   968
          startGroup: conditionalRight
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   969
          submenuChannel: helpMenu
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   970
       )
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   971
     )
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   972
!
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   973
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   974
resultListMenu
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   975
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   976
     by the MenuEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   977
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   978
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   979
     the MenuEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   980
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   981
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   982
    "
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   983
     MenuEditor new openOnClass:MethodFinderWindow andSelector:#resultListMenu
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   984
     (Menu new fromLiteralArrayEncoding:(MethodFinderWindow resultListMenu)) startUp
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   985
    "
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   986
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   987
    <resource: #menu>
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   988
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
   989
    ^ 
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   990
     #(Menu 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   991
       (MenuItem
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   992
          label: 'Browse Senders'
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   993
          itemValue: openBrowserOnSenderOfSelectedResultItem
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   994
       ) 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   995
       (MenuItem
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   996
          label: 'Browse Implementors'
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   997
          itemValue: openBrowserOnSelectedResultItem
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   998
       )
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
   999
     )
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1000
! !
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1001
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1002
!MethodFinderWindow class methodsFor:'startup'!
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1003
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1004
openOnSelectorPattern:selector
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1005
    |app|
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1006
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1007
    app := self new.
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1008
    app allButOpen.
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1009
    app selectorPatternHolder value:selector.
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1010
    app openWindow.
3290
19e31edb0dd6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3289
diff changeset
  1011
    "/ app waitForBackgroundSearchFinished.
19e31edb0dd6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3289
diff changeset
  1012
    
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1013
    ^ app
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1014
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1015
    "
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1016
     self openOnSelectorPattern:'asLowercase'
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1017
    "
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1018
! !
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1019
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1020
!MethodFinderWindow methodsFor:'accessing'!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1021
f67b97bc683a initial checkin
james
parents:
diff changeset
  1022
receiver
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1023
    "Return a copy of the value of the instance variable 'receiver' "
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1024
f67b97bc683a initial checkin
james
parents:
diff changeset
  1025
    ^ receiver copy
f67b97bc683a initial checkin
james
parents:
diff changeset
  1026
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
  1027
f67b97bc683a initial checkin
james
parents:
diff changeset
  1028
!MethodFinderWindow methodsFor:'actions'!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1029
f67b97bc683a initial checkin
james
parents:
diff changeset
  1030
clear
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1031
    "Reset the contents of all the outputs."
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1032
f67b97bc683a initial checkin
james
parents:
diff changeset
  1033
    receiverEditor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
  1034
    argument1Editor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
  1035
    argument2Editor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
  1036
    argument3Editor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
  1037
    messageAnswerEditor contents:nil.
f67b97bc683a initial checkin
james
parents:
diff changeset
  1038
    self resultHolder value:nil.
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1039
    self classOfResultHolder value: nil.
2730
abcb0402d5ba changed: #clear
Claus Gittinger <cg@exept.de>
parents: 2459
diff changeset
  1040
    codeHolder value:nil.
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1041
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1042
f67b97bc683a initial checkin
james
parents:
diff changeset
  1043
messageAnswerEditorContents
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1044
    "Return a cleaned up version of message answer taken from the messageAnswerEditor
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1045
     as an association. The association has cleanedAnswerString as a key and the
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1046
     compiledAnswer as value."
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1047
    
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1048
    |aCleanedAnswerString compiledAnswer|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1049
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1050
    aCleanedAnswerString := self cleanInputs:(messageAnswerEditor contents).
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1051
    compiledAnswer := Compiler evaluate:aCleanedAnswerString.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1052
    ((self isExpression:aCleanedAnswerString) or:[ compiledAnswer isNil ]) ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1053
        aCleanedAnswerString := compiledAnswer printString
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1054
    ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1055
    ^ aCleanedAnswerString -> compiledAnswer.
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1056
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1057
f67b97bc683a initial checkin
james
parents:
diff changeset
  1058
openBrowserOn:anArgument 
f67b97bc683a initial checkin
james
parents:
diff changeset
  1059
    "Opens browser on theArgument of a specific class. anArgument being a string with the
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1060
       Class and the selector upon which the browser is to be opened. Return the receiver."
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1061
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1062
    |classAndSelector|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1063
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1064
    classAndSelector := self extractClassAndSelectorFrom:anArgument.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1065
    classAndSelector isNil ifTrue:[
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1066
        ^ self
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1067
    ].
3482
de4a67d603bb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3322
diff changeset
  1068
    SystemBrowser default
2459
dc2cc94d9444 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  1069
        openInClass:classAndSelector key 
dc2cc94d9444 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  1070
        selector:classAndSelector value   
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1071
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1072
"
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1073
MethodFinderWindow new openBrowserOn: '*SmallInteger +'
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1074
MethodFinderWindow new openBrowserOn: 'String ,'
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1075
MethodFinderWindow new openBrowserOn: 'Number detentBy:atMultiplesOf:snap:' 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1076
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1077
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1078
"
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1079
3482
de4a67d603bb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3322
diff changeset
  1080
    "Modified: / 01-09-2017 / 14:21:18 / cg"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1081
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1082
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1083
openBrowserOnSelectedItem 
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1084
    "on the selected implementor"
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1085
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1086
    |sel|
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1087
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1088
    sel := self selectedClassOfResultHolder value.
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1089
    self openBrowserOn:sel
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1090
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1091
    "Modified: / 13-11-2001 / 12:47:39 / cg"
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1092
    "Modified (comment): / 21-09-2012 / 11:08:33 / cg"
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1093
!
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1094
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1095
openBrowserOnSelectedResultItem 
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1096
    "on an item in the lower left list,
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1097
     on all implementors of that message"
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1098
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1099
    |selIndex selector|
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1100
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1101
    selIndex := self selectedImplementorsHolder value.
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1102
    selIndex isNil ifTrue:[^ self].
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1103
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1104
    selector := resultSelectors at:selIndex.
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1105
    UserPreferences browserClass browseImplementorsOf:selector.
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1106
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1107
    "Created: / 21-09-2012 / 11:05:46 / cg"
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1108
!
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1109
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1110
openBrowserOnSenderOfSelectedResultItem
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1111
    "on an item in the lower left list,
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1112
     on all implementors of that message"
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1113
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1114
    |selIndex selector|
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1115
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1116
    selIndex := self selectedImplementorsHolder value.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1117
    selIndex isNil ifTrue:[^ self].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1118
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1119
    selector := resultSelectors at:selIndex.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1120
    UserPreferences browserClass browseSendersOf:selector.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1121
!
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1122
f67b97bc683a initial checkin
james
parents:
diff changeset
  1123
search
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1124
    "Do a search based on the input in the various text editors. Return the receiver."
3322
7fa5dfa1832f #OTHER by mawalch
mawalch
parents: 3315
diff changeset
  1125
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1126
    |tempReceiver tempAnswer tempArguments anArray resultArray receiverWithArgument mf|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1127
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1128
    self resultHolder value:nil.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1129
    self classOfResultHolder value:nil.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1130
    self codeHolder value:nil.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1131
    tempArguments := self argumentEditorsContents.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1132
    tempReceiver := self receiverEditorContents.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1133
    tempAnswer := self messageAnswerEditorContents.
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1134
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1135
    "self cleanInputRec:tempReceiver arg:tempArguments ans:tempAnswer."
3741
373454460851 #DOCUMENTATION by exept
Claus Gittinger <cg@exept.de>
parents: 3720
diff changeset
  1136
    receiverWithArgument := self mergeReceiver:(tempReceiver value) withArgument:(tempArguments values).
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1137
    anArray := Array
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1138
        with:receiverWithArgument
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1139
        with:tempAnswer value.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1140
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1141
    "an array now holds the following array #(#(receiver argument) answer) or #(#(receiver) answer). 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1142
     which should be suitable input for the method finder."
3767
4c67d2bfe4f4 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 3766
diff changeset
  1143
    self withCursor:(Cursor execute) do:[
4c67d2bfe4f4 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 3766
diff changeset
  1144
        mf := MethodFinder new.
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1145
        mf load:anArray.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1146
        resultArray := mf findMessage.
3767
4c67d2bfe4f4 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 3766
diff changeset
  1147
    ].
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1148
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1149
    (resultArray isString "(resultArray at:1) includesSubString:'no single'") ifTrue:[
3695
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1150
        false ifTrue:[
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1151
            (self confirm:(c'%1\nTry a more exhaustive search (may take long)?' bindWith:(resultArray at:1)))
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1152
            ifTrue:[
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1153
                self search2Levels.
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1154
            ]. 
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1155
        ] ifFalse:[
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1156
            self warn:(resultArray at:1).
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1157
        ].    
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1158
        ^ self
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1159
    ].
3695
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1160
    
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1161
    "the following then replaces data1 and data2 created by the method finder to the appropriate arguments"
3322
7fa5dfa1832f #OTHER by mawalch
mawalch
parents: 3315
diff changeset
  1162
    resultArray
7fa5dfa1832f #OTHER by mawalch
mawalch
parents: 3315
diff changeset
  1163
        keysAndValuesDo:[:key :value |
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1164
            |newValue|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1165
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1166
            newValue := value copyReplaceString:'data1' 
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1167
                              withString:(tempReceiver value storeString). "/ was: "tempReceiver key" 
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1168
            (tempArguments size) >= 1 ifTrue:[
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1169
                newValue := newValue copyReplaceString:'data2'
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1170
                                     withString:(tempArguments valueAt:1) storeString "/ was "keyAt:1" 
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1171
            ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1172
            (tempArguments size) > 1 ifTrue:[
3544
5d127d65ea3e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3514
diff changeset
  1173
                newValue := newValue copyReplaceString:'data3'
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1174
                                     withString:(tempArguments valueAt:2) storeString. "/ was "keyAt:2" 
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1175
            ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1176
            (tempArguments size) > 2 ifTrue:[
3544
5d127d65ea3e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3514
diff changeset
  1177
                newValue := newValue copyReplaceString:'data4'
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1178
                                     withString:(tempArguments valueAt:3) storeString. "/ was: keyAt:3
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1179
            ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1180
            (tempArguments size) > 3 ifTrue:[
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1181
                self halt:'unimplemented'.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1182
            ].
3544
5d127d65ea3e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3514
diff changeset
  1183
             "    newValue:= value copyReplaceString: 'data3' withString:(self messageAnswer key). "
3024
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1184
            newValue := newValue , ' --> ' , (tempAnswer key).
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1185
            newValue replaceAll:Character cr with:Character space.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1186
            resultArray at:key put:newValue.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1187
        ].
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1188
    self resultHolder value:resultArray.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1189
    resultSelectors := mf selectors.
66a99ab06e19 class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3023
diff changeset
  1190
    receiver := tempReceiver
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1191
2859
118c4294d9cd changed: #search
Claus Gittinger <cg@exept.de>
parents: 2775
diff changeset
  1192
    "Modified: / 26-09-2011 / 12:42:28 / cg"
3544
5d127d65ea3e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3514
diff changeset
  1193
    "Modified: / 27-02-2018 / 11:37:58 / stefan"
3695
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1194
    "Modified: / 18-07-2019 / 21:57:12 / Claus Gittinger"
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1195
!
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1196
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1197
search2Levels
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1198
    "Do an exhaustive search.
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1199
     Given the original message,
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1200
     try applying all unary messages first to the receiver,
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1201
     then to each argument.
3770
3f324e812f60 #DOCUMENTATION by exept
Claus Gittinger <cg@exept.de>
parents: 3769
diff changeset
  1202
     This takes O(N²) time - so be prepared"
3695
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1203
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1204
    |tempReceiver tempAnswer tempArguments anArray resultArray receiverWithArgument mf|
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1205
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1206
    tempArguments := self argumentEditorsContents.
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1207
    tempReceiver := self receiverEditorContents.
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1208
    tempAnswer := self messageAnswerEditorContents.
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1209
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1210
    receiverWithArgument := self mergeReceiver:(tempReceiver value)
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1211
                                 withArgument:(tempArguments values).
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1212
    anArray := Array
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1213
        with:receiverWithArgument;
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1214
        with:tempAnswer value.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1215
3695
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1216
    "an array now holds the following array #(#(receiver argument) answer) or #(#(receiver) answer). 
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1217
     which should be suitable input for the method finder."
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1218
    self withCursor:Cursor execute do:[
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1219
        mf := MethodFinder new.
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1220
        mf load:anArray.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1221
        resultArray := mf findMessage.
3695
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1222
    ].
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1223
        
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1224
    (resultArray isString "(resultArray at:1) includesSubString:'no single'") ifTrue:[
3695
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1225
        (self confirm:(c'%1\nTry a more exhaustive search (may take long)?' bindWith:(resultArray at:1)))
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1226
        ifTrue:[
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1227
            self search2Levels.
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1228
        ].    
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1229
        ^ self
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1230
    ].
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1231
    
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1232
    "the following then replaces data1 and data2 created by the method finder to the appropriate arguments"
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1233
    resultArray
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1234
        keysAndValuesDo:[:key :value |
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1235
            |newValue|
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1236
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1237
            newValue := value copyReplaceString:'data1' 
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1238
                              withString:(tempReceiver value storeString). "/ was: "tempReceiver key" 
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1239
            (tempArguments size) >= 1 ifTrue:[
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1240
                newValue := newValue copyReplaceString:'data2'
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1241
                                     withString:(tempArguments valueAt:1) storeString "/ was "keyAt:1" 
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1242
            ].
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1243
            (tempArguments size) > 1 ifTrue:[
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1244
                newValue := newValue copyReplaceString:'data3'
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1245
                                     withString:(tempArguments valueAt:2) storeString. "/ was "keyAt:2" 
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1246
            ].
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1247
            (tempArguments size) > 2 ifTrue:[
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1248
                newValue := newValue copyReplaceString:'data4'
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1249
                                     withString:(tempArguments valueAt:3) storeString. "/ was: keyAt:3
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1250
            ].
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1251
            (tempArguments size) > 3 ifTrue:[
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1252
                self halt:'unimplemented'.
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1253
            ].
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1254
             "    newValue:= value copyReplaceString: 'data3' withString:(self messageAnswer key). "
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1255
            newValue := newValue , ' --> ' , (tempAnswer key).
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1256
            newValue replaceAll:Character cr with:Character space.
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1257
            resultArray at:key put:newValue.
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1258
        ].
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1259
    self resultHolder value:resultArray.
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1260
    resultSelectors := mf selectors.
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1261
    receiver := tempReceiver
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1262
bc4ff07233d7 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3685
diff changeset
  1263
    "Created: / 18-07-2019 / 21:22:47 / Claus Gittinger"
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1264
!
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1265
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1266
searchPatternMatches:pattern
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1267
    "Do a search based on the pattern match"
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1268
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1269
    |list counts firsts seconds selectors resultList idx match|
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1270
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1271
    self withCursor:Cursor execute do:[
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1272
        pattern includesMatchCharacters ifFalse:[   
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1273
            list := SystemBrowser findImplementorsOf:pattern in:Smalltalk allClasses ignoreCase:true.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1274
            list isEmptyOrNil ifTrue:[
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1275
                match := pattern,'*'.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1276
                list := SystemBrowser findImplementorsMatching:match in:Smalltalk allClasses ignoreCase:true.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1277
            ].
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1278
        ] ifTrue:[
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1279
            match := pattern.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1280
            list := SystemBrowser findImplementorsMatching:match in:Smalltalk allClasses ignoreCase:true.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1281
        ].
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1282
    ].
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1283
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1284
    counts := IdentityDictionary new.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1285
    firsts := IdentityDictionary new.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1286
    seconds := IdentityDictionary new.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1287
    selectors := IdentitySet new.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1288
    list do:[:eachMethod |
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1289
        |msel|
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1290
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1291
        msel := eachMethod selector.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1292
        selectors add:msel.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1293
        (counts at:msel ifAbsentPut:[ 0 asValue ]) increment.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1294
        (firsts includesKey:msel) ifTrue:[
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1295
            (seconds includesKey:msel) ifFalse:[
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1296
                seconds at:msel ifAbsentPut:[ eachMethod mclass ].
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1297
            ].
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1298
        ] ifFalse:[
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1299
            firsts at:msel ifAbsentPut:[ eachMethod mclass ].
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1300
        ].
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1301
    ].
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1302
    resultSelectors := selectors asOrderedCollection sort.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1303
    resultList := resultSelectors 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1304
                    collect:[:sel | 
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1305
                        |cnt s|
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1306
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1307
                        s := sel allBold , ' --> '.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1308
                        cnt := (counts at:sel) value.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1309
                        cnt == 1 ifTrue:[
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1310
                            s , (firsts at:sel) name
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1311
                        ] ifFalse:[
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1312
                            cnt == 2 ifTrue:[
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1313
                                s , (firsts at:sel) name , ' and ' , (seconds at:sel) name
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1314
                            ] ifFalse:[
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1315
                                s , cnt printString , ' implementor(s)'
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1316
                            ]
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1317
                        ].
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1318
                    ].
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1319
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1320
    self enqueueDelayedAction:[ self updateListAfterPatternSearch: resultList ].
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1321
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1322
    "Created: / 01-06-2012 / 13:16:54 / cg"
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1323
!
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1324
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1325
searchPatternMatchesInBackground
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1326
    "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
  1327
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1328
    | p pattern|
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1329
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1330
    (p := searchProcess) notNil ifTrue:[
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1331
        searchProcess := nil.
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1332
        p terminate.
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1333
    ].
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1334
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1335
    pattern := self selectorPatternHolder value.
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1336
    pattern isEmptyOrNil ifTrue:[
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1337
        self resultHolder value:self resultInfoText.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1338
        self classOfResultHolder value:nil.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1339
        self codeHolder value:nil.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1340
        ^ self
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1341
    ].
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1342
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1343
    searchProcess := 
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1344
        [
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1345
            self searchPatternMatches:pattern.
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1346
        ] fork.
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1347
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1348
    "Created: / 01-06-2012 / 13:16:54 / cg"
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1349
!
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1350
3766
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1351
selectedImplementorChanged
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1352
    self updateImplementorsOf:selectedImplementorsHolder value
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1353
!
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1354
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1355
updateImplementorsOf:anInteger 
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1356
    "Request the implementors of the selected argument provided by aNumber.
2892
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1357
     Return the receiver."
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1358
    
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1359
    |methods classList aNumber|
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1360
2892
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1361
    (anInteger isNil) ifTrue:[
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1362
        ^ self
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1363
    ].
3646
41efae926aa9 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3645
diff changeset
  1364
    aNumber := anInteger ? 1.
2892
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1365
    methods := SystemBrowser 
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1366
            findImplementorsOf:(resultSelectors at:aNumber)
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1367
            in:Smalltalk allClasses
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1368
            ignoreCase:false.
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1369
    methods := methods asOrderedCollection. 
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1370
    classList := methods collect:[:m | m mclass name , ' ' , m selector ].
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1371
    classList := self markMatchingClasses:(resultSelectors at:aNumber) 
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1372
                      classesWithSelector:classList.
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1373
    "/ now classList contains a list of <className> <selector>,
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1374
    "/ where the one which is responsible for the selected result is marked (bold)
2892
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1375
    self classOfResultHolder value:classList.
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1376
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1377
    "/ initially select the bold one
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1378
    classList notEmptyOrNil ifTrue:[
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1379
        |receiversMethodEntryInClass|
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1380
        
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1381
        receiversMethodEntryInClass := classList detect:#isText ifNone:nil.
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1382
        receiversMethodEntryInClass notNil ifTrue:[
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1383
            self selectedClassOfResultHolder value:receiversMethodEntryInClass.
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1384
        ] ifFalse:[
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1385
            self selectedClassOfResultHolder value:(classList first).
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1386
        ].
2892
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1387
        self selectedClassOfResultHolderChanged.
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1388
    ] ifFalse:[
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1389
        self selectedClassOfResultHolder value:nil.
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1390
    ].
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1391
2892
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1392
    "Modified (comment): / 24-06-2012 / 18:41:45 / cg"
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1393
    "Modified: / 08-06-2019 / 15:39:49 / Claus Gittinger"
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1394
!
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1395
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1396
updateListAfterPatternSearch:resultList
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1397
    |searchPattern idx|
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1398
    
2892
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1399
    self classOfResultHolder value:nil.
a1349bc5e2fe changed:
Claus Gittinger <cg@exept.de>
parents: 2891
diff changeset
  1400
    self codeHolder value:nil.
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1401
    self resultHolder value:resultList.
2891
d4f1cd8626e6 class definition
Claus Gittinger <cg@exept.de>
parents: 2890
diff changeset
  1402
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1403
    searchPattern := self selectorPatternHolder value.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1404
    "/ is the search pattern in the list (i.e. a perfect match)?
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1405
    "/ Then select it.
3769
0a821dfa2cca #BUGFIX by exept
Claus Gittinger <cg@exept.de>
parents: 3768
diff changeset
  1406
    idx := resultSelectors indexOf:searchPattern.
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1407
    idx ~~ 0 ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1408
        self selectedImplementorsHolder setValue:idx; changed
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1409
    ].    
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1410
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
  1411
f67b97bc683a initial checkin
james
parents:
diff changeset
  1412
!MethodFinderWindow methodsFor:'aspects'!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1413
f67b97bc683a initial checkin
james
parents:
diff changeset
  1414
arg1BoxVisible
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1415
    "Determines if the box should be visible or not. 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1416
     Return a holder providing true or false"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1417
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1418
    arg1BoxVisible isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
  1419
        arg1BoxVisible := BlockValue
3665
86d311ea68fd #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3646
diff changeset
  1420
                              with:[:vh | vh >= 2 ]
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1421
                              argument:(self argCountHolder)
f67b97bc683a initial checkin
james
parents:
diff changeset
  1422
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
  1423
    ^ arg1BoxVisible.
3665
86d311ea68fd #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3646
diff changeset
  1424
86d311ea68fd #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3646
diff changeset
  1425
    "Modified: / 17-05-2019 / 16:16:59 / Stefan Vogel"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1426
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1427
f67b97bc683a initial checkin
james
parents:
diff changeset
  1428
arg2BoxVisible
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1429
    "Determines if the box should be visible or not. 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1430
     Return a holder providing true or false"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1431
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1432
    arg2BoxVisible isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
  1433
        arg2BoxVisible := BlockValue
3665
86d311ea68fd #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3646
diff changeset
  1434
                              with:[:vh | vh >= 3 ]
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1435
                              argument:(self argCountHolder)
f67b97bc683a initial checkin
james
parents:
diff changeset
  1436
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
  1437
    ^ arg2BoxVisible.
3665
86d311ea68fd #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3646
diff changeset
  1438
86d311ea68fd #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3646
diff changeset
  1439
    "Modified: / 17-05-2019 / 16:16:54 / Stefan Vogel"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1440
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1441
f67b97bc683a initial checkin
james
parents:
diff changeset
  1442
arg3BoxVisible
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1443
    "Determines if the box should be visible or not. 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1444
     Return a holder providing true or false"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1445
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1446
    arg3BoxVisible isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
  1447
        arg3BoxVisible := BlockValue
3665
86d311ea68fd #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3646
diff changeset
  1448
                              with:[:vh | vh >= 4 ]
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1449
                              argument:(self argCountHolder)
f67b97bc683a initial checkin
james
parents:
diff changeset
  1450
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
  1451
    ^ arg3BoxVisible.
3665
86d311ea68fd #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3646
diff changeset
  1452
86d311ea68fd #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3646
diff changeset
  1453
    "Modified: / 17-05-2019 / 16:16:48 / Stefan Vogel"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1454
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1455
f67b97bc683a initial checkin
james
parents:
diff changeset
  1456
arg4BoxVisible
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1457
    "Determines if the box should be visible or not. 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1458
     Return a holder providing true or false"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1459
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1460
    arg4BoxVisible isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
  1461
        arg4BoxVisible := BlockValue
3665
86d311ea68fd #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3646
diff changeset
  1462
                              with:[:vh | vh >= 5 ]
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1463
                              argument:(self argCountHolder)
f67b97bc683a initial checkin
james
parents:
diff changeset
  1464
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
  1465
    ^ arg4BoxVisible.
3665
86d311ea68fd #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3646
diff changeset
  1466
86d311ea68fd #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3646
diff changeset
  1467
    "Modified: / 17-05-2019 / 16:16:43 / Stefan Vogel"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1468
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1469
f67b97bc683a initial checkin
james
parents:
diff changeset
  1470
argCountHolder
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1471
    "Return an argCounterHolder which is initialized at 2."
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1472
    
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1473
    argCountHolder isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
  1474
        argCountHolder := 2 asValue.
f67b97bc683a initial checkin
james
parents:
diff changeset
  1475
    ].     
f67b97bc683a initial checkin
james
parents:
diff changeset
  1476
    ^ argCountHolder.
f67b97bc683a initial checkin
james
parents:
diff changeset
  1477
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1478
f67b97bc683a initial checkin
james
parents:
diff changeset
  1479
argCountList
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1480
    "Return the argCountList (shown in the combo)"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1481
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1482
    argCountList isNil ifTrue:[
f67b97bc683a initial checkin
james
parents:
diff changeset
  1483
        argCountList := #('0 arguments' '1 argument' '2 arguments' '3 arguments') asValue  
f67b97bc683a initial checkin
james
parents:
diff changeset
  1484
    ].
f67b97bc683a initial checkin
james
parents:
diff changeset
  1485
    ^ argCountList.
f67b97bc683a initial checkin
james
parents:
diff changeset
  1486
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1487
f67b97bc683a initial checkin
james
parents:
diff changeset
  1488
classOfResultHolder
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1489
    "Return a valueHolder which contains a collection with the names of the 
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1490
     implementors of a specific message.   "
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1491
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1492
    classOfResultHolder isNil ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1493
        classOfResultHolder := ValueHolder new.
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1494
    ].
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1495
    ^ classOfResultHolder
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1496
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1497
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1498
codeHolder
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1499
    codeHolder isNil ifTrue:[
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1500
        codeHolder := '' asValue.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1501
    ].
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1502
    ^ codeHolder.
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1503
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1504
    "Created: / 13.11.2001 / 12:44:11 / cg"
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1505
!
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1506
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1507
codeViewClass
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1508
    "the species of view to be created as codeview"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1509
    
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1510
    ^ Tools::CodeView2 ? CodeView
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1511
!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1512
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1513
resultHolder
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1514
    "Return a value holder which contains the results of a search as a collection."
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1515
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1516
    resultHolder isNil ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1517
        resultHolder := ValueHolder new.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1518
        resultHolder value:(self resultInfoText collect:[:l | l withColor:Color darkGrey]).
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1519
    ].
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1520
    ^ resultHolder.
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1521
2890
3d8556368fe9 added: #defaultIcon
Claus Gittinger <cg@exept.de>
parents: 2889
diff changeset
  1522
    "Modified: / 01-06-2012 / 13:06:02 / cg"
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1523
!
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1524
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1525
resultInfoText
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1526
    ^  {
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1527
          'Please enter combination of' .
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1528
          '    ',('receiver, arg and result' allBold) .
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1529
          'or a'.
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1530
          '    ',('selector search pattern' allBold) .
3289
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1531
          'into the above fields.' .
2902c1233b4e #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3215
diff changeset
  1532
          'Then click on either ',('"search"' allBold),'-button.'
3023
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1533
       }
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1534
!
8298397571eb class: MethodFinderWindow
Claus Gittinger <cg@exept.de>
parents: 3003
diff changeset
  1535
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1536
selectedClassOfResultHolder
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1537
    "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
  1538
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1539
    selectedClassOfResultHolder isNil ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1540
        selectedClassOfResultHolder := ValueHolder new.
1529
8c1607c0fbe8 pop up menu
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
  1541
    ].
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1542
    ^ selectedClassOfResultHolder
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1543
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1544
    "Modified (comment): / 21-09-2012 / 11:10:29 / cg"
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1545
!
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1546
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1547
selectedImplementorsHolder
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1548
    "valueHolder which contains the index of the selected implementors list (left list)"
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1549
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1550
    selectedImplementorsHolder isNil ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1551
        selectedImplementorsHolder := ValueHolder new.
3766
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1552
        selectedImplementorsHolder onChangeSend:#selectedImplementorChanged to:self.
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1553
    ].
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1554
    ^ selectedImplementorsHolder
2927
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1555
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1556
    "Created: / 21-09-2012 / 11:10:13 / cg"
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1557
!
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1558
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1559
selectorPatternHolder
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1560
    selectorPatternHolder isNil ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1561
        selectorPatternHolder := ValueHolder new.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1562
        selectorPatternHolder onChangeSend:#selectorPatternChanged to:self.
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1563
    ].
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1564
    ^ selectorPatternHolder
2886
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1565
ba035714bf27 added search by pattern;
Claus Gittinger <cg@exept.de>
parents: 2859
diff changeset
  1566
    "Created: / 27-04-2012 / 14:44:01 / cg"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1567
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
  1568
f67b97bc683a initial checkin
james
parents:
diff changeset
  1569
!MethodFinderWindow methodsFor:'controlInput'!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1570
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1571
cleanInputs:aDirtyString 
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1572
    "Find and remove common mistakes made by the user. Return the 
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1573
     'aStringToBeCleaned' variable"
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1574
    
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1575
    |aStringToBeCleaned rs position|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1576
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1577
    aStringToBeCleaned := aDirtyString.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1578
    (aStringToBeCleaned endsWith:(Character cr)) ifTrue:[
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1579
        aStringToBeCleaned := aStringToBeCleaned copyFrom:1 to:(aStringToBeCleaned size - 1).
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1580
    ].
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1581
    aStringToBeCleaned := aStringToBeCleaned withoutSeparators.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1582
    rs := ReadStream on:aStringToBeCleaned.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1583
    [
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1584
        rs upToAll_positionBefore:'#true'.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1585
        rs atEnd
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1586
    ] whileFalse:[
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1587
        position := rs position.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1588
        aStringToBeCleaned := aStringToBeCleaned 
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1589
                copyReplaceFrom:position
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1590
                to:position
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1591
                with:''.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1592
        rs := ReadStream on:aStringToBeCleaned.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1593
    ].
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1594
    rs := ReadStream on:aStringToBeCleaned.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1595
    [
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1596
        rs upToAll_positionBefore:'#false'.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1597
        rs atEnd
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1598
    ] whileFalse:[
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1599
        position := rs position.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1600
        aStringToBeCleaned := aStringToBeCleaned 
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1601
                copyReplaceFrom:position
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1602
                to:position
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1603
                with:''.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1604
        rs := ReadStream on:aStringToBeCleaned.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1605
    ].
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1606
    [
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1607
        rs upToAll_positionBefore:'#nil'.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1608
        rs atEnd
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1609
    ] whileFalse:[
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1610
        position := rs position.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1611
        aStringToBeCleaned := aStringToBeCleaned 
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1612
                copyReplaceFrom:position
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1613
                to:position
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1614
                with:''.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1615
        rs := ReadStream on:aStringToBeCleaned.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1616
    ].
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1617
    ^ aStringToBeCleaned
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1618
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1619
3315
17b0d3a76b7c #OTHER by mawalch
mawalch
parents: 3301
diff changeset
  1620
markMatchingClasses:aSelector classesWithSelector:anOrderedCollection
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1621
    " Matches the class of the receiver with all the elements in anOrderedCollection
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1622
     (which are classes with selectors). If a match is found it is marked with an asterisk.
3315
17b0d3a76b7c #OTHER by mawalch
mawalch
parents: 3301
diff changeset
  1623
     The classes are then sorted so the asterisk appears first. Return the
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1624
     markedClassList."
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1625
    
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1626
    |marker recClass unmarkedClassList markedClassList toMark|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1627
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1628
    marker := self class markerForImplementingClass.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1629
    recClass := receiver value class.
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1630
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1631
    toMark := OrderedCollection new.
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1632
    
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1633
    unmarkedClassList := anOrderedCollection copy.
3315
17b0d3a76b7c #OTHER by mawalch
mawalch
parents: 3301
diff changeset
  1634
    unmarkedClassList do:[:classAndMethod |
3290
19e31edb0dd6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3289
diff changeset
  1635
        |className class sel|
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1636
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1637
        className := (classAndMethod copyButLast:aSelector size) withoutSeparators.
3290
19e31edb0dd6 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3289
diff changeset
  1638
        class := Smalltalk classNamed:className. "/ Compiler evaluate:className.
3315
17b0d3a76b7c #OTHER by mawalch
mawalch
parents: 3301
diff changeset
  1639
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1640
        "/ (recClass == class)
3315
17b0d3a76b7c #OTHER by mawalch
mawalch
parents: 3301
diff changeset
  1641
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1642
        (recClass whichClassImplements:aSelector) == class ifTrue:[
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1643
            toMark add:classAndMethod.
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1644
        ].
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1645
    ].
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1646
    unmarkedClassList removeAll:toMark.
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1647
    unmarkedClassList addAll:(toMark collect:#allBold).
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1648
3315
17b0d3a76b7c #OTHER by mawalch
mawalch
parents: 3301
diff changeset
  1649
    unmarkedClassList
17b0d3a76b7c #OTHER by mawalch
mawalch
parents: 3301
diff changeset
  1650
        sort:[:a :b |
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1651
            |rawA rawB|
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1652
3090
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1653
            rawA := a string withoutPrefix:marker.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1654
            rawB := b string withoutPrefix:marker.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1655
            rawA < rawB.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1656
        ].
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1657
    markedClassList := unmarkedClassList.
ef71554ea9e9 class: MethodFinderWindow
Stefan Vogel <sv@exept.de>
parents: 3024
diff changeset
  1658
    ^ markedClassList
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1659
3675
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1660
    "Modified: / 13-11-2001 / 12:16:05 / cg"
caafc519b235 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3665
diff changeset
  1661
    "Modified: / 08-06-2019 / 15:36:30 / Claus Gittinger"
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1662
!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1663
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1664
mergeReceiver: aReceiver withArgument: arguments
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1665
3763
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1666
    "Puts the receiver and arguments into an array so it can be of a suitable input for the
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1667
     MethodFinder. Return an array."
1525
c91fbd9f8338 checkin from browser
james
parents: 1522
diff changeset
  1668
3763
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1669
    | tempReceiver tempArguments nTempArgs |
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1670
3763
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1671
    tempReceiver:= aReceiver.
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1672
    tempArguments := arguments.
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1673
    nTempArgs := tempArguments size.
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1674
3763
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1675
    nTempArgs == 0 ifTrue:[  
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1676
        ^ { tempReceiver }
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1677
    ].
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1678
    (nTempArgs == 1) ifTrue:[ 
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1679
        ^ { tempReceiver . (tempArguments at:1) }  "a receiver with an argument"
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1680
    ].
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1681
    (nTempArgs == 2) ifTrue:[  
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1682
        ^ { tempReceiver . (tempArguments at:1) . (tempArguments at:2) }  "a receiver with 2 arguments"
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1683
    ].
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1684
    (nTempArgs == 3) ifTrue:[ 
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1685
        ^ { tempReceiver .  (tempArguments at:1) . (tempArguments at:2) . (tempArguments at:3) } " 3 args"
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1686
    ].
c3c9e58661a6 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3761
diff changeset
  1687
    ^ nil
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1688
! !
f67b97bc683a initial checkin
james
parents:
diff changeset
  1689
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1690
!MethodFinderWindow methodsFor:'initialization'!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1691
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1692
argument1WidgetCreated: aWidget
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1693
    "UI post creation hook. remember the widget as an instance variable."
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1694
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1695
    argument1Editor := aWidget scrolledView.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1696
    aWidget tabMeansNextField:true.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1697
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1698
    "Modified: / 13.11.2001 / 12:21:41 / cg"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1699
!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1700
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1701
argument2WidgetCreated: aWidget
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1702
    "UI post creation hook. remember the widget as an instance variable."
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1703
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1704
    argument2Editor := aWidget scrolledView.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1705
    aWidget tabMeansNextField:true.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1706
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1707
    "Modified: / 13.11.2001 / 12:21:45 / cg"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1708
!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1709
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1710
argument3WidgetCreated: aWidget
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1711
    "UI post creation hook. remember the widget as an instance variable"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1712
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1713
    argument3Editor := aWidget scrolledView.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1714
    aWidget tabMeansNextField:true.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1715
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1716
    "Modified: / 13.11.2001 / 12:21:49 / cg"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1717
!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1718
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1719
messageAnswerWidgetCreated: aWidget
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1720
    "UI post creation hook. remember the widget as an instance variable."
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1721
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1722
    messageAnswerEditor := aWidget scrolledView.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1723
    aWidget tabMeansNextField:true.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1724
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1725
    "Modified: / 13.11.2001 / 12:24:55 / cg"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1726
!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1727
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1728
receiverWidgetCreated: aWidget
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1729
    "UI post creation hook. remember the widget as an instance variable."
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1730
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1731
    receiverEditor := aWidget scrolledView.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1732
    aWidget tabMeansNextField:true.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1733
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1734
    "Modified: / 13.11.2001 / 12:24:49 / cg"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1735
!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1736
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1737
sourceCodeWidgetCreated: aWidget
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1738
    "UI post creation hook. make the codeView readonly"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1739
    
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1740
    aWidget acceptAction:nil.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1741
    aWidget readOnly:true
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1742
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1743
    "Created: / 13.11.2001 / 12:50:27 / cg"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1744
    "Modified: / 13.11.2001 / 12:51:23 / cg"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1745
! !
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1746
3697
46c77420db3b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3696
diff changeset
  1747
!MethodFinderWindow methodsFor:'menu actions - help'!
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1748
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1749
aboutThisApplicationText
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1750
    |msg|
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1751
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1752
    msg := super aboutThisApplicationText.
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1753
    msg := msg , self aboutThisApplicationText2.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1754
    ^msg withCRs.
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1755
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1756
    "Modified: / 13.11.2001 / 12:56:44 / cg"
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1757
!
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1758
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1759
aboutThisApplicationText2
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1760
    ^ '\\Original written by Ted Kaehler, Scott Wallace and Dan Ingalls.
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1761
Ported from Squeak to ST/X by James Hayes (2001 james@exept.de).
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1762
Improved by Claus Gittinger.    
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1763
'.
3768
efaa34ed7534 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3767
diff changeset
  1764
    
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1765
!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1766
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1767
openHTMLDocumentation
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1768
    "about/help menu action"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1769
    
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1770
    HTMLDocumentView openFullOnDocumentationFile:'tools/misc/TOP.html#METHODFINDER'
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1771
! !
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1772
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1773
!MethodFinderWindow methodsFor:'private'!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1774
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1775
argumentEditorsContents
3766
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1776
    "Determine how many text editors of the arguments are used and store the result
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1777
    as argCounter. The result being the minimum between how many editors have
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1778
    expressions in and how many are displayed.
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1779
3766
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1780
    Add each argument string (key)and the evaluated version (value) to an Ordered Dictionary
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1781
    from each of the text editors.
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1782
3766
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1783
    Return the OrderedDictionary with the expressions from all the text editors. "
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1784
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1785
     | tempArguments argCounter tempArgument1Editor tempArgument2Editor tempArgument3Editor
3766
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1786
       associationKey associationValue|
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1787
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1788
    argCounter:=0.
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1789
3766
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1790
    tempArgument1Editor:= (self cleanInputs: argument1Editor contents).
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1791
    tempArgument2Editor:=  (self cleanInputs: argument2Editor contents).
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1792
    tempArgument3Editor:= (self cleanInputs: argument3Editor contents).
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1793
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1794
    tempArgument1Editor = '' ifFalse:[argCounter:=argCounter +1].
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1795
    tempArgument2Editor = '' ifFalse:[argCounter:=argCounter +1].
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1796
    tempArgument3Editor = '' ifFalse:[argCounter:=argCounter +1].
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1797
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1798
    argCounter:= (argCounter min: (self argCountHolder value -1)).
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1799
    tempArguments:= OrderedDictionary new:argCounter. 
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1800
3766
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1801
    (argCounter value >= 1) ifTrue:[
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1802
        associationValue:= (Compiler evaluate: tempArgument1Editor).
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1803
        ((self isExpression:tempArgument1Editor) or:[ associationValue isNil]) ifTrue:[
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1804
            "looks if an expression is typed in"
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1805
            associationKey:=associationValue printString
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1806
        ] ifFalse:[
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1807
            associationKey:=tempArgument1Editor
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1808
        ].
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1809
        tempArguments add: associationKey-> associationValue.
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1810
    ].
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1811
    (argCounter value >= 2) ifTrue:[ 
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1812
        associationValue:= (Compiler evaluate: tempArgument2Editor).
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1813
        (((self isExpression:tempArgument2Editor) or:[ associationValue isNil])) ifTrue:[
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1814
            "looks if an expression is typed in"
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1815
            associationKey:=associationValue printString
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1816
        ] ifFalse:[
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1817
            associationKey:=tempArgument2Editor
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1818
        ].
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1819
        tempArguments add: associationKey-> associationValue
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1820
    ].
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1821
3766
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1822
    (argCounter value >= 3) ifTrue:[ 
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1823
        associationValue:= (Compiler evaluate: tempArgument3Editor).
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1824
        ((self isExpression:tempArgument3Editor) or:[ associationValue isNil]) ifTrue:[
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1825
            "looks if an expression is typed in"
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1826
            associationKey:=associationValue printString
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1827
        ] ifFalse:[
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1828
            associationKey:=tempArgument3Editor
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1829
        ].
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1830
        tempArguments add: associationKey-> associationValue
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1831
    ].
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1832
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1833
3766
b1c31e1707b2 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 3763
diff changeset
  1834
    ^tempArguments
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1835
!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1836
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1837
extractClassAndSelectorFrom:anArgument 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1838
    "Opens browser on theArgument of a specific class. anArgument being a string with the
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1839
       Class and the selector upon which the browser is to be opened. Return the receiver."
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1840
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1841
    |aClass aSelector x theArgument marker|
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1842
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1843
    anArgument isNil ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1844
        ^ nil
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1845
    ].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1846
    marker := self class markerForImplementingClass.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1847
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1848
    theArgument := anArgument string withoutPrefix:marker.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1849
    aClass := theArgument copyUpTo:(Character space).
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1850
    x := aClass size + 2.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1851
    aSelector := theArgument copyFrom:x.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1852
    aClass := Smalltalk classNamed:aClass.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1853
    (aSelector startsWith:'class ') ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1854
        aSelector := aSelector withoutPrefix:'class '.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1855
        aClass := aClass class.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1856
    ].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1857
    ^ aClass -> aSelector asSymbol
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1858
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1859
"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1860
MethodFinderWindow new extractClassAndSelectorFrom: '*SmallInteger +'
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1861
MethodFinderWindow new extractClassAndSelectorFrom: 'String ,'       
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1862
MethodFinderWindow new extractClassAndSelectorFrom: 'Number detentBy:atMultiplesOf:snap:' 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1863
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1864
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1865
"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1866
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1867
    "Modified: / 27-04-2012 / 15:05:53 / cg"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1868
!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1869
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1870
isExpression:aString 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1871
    "Return true or false depending on if the subString includes certain characters"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1872
    
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1873
    "/ cg: this is naive - why not ask the parser, if it is a literal?
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1874
    (aString includesSubString:': ') ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1875
        ^ true
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1876
    ].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1877
    (aString includes:$+) ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1878
        ^ true
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1879
    ].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1880
    (aString includes:$-) ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1881
        ^ true
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1882
    ].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1883
    (aString includes:$*) ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1884
        ^ true
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1885
    ].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1886
    (aString includes:$/) ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1887
        ^ true
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1888
    ].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1889
    (aString includes:$>) ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1890
        ^ true
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1891
    ].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1892
    (aString includes:$<) ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1893
        ^ true
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1894
    ].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1895
    (aString includesSubString:' new') ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1896
        ^ true
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1897
    ].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1898
    (aString includes:$[) 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1899
        & (aString includes:$]) 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1900
        & (aString includes:$.) ifTrue:[ ^ false ].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1901
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1902
    (aString includes:$.) ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1903
        ^ true
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1904
    ].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1905
    ^ false
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1906
!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1907
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1908
receiverEditorContents
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1909
    "Return a cleaned up version of receiver taken from the receiverEditor
3322
7fa5dfa1832f #OTHER by mawalch
mawalch
parents: 3315
diff changeset
  1910
     as an association. The association has aCleanedReceiverString as a key and the
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1911
     compiledReceiver as value."
3322
7fa5dfa1832f #OTHER by mawalch
mawalch
parents: 3315
diff changeset
  1912
7fa5dfa1832f #OTHER by mawalch
mawalch
parents: 3315
diff changeset
  1913
    |aCleanedReceiverString compiledReceiver|
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1914
3322
7fa5dfa1832f #OTHER by mawalch
mawalch
parents: 3315
diff changeset
  1915
    aCleanedReceiverString := self cleanInputs:(receiverEditor contents).
3742
e62cdf622315 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 3741
diff changeset
  1916
    "/ allow C-style integers
e62cdf622315 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 3741
diff changeset
  1917
    (aCleanedReceiverString startsWith:'0b') ifTrue:[
e62cdf622315 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 3741
diff changeset
  1918
        aCleanedReceiverString := '2r',(aCleanedReceiverString withoutPrefix:'0b')
e62cdf622315 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 3741
diff changeset
  1919
    ] ifFalse:[
e62cdf622315 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 3741
diff changeset
  1920
        (aCleanedReceiverString startsWith:'0x') ifTrue:[
e62cdf622315 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 3741
diff changeset
  1921
            aCleanedReceiverString := '16r',(aCleanedReceiverString withoutPrefix:'0x')
e62cdf622315 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 3741
diff changeset
  1922
        ] ifFalse:[
e62cdf622315 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 3741
diff changeset
  1923
            (aCleanedReceiverString startsWith:'0o') ifTrue:[
e62cdf622315 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 3741
diff changeset
  1924
                aCleanedReceiverString := '8r',(aCleanedReceiverString withoutPrefix:'0o')
e62cdf622315 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 3741
diff changeset
  1925
            ].
e62cdf622315 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 3741
diff changeset
  1926
        ].
e62cdf622315 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 3741
diff changeset
  1927
    ].
3322
7fa5dfa1832f #OTHER by mawalch
mawalch
parents: 3315
diff changeset
  1928
    compiledReceiver := Compiler evaluate:aCleanedReceiverString.
7fa5dfa1832f #OTHER by mawalch
mawalch
parents: 3315
diff changeset
  1929
    ((self isExpression:aCleanedReceiverString) or:[ compiledReceiver isNil ]) ifTrue:[
7fa5dfa1832f #OTHER by mawalch
mawalch
parents: 3315
diff changeset
  1930
        aCleanedReceiverString := compiledReceiver printString
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1931
    ].
3322
7fa5dfa1832f #OTHER by mawalch
mawalch
parents: 3315
diff changeset
  1932
    ^ aCleanedReceiverString -> compiledReceiver.
3292
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1933
!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1934
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1935
waitForBackgroundSearchFinished
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1936
    | p |
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1937
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1938
    (p := searchProcess) isNil ifTrue:[^ self].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1939
    p isDead ifTrue:[^ self].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1940
    p waitUntilTerminated 
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1941
! !
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1942
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1943
!MethodFinderWindow methodsFor:'user actions'!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1944
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1945
selectedClassOfResultHolderChanged
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1946
    |sel classAndSelector mthd|
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1947
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1948
    sel := self selectedClassOfResultHolder value.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1949
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1950
    classAndSelector := self extractClassAndSelectorFrom:sel.
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1951
    classAndSelector isNil ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1952
        ^ self
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1953
    ].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1954
    mthd := classAndSelector key >> classAndSelector value.   
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1955
    mthd notNil ifTrue:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1956
        self withWaitCursorDo:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1957
            self codeHolder value:mthd source
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1958
        ]
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1959
    ] ifFalse:[
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1960
        self codeHolder value:nil
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1961
    ].
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1962
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1963
    "Created: / 13.11.2001 / 12:43:43 / cg"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1964
    "Modified: / 13.11.2001 / 12:48:56 / cg"
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1965
!
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1966
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1967
selectorPatternChanged
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1968
    self searchPatternMatchesInBackground
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1969
f29412454cd5 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3290
diff changeset
  1970
    "Created: / 01-06-2012 / 13:18:16 / cg"
1532
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1971
! !
318c295490c1 GUI enhanced
Claus Gittinger <cg@exept.de>
parents: 1531
diff changeset
  1972
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1973
!MethodFinderWindow class methodsFor:'documentation'!
f67b97bc683a initial checkin
james
parents:
diff changeset
  1974
f67b97bc683a initial checkin
james
parents:
diff changeset
  1975
version
f67b97bc683a initial checkin
james
parents:
diff changeset
  1976
    ^ '$Header$'
2730
abcb0402d5ba changed: #clear
Claus Gittinger <cg@exept.de>
parents: 2459
diff changeset
  1977
!
abcb0402d5ba changed: #clear
Claus Gittinger <cg@exept.de>
parents: 2459
diff changeset
  1978
abcb0402d5ba changed: #clear
Claus Gittinger <cg@exept.de>
parents: 2459
diff changeset
  1979
version_CVS
abcb0402d5ba changed: #clear
Claus Gittinger <cg@exept.de>
parents: 2459
diff changeset
  1980
    ^ '$Header$'
1522
f67b97bc683a initial checkin
james
parents:
diff changeset
  1981
! !
3003
a09b88434b56 refactored
Claus Gittinger <cg@exept.de>
parents: 2927
diff changeset
  1982