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