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