SystemBrowser.st
author Claus Gittinger <cg@exept.de>
Tue, 20 Oct 2009 09:46:39 +0200
changeset 9002 885404958f53
parent 8894 73a8f5f943aa
child 9007 7e05080796d6
permissions -rw-r--r--
code cleanup
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     1
"
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     2
 COPYRIGHT (c) 1989 by Claus Gittinger
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
     3
              All Rights Reserved
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     4
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     5
 This software is furnished under a license and may be used
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    10
 hereby transferred.
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    11
"
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
    12
"{ Package: 'stx:libtool' }"
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
    13
85
d9713a3ca092 *** empty log message ***
claus
parents: 77
diff changeset
    14
ApplicationModel subclass:#SystemBrowser
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    15
	instanceVariableNames:''
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    16
	classVariableNames:'CheckForInstancesWhenRemovingClasses ClassHistory
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    17
		EmphasisForDifferentPackage EmphasisForModifiedBuffer
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    18
		EmphasisForObsoleteCode EmphasisForReadVariable
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    19
		EmphasisForWrittenVariable EmphasisForChangedCode'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    20
	poolDictionaries:''
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    21
	category:'Interface-Browsers'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    22
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    23
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    24
Object subclass:#BrowserHistoryEntry
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    25
	instanceVariableNames:'className meta selector'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    26
	classVariableNames:''
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    27
	poolDictionaries:''
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    28
	privateIn:SystemBrowser
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    29
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    30
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
    31
!SystemBrowser class methodsFor:'documentation'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    32
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    33
copyright
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    34
"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    35
 COPYRIGHT (c) 1989 by Claus Gittinger
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
    36
              All Rights Reserved
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    37
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    38
 This software is furnished under a license and may be used
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    39
 only in accordance with the terms of that license and with the
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    40
 inclusion of the above copyright notice.   This software may not
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    41
 be provided or otherwise made available to, or used by, any
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    42
 other person.  No title to or ownership of the software is
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    43
 hereby transferred.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    44
"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    45
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    46
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    47
documentation
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    48
"
8893
27e01498c25b changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 8877
diff changeset
    49
    Notice: SystemBrowser has been completely rewritten to be an instance
8894
73a8f5f943aa changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 8893
diff changeset
    50
    of ApplicationModel. This rewritten version is found under NewSystemBrowser.
8893
27e01498c25b changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 8877
diff changeset
    51
    Because the class protocol here was used by many others, it is left here
27e01498c25b changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 8877
diff changeset
    52
    as an instance-less functionality provider only.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    53
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    54
    written winter 89 by claus.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    55
508
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    56
    [author:]
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    57
        Claus Gittinger
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    58
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    59
"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    60
! !
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    61
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
    62
!SystemBrowser class methodsFor:'initialization'!
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    63
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    64
initialize
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    65
    "Browser configuration;
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    66
     (values can be changed from your private startup file)"
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
    67
254
8258536e5bcf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 215
diff changeset
    68
"/    self classResources.
85
d9713a3ca092 *** empty log message ***
claus
parents: 77
diff changeset
    69
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    70
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    71
     setting this to false, the removeClass function will remove
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    72
     classes WITHOUT checking for instances. Otherwise,
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    73
     it will check and let you confirm in case there are instances.
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    74
     Checking for instances may be a bit time consuming, though.
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    75
     The default is true - therefore, it will check
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    76
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    77
    CheckForInstancesWhenRemovingClasses := true
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    78
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    79
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    80
     CheckForInstancesWhenRemovingClasses := true
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    81
     CheckForInstancesWhenRemovingClasses := false
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    82
85
d9713a3ca092 *** empty log message ***
claus
parents: 77
diff changeset
    83
     SystemBrowser initialize
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    84
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    85
! !
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    86
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
    87
!SystemBrowser class methodsFor:'instance creation'!
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
    88
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    89
open
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    90
    "launch a standard browser"
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    91
2631
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
    92
    self == SystemBrowser ifFalse:[
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
    93
        ^ super open
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
    94
    ].
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
    95
105
claus
parents: 100
diff changeset
    96
    ^ self openOnDevice:(Screen current) 
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    97
93
claus
parents: 90
diff changeset
    98
    "
claus
parents: 90
diff changeset
    99
     SystemBrowser open
claus
parents: 90
diff changeset
   100
    "
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   101
!
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   102
523
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   103
openInClass:aClass
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   104
    "launch a standard browser which immediately switches
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   105
     to aClass"
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   106
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   107
    ^ self openInClass:aClass selector:nil
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   108
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   109
    "
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   110
     SystemBrowser openInClass:Object
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   111
    "
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   112
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   113
    "Created: 30.4.1996 / 14:43:45 / cg"
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   114
!
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   115
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   116
openInClass:aClass selector:aSelector
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   117
    "launch a standard browser which immediately switches
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   118
     to aClass>>aSelector."
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   119
3626
abf84bdbfdb2 Remove unused method vars
Stefan Vogel <sv@exept.de>
parents: 3621
diff changeset
   120
    |brwsr classesName|
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   121
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   122
    brwsr := self openOnDevice:(Screen current).
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   123
    brwsr waitUntilVisible.
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   124
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   125
    aClass notNil ifTrue:[
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   126
"/        cls := aClass.
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   127
"/        cls isMeta ifTrue:[
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   128
"/            cls := aClass soleInstance
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   129
"/        ].
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   130
        aClass isMeta ifTrue:[
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   131
            brwsr instanceProtocol:false
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   132
        ].
1931
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   133
        aClass isJavaClass ifTrue:[
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   134
            classesName := aClass fullName. 
1931
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   135
        ] ifFalse:[
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   136
            classesName := aClass name. 
1931
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   137
        ].
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   138
        brwsr switchToClassNamed:classesName.
1681
b209bdfbf762 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1620
diff changeset
   139
        brwsr classSelectionChanged.
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   140
        aSelector notNil ifTrue:[
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   141
            brwsr switchToMethodNamed:aSelector.
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   142
        ]
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   143
    ].
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   144
    ^ brwsr
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   145
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   146
    "
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   147
     SystemBrowser openInClass:Object selector:#at:put:
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   148
     SystemBrowser openInClass:Object selector:nil
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   149
     SystemBrowser openInClass:nil selector:nil
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   150
    "
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   151
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   152
    "Created: / 22.11.1995 / 21:04:50 / cg"
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   153
    "Modified: / 5.11.2001 / 16:51:02 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   154
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   155
3588
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   156
openOn:anEnvironment
4921
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   157
    ^ self
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   158
        openOn:anEnvironment
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   159
        label:(self classResources string:'System Browser')
3588
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   160
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   161
    "
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   162
     SystemBrowser openOn:Smalltalk
3589
f38e59e3ab76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3588
diff changeset
   163
     SystemBrowser openOn:Demos
3588
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   164
    "
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   165
!
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   166
4921
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   167
openOn:aClassEnvironment label:title
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   168
    ^ self
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   169
        openOn:aClassEnvironment 
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   170
        label:title 
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   171
        onDevice:(Screen current)
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   172
!
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   173
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   174
openOn:aClassEnvironment label:title onDevice:aDisplayDevice
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   175
    |browser|
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   176
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   177
    browser := self 
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   178
                newWithLabel:title
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   179
                setupBlock:[:browser | browser environment:aClassEnvironment.
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   180
                                       browser setupForAll]
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   181
                onDevice:aDisplayDevice.
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   182
    ^ browser
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   183
!
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   184
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   185
openOnDevice:aDisplay
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   186
    "launch a standard browser on another display."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   187
2631
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   188
    self == SystemBrowser ifFalse:[
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   189
        ^ super openOnDevice:aDisplay
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   190
    ].
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   191
3519
0fef57de776a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3476
diff changeset
   192
    ^ self 
4921
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   193
        openOn:Smalltalk
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   194
        label:(self classResources string:'System Browser')
3519
0fef57de776a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3476
diff changeset
   195
        onDevice:aDisplay
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   196
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   197
    "|d|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   198
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   199
     d := XWorkstation new initializeFor:'porty:0'.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   200
     d startDispatch.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   201
     SystemBrowser openOnDevice:d
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   202
    "
2818
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   203
!
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   204
3573
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   205
openOnRemoteImageOnHost:aHostName port:portOrNil
4921
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   206
    |environment|
3573
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   207
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   208
    environment := RemoteImage onHost:aHostName port:portOrNil.
4921
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   209
    ^ self
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   210
        openOn:environment 
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   211
        label:(self classResources string:'RemoteImage Browser - %1' with:aHostName)
3573
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   212
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   213
    "
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   214
     SystemBrowser openOnRemoteImageOnHost:'funkfix' port:nil
7998
0c63e8647d1f comment
Claus Gittinger <cg@exept.de>
parents: 7992
diff changeset
   215
     SystemBrowser openOnRemoteImageOnHost:'192.168.8.1' port:nil
3573
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   216
    "
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   217
!
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   218
2818
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   219
openOnSnapShotImage:anImageFileName
4921
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   220
    |environment|
2818
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   221
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   222
    environment := SnapShotImage for:anImageFileName.
4921
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   223
    ^ self
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   224
        openOn:environment 
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   225
        label:(self classResources string:'Image Browser - %1' with:anImageFileName asFilename baseName)
2818
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   226
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   227
    "
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
   228
     SystemBrowser openOnSnapShotImage:('/tmp/stmeas.img')
2824
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
   229
    "
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
   230
! !
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   231
4909
e6b77dc6942e category
Claus Gittinger <cg@exept.de>
parents: 4860
diff changeset
   232
!SystemBrowser class methodsFor:'Compatibility-ST80'!
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   233
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   234
newOnClass:aClass
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   235
    ^ self browseClass:aClass
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   236
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   237
    "Created: / 27.10.1997 / 20:10:39 / cg"
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   238
! !
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   239
4909
e6b77dc6942e category
Claus Gittinger <cg@exept.de>
parents: 4860
diff changeset
   240
!SystemBrowser class methodsFor:'accessing-history'!
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   241
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   242
addToHistory:aClass selector:aSelectorOrNil
3679
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   243
    |newEntry oldEntry classHistory|
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   244
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   245
    (newEntry := self historyEntryForClass:aClass selector:aSelectorOrNil) isNil ifTrue:[^ self].
3679
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   246
    classHistory := self classHistory.
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   247
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   248
    oldEntry := classHistory detect:[:entry | entry className = newEntry className] ifNone:nil.
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   249
    oldEntry notNil ifTrue:[
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   250
        classHistory removeIdentical:oldEntry.
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   251
    ].
3679
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   252
    classHistory addFirst:newEntry.
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   253
    classHistory size > self visitedHistoryMaxSize ifTrue:[
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   254
        classHistory removeLast
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   255
    ].
7524
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   256
    SystemBrowser changed:#visitedClassHistory with:classHistory.
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   257
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   258
    "Modified: / 20-11-2006 / 12:29:45 / cg"
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   259
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   260
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   261
checkClassHistory
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   262
    "checks the class history for non-existing classes"
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   263
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   264
    "/ reverse, since we might modify while enumerating
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   265
    self classHistory reverseDo:[:histEntry|
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   266
        (Smalltalk at: (histEntry className) asSymbol) isBehavior
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   267
        ifFalse:[
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   268
            self classHistory remove: histEntry
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   269
        ]
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   270
    ]
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   271
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   272
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   273
classHistory
3679
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   274
    ClassHistory isNil ifTrue:[
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   275
        ClassHistory := List new
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   276
    ].
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   277
    ^ ClassHistory 
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   278
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   279
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   280
classHistory:newCollection
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   281
    ClassHistory := newCollection
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   282
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   283
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   284
emptyClassHistory
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   285
    "removes all class history entries"
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   286
7524
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   287
    |classHistory|
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   288
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   289
    classHistory := self classHistory.
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   290
    classHistory removeAll.
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   291
    SystemBrowser changed:#visitedClassHistory with:classHistory.
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   292
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   293
    "Modified: / 20-11-2006 / 12:29:42 / cg"
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   294
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   295
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   296
historyEntryForClass:aClass selector:aSelectorOrNil
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   297
    |newEntry meta cls|
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   298
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   299
    aClass isBehavior ifFalse:[^ nil].
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   300
3151
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   301
    (meta := aClass isMeta) ifTrue:[
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   302
        cls := aClass theNonMetaclass.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   303
    ] ifFalse:[
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   304
        cls := aClass
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   305
    ].
3151
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   306
    newEntry := BrowserHistoryEntry new.
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   307
    newEntry 
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   308
        className:cls name
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   309
        meta:meta
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   310
        selector:aSelectorOrNil.
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   311
    ^ newEntry
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   312
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   313
    "Modified: / 24.2.2000 / 18:03:52 / cg"
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   314
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   315
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   316
!SystemBrowser class methodsFor:'defaults'!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   317
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   318
classHistoryMaxLevels
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   319
    ^ 3
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   320
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   321
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   322
classHistoryMaxSize
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   323
    ^ 15
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   324
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   325
3549
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   326
methodTemplate
8877
bb432153d321 changed: #methodTemplate
Claus Gittinger <cg@exept.de>
parents: 8862
diff changeset
   327
    "return a method definition template string or nil"
bb432153d321 changed: #methodTemplate
Claus Gittinger <cg@exept.de>
parents: 8862
diff changeset
   328
bb432153d321 changed: #methodTemplate
Claus Gittinger <cg@exept.de>
parents: 8862
diff changeset
   329
    ^ SmalltalkLanguage instance methodTemplate
3549
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   330
!
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   331
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   332
visitedHistoryMaxSize
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   333
    "the maximum number of remembered visited-class-history entries"
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   334
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   335
    ^ 15
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   336
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   337
4909
e6b77dc6942e category
Claus Gittinger <cg@exept.de>
parents: 4860
diff changeset
   338
!SystemBrowser class methodsFor:'defaults-presentation'!
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   339
3352
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   340
emphasisForChangedCode
4499
395d7282b2f0 emphasis stuff
Claus Gittinger <cg@exept.de>
parents: 4490
diff changeset
   341
    ^ UserPreferences current emphasisForChangedCode.
3352
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   342
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   343
    "
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   344
     EmphasisForChangedCode := #underwave
4112
ed7af6707ad7 emphasisForChangedCode
tm
parents: 3834
diff changeset
   345
     EmphasisForChangedCode := #color->Color blue
3352
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   346
     EmphasisForChangedCode := #color->Color red lightened lightened lightened
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   347
    "
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   348
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   349
    "Created: / 31.10.2001 / 10:15:33 / cg"
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   350
!
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   351
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   352
emphasisForChangedCode:anEmphasis
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   353
    EmphasisForChangedCode := anEmphasis
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   354
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   355
    "
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   356
     self emphasisForChangedCode:#underwave
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   357
     self emphasisForChangedCode:(#color->Color red lightened lightened lightened)
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   358
    "
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   359
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   360
    "Created: / 31.10.2001 / 10:15:44 / cg"
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   361
!
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   362
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   363
emphasisForDifferentPackage
4499
395d7282b2f0 emphasis stuff
Claus Gittinger <cg@exept.de>
parents: 4490
diff changeset
   364
    ^ UserPreferences current emphasisForDifferentPackage.
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   365
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   366
    "
3352
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   367
     EmphasisForDifferentPackage := nil.
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   368
     EmphasisForDifferentPackage := #underwave
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   369
     EmphasisForDifferentPackage := #color->Color red lightened lightened lightened
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   370
    "
3352
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   371
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   372
    "Modified: / 31.10.2001 / 10:47:25 / cg"
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   373
!
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   374
3241
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   375
emphasisForDifferentPackage:anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   376
    EmphasisForDifferentPackage := anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   377
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   378
    "
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   379
     self emphasisForDifferentPackage:#underwave
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   380
     self emphasisForDifferentPackage:(#color->Color red lightened lightened lightened)
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   381
    "
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   382
!
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   383
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   384
emphasisForModifiedBuffer
4499
395d7282b2f0 emphasis stuff
Claus Gittinger <cg@exept.de>
parents: 4490
diff changeset
   385
    ^ UserPreferences current emphasisForModifiedBuffer.
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   386
!
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   387
3241
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   388
emphasisForModifiedBuffer:anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   389
    EmphasisForModifiedBuffer := anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   390
!
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   391
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   392
emphasisForObsoleteCode
4499
395d7282b2f0 emphasis stuff
Claus Gittinger <cg@exept.de>
parents: 4490
diff changeset
   393
    ^ UserPreferences current emphasisForObsoleteCode.
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   394
!
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   395
3241
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   396
emphasisForObsoleteCode:anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   397
    EmphasisForObsoleteCode := anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   398
!
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   399
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   400
emphasisForReadVariable
4499
395d7282b2f0 emphasis stuff
Claus Gittinger <cg@exept.de>
parents: 4490
diff changeset
   401
    ^ UserPreferences current emphasisForReadVariable.
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   402
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   403
    "
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   404
     EmphasisForReadVariable := #underline
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   405
     EmphasisForReadVariable := Array with:#underline with:#underlineColor->Color yellow
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   406
    "
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   407
!
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   408
3241
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   409
emphasisForReadVariable:anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   410
    EmphasisForReadVariable := anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   411
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   412
    "
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   413
     self emphasisForReadVariable:#underline
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   414
     self emphasisForReadVariable:(Array with:#underline with:#underlineColor->Color yellow)
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   415
    "
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   416
!
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   417
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   418
emphasisForWrittenVariable
4499
395d7282b2f0 emphasis stuff
Claus Gittinger <cg@exept.de>
parents: 4490
diff changeset
   419
    ^ UserPreferences current emphasisForWrittenVariable.
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   420
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   421
    "
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   422
     EmphasisForWrittenVariable := #underline
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   423
     EmphasisForWrittenVariable := Array with:#underline with:#underlineColor->Color red lightened
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   424
    "
3241
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   425
!
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   426
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   427
emphasisForWrittenVariable:anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   428
    EmphasisForWrittenVariable := anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   429
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   430
    "
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   431
     self emphasisForWrittenVariable:#underline
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   432
     self emphasisForWrittenVariable:(Array with:#underline with:#underlineColor->Color red lightened)
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   433
    "
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   434
!
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   435
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   436
iconForClass:aClass
8851
287f3e03a645 changed: #iconForClass:
Claus Gittinger <cg@exept.de>
parents: 8759
diff changeset
   437
    "now ask the class for its browser symbol; thats a key/selector in the
287f3e03a645 changed: #iconForClass:
Claus Gittinger <cg@exept.de>
parents: 8759
diff changeset
   438
     ToolbarIconLibrary"
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   439
7827
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   440
    aClass withAllSuperclassesDo:[:eachCls |
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   441
        | iconSymbol |
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   442
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   443
        iconSymbol := eachCls iconInBrowserSymbol.
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   444
        iconSymbol notNil ifTrue:[
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   445
            ^ ToolbarIconLibrary perform:iconSymbol
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   446
        ].
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   447
    ].
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   448
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   449
    ^ nil
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   450
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   451
    "Created: / 17-08-2006 / 09:11:27 / cg"
7827
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   452
    "Modified: / 20-07-2007 / 09:01:43 / cg"
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   453
!
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   454
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   455
resourceIconForMethod:aMethod
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   456
    |resources|
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   457
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   458
    (resources := aMethod resources) isNil ifTrue:[^ nil].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   459
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   460
    (resources includesKey:#obsolete) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   461
        ^ self deprecatedMethodIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   462
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   463
    (resources includesKey:#canvas) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   464
        ^ self canvasIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   465
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   466
    (resources includesKey:#menu) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   467
        ^ self menuIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   468
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   469
    (resources includesKey:#image) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   470
        ^ self imageIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   471
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   472
    (resources includesKey:#fileImage) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   473
        ^ self fileImageIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   474
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   475
    (resources includesKey:#programImage) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   476
        ^ self programImageIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   477
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   478
    (resources includesKey:#help) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   479
        ^ self helpIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   480
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   481
    (resources includesKey:#programMenu) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   482
        ^ self programMenuIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   483
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   484
    (resources includesKey:#tableColumns) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   485
        ^ self tableColumnsIcon 
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   486
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   487
    (resources includesKey:#tabList) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   488
        ^ self tabListIcon 
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   489
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   490
    (resources includesKey:#hierarchicalList) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   491
        ^ self hierarchicalListIcon 
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   492
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   493
    (resources includesKey:#programImage) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   494
        ^ self programImageIcon 
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   495
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   496
    ^ nil
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   497
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   498
    "Created: / 17-08-2006 / 09:08:11 / cg"
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   499
! !
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   500
8702
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   501
!SystemBrowser class methodsFor:'dialogs'!
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   502
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   503
askForClassNameMatching:matchStringArg inEnvironment:anEnvironmentOrClassOrNil for:aBrowserOrNil
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   504
    "open a dialog to ask for a class name.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   505
     env is either a nameSpace or a class (to ask for a private class)"
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   506
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   507
    |classNames caselessMatchingNames
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   508
     substringMatchingNames caselessSubstringMatchingNames
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   509
     caselessWithoutPrefixSubstringMatchingNames
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   510
     lcMatchString subMatch lcSubMatch box className
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   511
     needSearch cls env searchBlock searchBlock2
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   512
     idx pref aMatchString allNames sortedBySpellingDistance msg resources|
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   513
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   514
    resources := self classResources.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   515
    env := anEnvironmentOrClassOrNil ? Smalltalk.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   516
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   517
    aMatchString := matchStringArg.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   518
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   519
    "/ try to limit search to a namespace (but only if nameSpace is not a matchCharacter)
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   520
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   521
    (aMatchString includesString:'::') ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   522
        "/ pref := aMatchString upTo:$:.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   523
        idx := aMatchString lastIndexOf:$:.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   524
        pref := aMatchString copyTo:idx-2.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   525
        pref includesMatchCharacters ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   526
            "/ search all in Smalltalk
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   527
        ] ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   528
            cls := Smalltalk at:pref asSymbol ifAbsent:nil.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   529
            (cls notNil and:[cls isBehavior]) ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   530
                env := cls.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   531
                aMatchString := aMatchString copyFrom:pref size + 1 + 2.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   532
            ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   533
        ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   534
    ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   535
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   536
    classNames := Set new.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   537
    caselessMatchingNames := Set new.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   538
    substringMatchingNames := Set new.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   539
    caselessSubstringMatchingNames := Set new.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   540
    caselessWithoutPrefixSubstringMatchingNames := Set new.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   541
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   542
    lcMatchString := aMatchString asLowercase.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   543
    needSearch := true.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   544
    aMatchString includesMatchCharacters ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   545
        subMatch := '*' , aMatchString , '*'.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   546
        lcSubMatch := subMatch asLowercase.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   547
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   548
        "/ if the name is already a good one, avoid the expensive search
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   549
        className := aMatchString asSymbolIfInterned.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   550
        className notNil ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   551
            env isNameSpace ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   552
                cls := env at:className ifAbsent:nil.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   553
            ] ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   554
                cls := env privateClassesAt:className.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   555
            ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   556
            (cls notNil and:[cls isBehavior]) ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   557
                needSearch := false.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   558
            ]
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   559
        ]
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   560
    ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   561
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   562
    needSearch ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   563
        searchBlock := [:aClass |
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   564
            |thisName|
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   565
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   566
            "/ use dotted names for java
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   567
            aClass isJavaClass ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   568
                thisName := aClass displayString. "/ fullName copyReplaceAll:$/ with:$.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   569
            ] ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   570
                thisName := aClass name
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   571
            ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   572
            (lcMatchString match:aClass name asLowercase) ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   573
                caselessWithoutPrefixSubstringMatchingNames add:thisName
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   574
            ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   575
            aClass nameWithoutPrefix ~= aClass name ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   576
                (lcMatchString match:aClass nameWithoutPrefix asLowercase) ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   577
                    caselessWithoutPrefixSubstringMatchingNames add:thisName
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   578
                ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   579
            ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   580
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   581
            (aMatchString match:thisName) ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   582
                classNames add:thisName
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   583
            ] ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   584
                (lcMatchString match:thisName asLowercase) ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   585
                    caselessMatchingNames add:thisName
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   586
                ] ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   587
                    subMatch notNil ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   588
                        (subMatch match:thisName) ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   589
                            substringMatchingNames add:thisName
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   590
                        ] ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   591
                            (lcSubMatch match:thisName asLowercase) ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   592
                                caselessSubstringMatchingNames add:thisName
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   593
                            ]
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   594
                        ]
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   595
                    ]
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   596
                ]
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   597
            ]
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   598
        ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   599
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   600
        (env == Smalltalk or:[env isNameSpace]) ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   601
            env allClassesDo:searchBlock
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   602
        ] ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   603
            env allPrivateClasses do:searchBlock
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   604
        ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   605
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   606
        sortedBySpellingDistance := false.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   607
        "/ if nothing matched - try caseless matches
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   608
        classNames size == 0 ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   609
            classNames := caselessMatchingNames.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   610
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   611
            "/ if nothing matched - try substring matches
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   612
            classNames size == 0 ifTrue:[
8704
f5b8ba75a158 some code cleanup
Claus Gittinger <cg@exept.de>
parents: 8702
diff changeset
   613
                aMatchString isUppercaseFirst ifTrue:[
8702
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   614
                    classNames := substringMatchingNames.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   615
                ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   616
                "/ if nothing matched - try caseless substring matches
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   617
                classNames size == 0 ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   618
                    classNames := caselessSubstringMatchingNames.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   619
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   620
                    "/ if nothing matched - try best fitting
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   621
                    classNames size == 0 ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   622
                        aMatchString includesMatchCharacters ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   623
                            allNames := SortedCollection sortBlock:[:a :b | a value > b value].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   624
                            searchBlock2 :=
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   625
                                [:aClass |
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   626
                                    |thisName dist|
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   627
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   628
                                    aClass isJavaClass ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   629
                                        thisName := aClass displayString. "/ fullName copyReplaceAll:$/ with:$.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   630
                                    ] ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   631
                                        thisName := aClass name
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   632
                                    ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   633
                                    dist := thisName asLowercase spellAgainst:lcMatchString.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   634
                                    (thisName asLowercase startsWith:lcMatchString) ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   635
                                        dist := dist + (thisName size * 10).
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   636
                                    ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   637
                                    allNames add:(thisName -> dist).
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   638
                                ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   639
                            (env == Smalltalk or:[env isNameSpace]) ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   640
                                env allClassesDo:searchBlock2
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   641
                            ] ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   642
                                env allPrivateClasses do:searchBlock2
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   643
                            ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   644
                            classNames := (allNames copyTo:(allNames size min:40)) collect:[:each | each key].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   645
                            sortedBySpellingDistance := true.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   646
                        ]
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   647
                    ]
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   648
                ]
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   649
            ]
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   650
        ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   651
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   652
        (classNames size == 0) ifTrue:[^ nil].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   653
        (classNames size == 1) ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   654
            className := classNames first
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   655
        ] ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   656
            |browseButton|
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   657
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   658
            sortedBySpellingDistance ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   659
                classNames := classNames asArray sort.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   660
            ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   661
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   662
            aMatchString includesMatchCharacters ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   663
                msg := 'Classes matching "%1"\\Select or enter name of class to switch to:'
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   664
            ] ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   665
                msg := 'Classes containing "%1"\\Select or enter name of class to switch to:'
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   666
            ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   667
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   668
            box := self listBoxTitle:(resources string:msg with:matchStringArg) withCRs
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   669
                              okText:'OK'
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   670
                                list:classNames.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   671
            caselessWithoutPrefixSubstringMatchingNames notEmpty ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   672
                box initialText:(caselessWithoutPrefixSubstringMatchingNames first).
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   673
            ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   674
            box action:[:aString | className := aString].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   675
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   676
            browseButton := Button label:(resources string:'Browse All').
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   677
            browseButton action:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   678
                            |classes title|
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   679
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   680
                            title := resources string:'Classes Matching "%1"' with:matchStringArg.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   681
                            classes := classNames collect:[:nm | Smalltalk classNamed:nm].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   682
                            aBrowserOrNil isNil ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   683
                                SystemBrowser
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   684
                                    browseClasses:classes 
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   685
                                    label:title. 
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   686
                            ] ifFalse:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   687
                                aBrowserOrNil
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   688
                                    spawnClassBrowserFor:classes 
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   689
                                    label:title 
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   690
                                    in:#newBrowser 
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   691
                                    select:false.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   692
                            ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   693
                            box hide
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   694
                         ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   695
            box addButton:browseButton before:box okButton.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   696
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   697
            box open.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   698
            (box accepted not or:[className isNil]) ifTrue:[ "/ cancel
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   699
                ^ nil
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   700
            ]
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   701
        ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   702
    ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   703
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   704
    className notNil ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   705
        "/ use slashed javaName for search.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   706
        (className includes:$.) ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   707
            className := className copyReplaceAll:$. with:$/
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   708
        ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   709
    ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   710
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   711
"/    pref notNil ifTrue:[
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   712
"/        ^ pref , '::' , className
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   713
"/    ].
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   714
    ^ className
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   715
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   716
    "Modified: / 16-10-2006 / 11:36:20 / cg"
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   717
!
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   718
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   719
listBoxTitle:title okText:okText list:aList
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   720
    "convenient method: setup a listBox & return it"
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   721
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   722
    |box resources|
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   723
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   724
    resources := self classResources.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   725
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   726
    box := ListSelectionBox
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   727
                title:(resources string:title)
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   728
                okText:(resources string:okText)
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   729
                action:nil.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   730
    box list:aList.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   731
    ^ box
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   732
! !
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
   733
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   734
!SystemBrowser class methodsFor:'image specs'!
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   735
2748
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   736
abstractMethodIcon
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   737
    <resource: #programImage>
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   738
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   739
    ^ self padLockGrayMiniIcon
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   740
!
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   741
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   742
addBreakPointIcon
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   743
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   744
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   745
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   746
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   747
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   748
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   749
    "
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   750
     self addBreakPointIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   751
     ImageEditor openOnClass:self andSelector:#addBreakPointIcon
4852
b9266dc55860 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4806
diff changeset
   752
     Icon flushCachedIcons
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   753
    "
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   754
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   755
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   756
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   757
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
   758
        constantNamed:'SystemBrowser class addBreakPointIcon'
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   759
        ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@8@C @N@@8@A@@@@@P@C @D@@@@@@@@@@@@b') ; colorMapFromArray:#[255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@O8A?0O?!!??G?<_?1??G?<_?1??C?8G?@O8@@@@@@b') ; yourself); yourself]
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   760
!
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   761
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   762
addBreakPointIcon2
6115
43cde28a3209 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6052
diff changeset
   763
    ^ XPToolbarIconLibrary addBreakPointIcon2
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   764
!
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   765
4341
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   766
autoloadedClassIcon
7827
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   767
    <resource: #programImage>
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   768
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   769
    ^ ToolbarIconLibrary autoloadedClassBrowserIcon
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   770
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   771
    "Modified: / 20-07-2007 / 09:15:37 / cg"
4341
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   772
!
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   773
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   774
canvasIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   775
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   776
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   777
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   778
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   779
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   780
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   781
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   782
     ImageEditor openOnClass:self andSelector:#canvasIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   783
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   784
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   785
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   786
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   787
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
   788
        constantNamed:'SystemBrowser class canvasIcon'
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   789
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@.;.;.;.0@@@@@@@@@@C.;/C.;/@@9&XP9&XP@NY&DNY&D@C&Y!!C&Y!!@@9&XP9&XP@NY&DNY&D@C1DQC1DQ@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   790
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   791
4143
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   792
containerClassIcon
7827
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   793
    <resource: #programImage>
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   794
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   795
    ^ ToolbarIconLibrary containerClassBrowserIcon
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   796
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   797
    "Modified: / 20-07-2007 / 09:14:54 / cg"
4143
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   798
!
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   799
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   800
defaultIcon
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   801
    "This resource specification was automatically generated
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   802
     by the ImageEditor of ST/X."
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   803
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   804
    "Do not manually edit this!! If it is corrupted,
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   805
     the ImageEditor may not be able to read the specification."
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   806
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   807
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   808
     self defaultIcon inspect
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   809
     ImageEditor openOnClass:self andSelector:#defaultIcon
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   810
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   811
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   812
    <resource: #image>
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   813
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   814
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
   815
        constantNamed:'SystemBrowser class defaultIcon'
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   816
        ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   817
@@@@@@@@@@@@@@@@@@@FY&Y&Y&X0@@@@@@@@@@YDQDQDQB@@@@@@@@@@A$QDQDQDH@@@@@@@@@@CH"H"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@
3794
Claus Gittinger <cg@exept.de>
parents: 3780
diff changeset
   818
@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@A&Y&Y&Y#@@@@@F@"H"HFDQDQDQH@@@@@@@@@@@L"H"H"
Claus Gittinger <cg@exept.de>
parents: 3780
diff changeset
   819
H @@@@@ @@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@A&Y&Y&Y#@@@@@F@"H"HFUUUUUUH@@@@@@@@@@@L"H"H"H @@@@@@
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   820
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@@B@B@ @@H@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   821
@@@@@@@@@@@@@@@@@@@@@@@@H@@@@@@@@@H@@ @@@@Hb') ; colorMapFromArray:#[0 0 0 0 255 0 127 127 127 170 170 170 255 0 0 255 255 0 255 255 255]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
3794
Claus Gittinger <cg@exept.de>
parents: 3780
diff changeset
   822
??0@@O?<@@C??@@@??0@@O?<@@C??@@@@ @@@@H@@@@B@@@@@ O?8@\C?>@G??? A0O?8@HC?>@B@@@@@ O?8@\C?>@G??? A0O?8@@C?>@@@@@@9O\7\IRT
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   823
QDBD%DQ@!!OH''HHRQEABT$QPP99]7\@@a') ; yourself); yourself]
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   824
!
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   825
5761
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   826
deprecatedMethodIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   827
    ^ self doNotEnterIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   828
!
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   829
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   830
doNotEnterIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   831
    "This resource specification was automatically generated
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   832
     by the ImageEditor of ST/X."
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   833
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   834
    "Do not manually edit this!! If it is corrupted,
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   835
     the ImageEditor may not be able to read the specification."
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   836
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   837
    "
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   838
     self doNotEnterIcon inspect
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   839
     ImageEditor openOnClass:self andSelector:#doNotEnterIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   840
     Icon flushCachedIcons
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   841
    "
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   842
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   843
    <resource: #image>
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   844
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   845
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
   846
        constantNamed:'SystemBrowser class doNotEnterIcon'
5761
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   847
        ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??C0<NA00CB@EY>P''9B@DL@08GC0<@@a') ; colorMapFromArray:#[255 0 0 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@O@A>@O<A?8G? _>A?8C?@G8@O@@@a') ; yourself); yourself]
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   848
!
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   849
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   850
emptyIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   851
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   852
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   853
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   854
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   855
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   856
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   857
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   858
     self emptyIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   859
     ImageEditor openOnClass:self andSelector:#emptyIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   860
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   861
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   862
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   863
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   864
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
   865
        constantNamed:'SystemBrowser class emptyIcon'
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   866
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   867
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   868
    "Created: / 5.11.2001 / 09:39:54 / cg"
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   869
!
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   870
4143
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   871
errorClassIcon
7827
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   872
    <resource: #programImage>
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   873
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   874
    ^ ToolbarIconLibrary errorClassBrowserIcon
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   875
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   876
    "Modified: / 20-07-2007 / 09:14:06 / cg"
4143
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   877
!
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   878
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   879
exceptionClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   880
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   881
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   882
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   883
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   884
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   885
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   886
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   887
     self exceptionClassIcon inspect
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   888
     ImageEditor openOnClass:self andSelector:#exceptionClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   889
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   890
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   891
7827
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   892
    <resource: #programImage>
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   893
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   894
    ^ ToolbarIconLibrary exceptionClassBrowserIcon
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   895
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
   896
    "Modified: / 20-07-2007 / 09:13:18 / cg"
4143
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   897
!
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   898
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   899
fileImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   900
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   901
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   902
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   903
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   904
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   905
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   906
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   907
     self fileImageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   908
     ImageEditor openOnClass:self andSelector:#fileImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   909
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   910
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   911
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   912
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   913
    ^Icon
8478
ca4c5daa3fb3 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8281
diff changeset
   914
        constantNamed:'SystemBrowser class fileImageIcon'
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   915
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@H"H"H"@@@BQBH!!D"@@@$P"HQH"@@H"H"DQH @BH"HQDRH@@"H"DQH"@@L3L3DSL0@CL3L1D3L@@3L3L3L3@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 51 153 153 51 255 255 255 153 0 255 255 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?<C?8O?0??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself]
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   916
!
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   917
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   918
greenCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   919
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   920
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   921
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   922
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   923
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   924
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   925
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   926
     self greenCheckIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   927
     ImageEditor openOnClass:self andSelector:#greenCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   928
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   929
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   930
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   931
    <resource: #image>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   932
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   933
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
   934
        constantNamed:'SystemBrowser class greenCheckIcon'
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   935
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@H @@@@@@@"@@@@@@@@H@@@@@@ @"@@@@@@H H@@@@@@@H"@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 0 127 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@C@@X@A@AL@F @N@@P@@@@@@@@a') ; yourself); yourself]
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   936
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   937
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   938
greenLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   939
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   940
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   941
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   942
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   943
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   944
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   945
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   946
     self greenLockIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   947
     ImageEditor openOnClass:self andSelector:#greenLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   948
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   949
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   950
    <resource: #programImage>
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   951
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   952
    ^ self padLockGreenMiniIcon
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   953
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   954
    "Modified: / 5.11.2001 / 09:40:12 / cg"
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   955
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   956
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   957
greenThumbUpIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   958
    "This resource specification was automatically generated
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   959
     by the ImageEditor of ST/X."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   960
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   961
    "Do not manually edit this!! If it is corrupted,
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   962
     the ImageEditor may not be able to read the specification."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   963
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   964
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   965
     self greenThumbUpIcon inspect
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   966
     ImageEditor openOnClass:self andSelector:#greenThumbUpIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   967
     Icon flushCachedIcons
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   968
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   969
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   970
    <resource: #image>
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   971
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   972
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
   973
        constantNamed:'SystemBrowser class greenThumbUpIcon'
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   974
        ifAbsentPut:[(Depth4Image new) width: 15; height: 15; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   975
@@@@@@@@@@@@A)<@@@@@@@@G( @@@@@@@@^/@@@@@@@@A9@@@@@@@@C)$@@@@@@@A)+<>]BM]0BZ(->&E''3&@I**J&DN];@@VZ*''G^DV] C%&Y8AY7,@@MQU
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   976
P]8QY6@@@MSPE''XP@@@@@CL0!!''X@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 0 64 0 77 242 77 0 128 0 0 160 32 8 215 50 50 173 50 45 210 45 0 32 0 40 247 40 77 242 118 0 64 32 22 105 22 18 141 18 13 178 13 45 210 86]; mask:((ImageMask new) width: 15; height: 15; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'G@@>@C8@O @<@G?<??;??/?>??;??O?<?? ?>@?0') ; yourself); yourself]
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   977
!
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   978
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   979
greenThumbUpSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   980
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   981
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   982
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   983
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   984
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   985
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   986
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   987
     self greenThumbUpSmallIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   988
     ImageEditor openOnClass:self andSelector:#greenThumbUpSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   989
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   990
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   991
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   992
    <resource: #image>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   993
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   994
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
   995
        constantNamed:'SystemBrowser class greenThumbUpSmallIcon'
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   996
        ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@P@@@@D@@@@A@@L@@P@B@@U*@@@UZ@@@UV @@EV @@@@@@B@@@@B@b') ; colorMapFromArray:#[0 0 0 0 255 0 0 127 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C@@N@@8@C @_8A?0O?@?8C?@O8@@@@@a') ; yourself); yourself]
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   997
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   998
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   999
greyCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1000
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1001
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1002
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1003
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1004
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1005
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1006
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1007
     self greyCheckIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1008
     ImageEditor openOnClass:self andSelector:#greyCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1009
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1010
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1011
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1012
    <resource: #image>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1013
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1014
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
  1015
        constantNamed:'SystemBrowser class greyCheckIcon'
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1016
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@H @@@@@@@"@@@@@@@@H@@@@@@ @"@@@@@@H H@@@@@@@H"@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@C@@X@A@AL@F @N@@P@@@@@@@@a') ; yourself); yourself]
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1017
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1018
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1019
greyThumbUpIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1020
    "This resource specification was automatically generated
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1021
     by the ImageEditor of ST/X."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1022
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1023
    "Do not manually edit this!! If it is corrupted,
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1024
     the ImageEditor may not be able to read the specification."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1025
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1026
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1027
     self greyThumbUpIcon inspect
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1028
     ImageEditor openOnClass:self andSelector:#greyThumbUpIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1029
     Icon flushCachedIcons
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1030
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1031
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1032
    <resource: #image>
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1033
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1034
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
  1035
        constantNamed:'SystemBrowser class greyThumbUpIcon'
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1036
        ifAbsentPut:[(Depth4Image new) width: 15; height: 15; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1037
@@@@@@@@@@ @@4\@@@@@@@@GE@@@@@@@@@\W@@@@@@@@A4@@@@@@@@@4P@@@@@@H@4E2]FAV]0AAEF\SH7X3@DDQPSHC]2@@]ADWI#H#\0@7]7LBM7H@@FY7
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1038
YVL"M3@@@FY T7L @@@@@BH T7L@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 224 224 224 64 64 64 128 128 128 192 192 192 32 32 32 96 96 96 160 160 160]; mask:((ImageMask new) width: 15; height: 15; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'G@@>@C8@O @<@G?<??;??/?>??;??O?<?? ?>@?0') ; yourself); yourself]
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1039
!
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1040
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1041
helpIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1042
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1043
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1044
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1045
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1046
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1047
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1048
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1049
     self helpIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1050
     ImageEditor openOnClass:self andSelector:#helpIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1051
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1052
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1053
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1054
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1055
    ^Icon
8478
ca4c5daa3fb3 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8281
diff changeset
  1056
        constantNamed:'SystemBrowser class helpIcon'
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1057
        ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@A?<G#0]7A?\G;0__A?<G72_?@@@@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1058
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1059
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1060
hierarchicalListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1061
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1062
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1063
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1064
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1065
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1066
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1067
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1068
     ImageEditor openOnClass:self andSelector:#hierarchicalListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1069
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1070
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1071
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1072
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1073
    ^Icon
8478
ca4c5daa3fb3 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8281
diff changeset
  1074
        constantNamed:'SystemBrowser class hierarchicalListIcon'
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1075
        ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@NAUUU0@R??8@GO?>@A0@C @\??88G@@N@A3?? @^@@8@N***@@@@@C b') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1076
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1077
5997
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
  1078
ignoredMethodIcon
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
  1079
    <resource: #programImage>
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
  1080
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
  1081
    ^ self padLockBlackMiniIcon
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
  1082
!
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
  1083
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1084
imageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1085
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1086
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1087
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1088
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1089
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1090
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1091
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1092
     self imageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1093
     ImageEditor openOnClass:self andSelector:#imageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1094
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1095
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1096
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1097
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1098
    ^Icon
8478
ca4c5daa3fb3 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8281
diff changeset
  1099
        constantNamed:'SystemBrowser class imageIcon'
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1100
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@H"H"H"H @BQBH!!D"H@@$P"HQH"@@H"H"DQH @BH"HQDRH@@"H"DQH"@@L3L3DSL0@CL3L1D3L@@3L3L3L3@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 51 153 153 51 255 255 255 153 0 255 255 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1101
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1102
7992
425aa862d872 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7968
diff changeset
  1103
instrumentationIcon
425aa862d872 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7968
diff changeset
  1104
    <resource: #programImage>
425aa862d872 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7968
diff changeset
  1105
425aa862d872 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7968
diff changeset
  1106
    ^ ToolbarIconLibrary pipette16x16Icon
425aa862d872 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7968
diff changeset
  1107
!
425aa862d872 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7968
diff changeset
  1108
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1109
medium_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1110
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1111
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1112
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1113
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1114
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1115
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1116
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1117
     self medium_methodEmptyInheritedIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1118
     ImageEditor openOnClass:self andSelector:#medium_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1119
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1120
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1121
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1122
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1123
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
  1124
        constantNamed:'SystemBrowser class medium_methodEmptyInheritedIcon'
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1125
        ifAbsentPut:[(Depth4Image new) width: 9; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0]; mask:((Depth1Image new) width: 9; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1126
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1127
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1128
medium_methodInheritedFromAboveAndRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1129
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1130
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1131
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1132
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1133
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1134
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1135
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1136
     self medium_methodInheritedFromAboveAndRedefinedBelowIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1137
     ImageEditor openOnClass:self andSelector:#medium_methodInheritedFromAboveAndRedefinedBelowIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1138
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1139
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1140
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1141
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1142
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1143
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
  1144
        constantNamed:'SystemBrowser class medium_methodInheritedFromAboveAndRedefinedBelowIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1145
        ifAbsentPut:[(Depth2Image new) width: 9; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@B()@B(@A@ @A@ @A@ (EP@HEP@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 127 255 127 127]; mask:((Depth1Image new) width: 9; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@/ B>@K8A7@G\@]0C:@O(@> @@@@@a') ; yourself); yourself]
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1146
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1147
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1148
medium_methodInheritedFromAboveIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1149
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1150
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1151
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1152
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1153
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1154
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1155
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1156
     self medium_methodInheritedFromAboveIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1157
     ImageEditor openOnClass:self andSelector:#medium_methodInheritedFromAboveIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1158
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1159
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1160
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1161
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1162
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1163
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
  1164
        constantNamed:'SystemBrowser class medium_methodInheritedFromAboveIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1165
        ifAbsentPut:[(Depth1Image new) width: 9; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@ @B@@HA=0LG@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 255 127]; mask:((Depth1Image new) width: 9; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@ @B@@H@A0@G@@\@C8@O @>@@@@@@a') ; yourself); yourself]
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1166
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1167
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1168
medium_methodRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1169
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1170
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1171
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1172
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1173
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1174
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1175
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1176
     self medium_methodRedefinedBelowIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1177
     ImageEditor openOnClass:self andSelector:#medium_methodRedefinedBelowIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1178
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1179
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1180
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1181
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1182
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1183
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
  1184
        constantNamed:'SystemBrowser class medium_methodRedefinedBelowIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1185
        ifAbsentPut:[(Depth1Image new) width: 9; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ED@L@\@A0@B@@H@@"8@P@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 127 127]; mask:((Depth1Image new) width: 9; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@O @>@C8@G@@\@A0@B@@H@@ @@@@@a') ; yourself); yourself]
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1186
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1187
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1188
menuIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1189
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1190
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1191
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1192
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1193
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1194
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1195
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1196
     self menuIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1197
     ImageEditor openOnClass:self andSelector:#menuIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1198
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1199
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1200
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1201
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1202
    ^Icon
8478
ca4c5daa3fb3 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8281
diff changeset
  1203
        constantNamed:'SystemBrowser class menuIcon'
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1204
        ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@B***P@%UUT@@@@@@B***P@%UUT@@@@@@B***P@%UUT@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 170 170 170 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8?? @@@@a') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1205
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1206
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1207
methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1208
    ^ self small_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1209
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1210
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1211
methodInheritedFromAboveAndRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1212
    ^ self small_methodInheritedFromAboveAndRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1213
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1214
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1215
methodInheritedFromAboveIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1216
    ^ self small_methodInheritedFromAboveIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1217
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1218
5761
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1219
methodIsSubclassResponsibilityAndRedefinedBelowIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1220
    "This resource specification was automatically generated
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1221
     by the ImageEditor of ST/X."
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1222
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1223
    "Do not manually edit this!! If it is corrupted,
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1224
     the ImageEditor may not be able to read the specification."
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1225
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1226
    "
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1227
     self methodIsSubclassResponsibilityAndRedefinedBelowIcon inspect
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1228
     ImageEditor openOnClass:self andSelector:#methodIsSubclassResponsibilityAndRedefinedBelowIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1229
     Icon flushCachedIcons
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1230
    "
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1231
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1232
    <resource: #image>
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1233
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1234
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
  1235
        constantNamed:'SystemBrowser class methodIsSubclassResponsibilityAndRedefinedBelowIcon'
5761
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1236
        ifAbsentPut:[(Depth2Image new) width: 5; height: 11; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' @D@@H@@@@@B@@@@@@4UBHR@A@@"@@@a') ; colorMapFromArray:#[0 0 0 255 127 127 127 127 127]; mask:((Depth1Image new) width: 5; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'<HC DO@@>O#8\G@b') ; yourself); yourself]
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1237
!
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1238
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1239
methodIsSubclassResponsibilityIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1240
    "This resource specification was automatically generated
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1241
     by the ImageEditor of ST/X."
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1242
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1243
    "Do not manually edit this!! If it is corrupted,
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1244
     the ImageEditor may not be able to read the specification."
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1245
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1246
    "
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1247
     self methodIsSubclassResponsibilityIcon inspect
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1248
     ImageEditor openOnClass:self andSelector:#methodIsSubclassResponsibilityIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1249
     Icon flushCachedIcons
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1250
    "
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1251
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1252
    <resource: #image>
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1253
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1254
    ^Icon
7968
1acda3f58974 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7915
diff changeset
  1255
        constantNamed:'SystemBrowser class methodIsSubclassResponsibilityIcon'
5761
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1256
        ifAbsentPut:[(Depth2Image new) width: 5; height: 11; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' @D@@H@@@@@B@@@@@ 4@B@H@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 127 127 127 127 127]; mask:((Depth1Image new) width: 5; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'<HC DO@@<IC0(I@b') ; yourself); yourself]
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1257
!
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1258
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1259
methodRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1260
    ^ self small_methodRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1261
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1262
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1263
nameSpaceIcon
7827
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1264
    <resource: #programImage>
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1265
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1266
    ^ ToolbarIconLibrary nameSpaceBrowserIcon
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1267
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1268
    "Modified: / 20-07-2007 / 09:12:26 / cg"
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1269
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1270
4308
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1271
notificationClassIcon
7827
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1272
    <resource: #programImage>
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1273
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1274
    ^ ToolbarIconLibrary notificationClassBrowserIcon
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1275
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1276
    "Modified: / 20-07-2007 / 09:11:21 / cg"
4308
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1277
!
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1278
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1279
packageIcon
8853
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1280
    <resource: #programImage>
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1281
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1282
    ^ ToolbarIconLibrary smallYellowPackageIcon
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1283
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1284
6954
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1285
packageIconGraySmall
8853
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1286
    <resource: #programImage>
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1287
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1288
    ^ ToolbarIconLibrary smallGrayPackageIcon
6954
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1289
!
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1290
6925
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1291
packageIconGreenSmall
8853
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1292
    <resource: #programImage>
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1293
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1294
    ^ ToolbarIconLibrary smallGreenPackageIcon
6925
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1295
!
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1296
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1297
packageIconOrangeSmall
8853
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1298
    <resource: #programImage>
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1299
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1300
    ^ ToolbarIconLibrary smallOrangePackageIcon
6925
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1301
!
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1302
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1303
packageIconSmall
8853
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1304
    <resource: #programImage>
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1305
a2a14e8871c0 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 8851
diff changeset
  1306
    ^ ToolbarIconLibrary smallYellowPackageIcon
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1307
!
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1308
5997
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
  1309
padLockBlackMiniIcon
6333
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1310
    <resource: #programImage>
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1311
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1312
    ^ XPToolbarIconLibrary padLockBlackMiniIcon
5997
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
  1313
!
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
  1314
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1315
padLockBlueMiniIcon
6333
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1316
    <resource: #programImage>
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1317
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1318
    ^ XPToolbarIconLibrary padLockBlueMiniIcon
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1319
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1320
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1321
padLockGrayMiniIcon
6333
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1322
    <resource: #programImage>
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1323
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1324
    ^ GenericToolbarIconLibrary padLockGrayMiniIcon
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1325
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1326
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1327
padLockGreenMiniIcon
6333
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1328
    <resource: #programImage>
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1329
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1330
    ^ GenericToolbarIconLibrary padLockGreenMiniIcon
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1331
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1332
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1333
padLockRedMiniIcon
6333
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1334
    <resource: #programImage>
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1335
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1336
    ^ GenericToolbarIconLibrary padLockRedMiniIcon
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1337
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1338
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1339
privateMethodIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1340
    <resource: #programImage>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1341
2748
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
  1342
    ^ self padLockRedMiniIcon
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1343
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1344
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1345
programImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1346
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1347
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1348
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1349
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1350
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1351
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1352
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1353
     self programImageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1354
     ImageEditor openOnClass:self andSelector:#programImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1355
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1356
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1357
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1358
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1359
    ^Icon
8478
ca4c5daa3fb3 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8281
diff changeset
  1360
        constantNamed:#'SystemBrowser class programImageIcon'
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1361
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@H"H"H"H @BQBH!!D"H@@$P"HQH"@@H"H"DQH @BH"HQDRH@@"H"DQH"@@L3L3DSL0@CL3L1D3L@@3L3L3L3@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 25 77 77 51 255 255 128 128 0 128 77 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself]
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1362
!
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1363
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1364
programMenuIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1365
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1366
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1367
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1368
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1369
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1370
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1371
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1372
     self programMenuIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1373
     ImageEditor openOnClass:self andSelector:#programMenuIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1374
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1375
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1376
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1377
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1378
    ^Icon
8478
ca4c5daa3fb3 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8281
diff changeset
  1379
        constantNamed:#'SystemBrowser class programMenuIcon'
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1380
        ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@A?<G?0@@A?<G?0@@A?<G?3@@@@@@@a') ; colorMapFromArray:#[0 0 0 170 170 170]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8?? @@@@a') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1381
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1382
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1383
protectedMethodIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1384
    <resource: #programImage>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1385
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1386
    ^ self padLockGreenMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1387
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1388
4308
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1389
queryClassIcon
7827
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1390
    <resource: #programImage>
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1391
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1392
    ^ ToolbarIconLibrary queryClassBrowserIcon
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1393
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1394
    "Modified: / 20-07-2007 / 09:10:32 / cg"
4308
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1395
!
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1396
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1397
redCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1398
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1399
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1400
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1401
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1402
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1403
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1404
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1405
     self redCheckIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1406
     ImageEditor openOnClass:self andSelector:#redCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1407
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1408
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1409
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1410
    <resource: #image>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1411
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1412
    ^Icon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1413
        constantNamed:#'SystemBrowser class redCheckIcon'
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1414
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@"@@@@@@@BH@@@@ @@H @@@BH @"@@@@@BH"H @@@@@BH"@@@@@@@BH @@@@@@@B@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@A @L@!! GL@O0@^@@8@A@@@@@@a') ; yourself); yourself]
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1415
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1416
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1417
redLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1418
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1419
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1420
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1421
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1422
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1423
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1424
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1425
     self redLockIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1426
     ImageEditor openOnClass:self andSelector:#redLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1427
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1428
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1429
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1430
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1431
    ^Icon
8478
ca4c5daa3fb3 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8281
diff changeset
  1432
        constantNamed:#'SystemBrowser class redLockIcon'
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1433
        ifAbsentPut:[(Depth2Image new) width: 9; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@T@@AA@@AA@@EUP@EUP@EQP@EQP@EQP@EAP@AU@@@@@@') ; colorMapFromArray:#[0 0 0 255 0 0]; mask:((Depth1Image new) width: 9; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'F@@$@BP@_ A>@G8@_ A>@G8@O@@@@@@a') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1434
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1435
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1436
redThumbDownIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1437
    "This resource specification was automatically generated
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1438
     by the ImageEditor of ST/X."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1439
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1440
    "Do not manually edit this!! If it is corrupted,
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1441
     the ImageEditor may not be able to read the specification."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1442
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1443
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1444
     self redThumbDownIcon inspect
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1445
     ImageEditor openOnClass:self andSelector:#redThumbDownIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1446
     Icon flushCachedIcons
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1447
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1448
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1449
    <resource: #image>
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1450
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1451
    ^Icon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1452
        constantNamed:#'SystemBrowser class redThumbDownIcon'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1453
        ifAbsentPut:[(Depth4Image new) width: 15; height: 15; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1454
@@@@@@@@@@@@@L3@!!;\@@@C6<J^7(@@H=-5*<Z);\@@]UUDJ^;(@@MH3N:<Z);\@H3MC^ F;(@@#MO$7);8WB@\#'')K0#;,@@AH @@@@@@@@B2@@@@@@@@@K
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1455
NP@@@@@L@@,4@@@@@@T@A2$@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 191 20 1 255 44 33 255 131 65 255 84 65 255 88 33 160 40 0 184 67 40 32 27 0 223 99 33 64 22 0 223 52 33 128 13 0 224 56 0 112 16 31 152 35 8]; mask:((ImageMask new) width: 15; height: 15; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C?@?>O?8??3??O?>??;??/?>_?0<@C8@O @>@A0@') ; yourself); yourself]
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1456
!
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1457
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1458
redThumbDownSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1459
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1460
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1461
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1462
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1463
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1464
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1465
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1466
     self redThumbDownSmallIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1467
     ImageEditor openOnClass:self andSelector:#redThumbDownSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1468
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1469
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1470
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1471
    <resource: #image>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1472
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1473
    ^Icon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1474
        constantNamed:#'SystemBrowser class redThumbDownSmallIcon'
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  1475
        ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@B@@@@@@EV @@AUZ@@@EV C@@U*@@@A@@@@@P@@@@D@@@@A@@@@@@@@ b') ; colorMapFromArray:#[0 0 0 255 0 0 127 0 0 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@? C?@O>@?<A?0G>@N@@8@C @L@@@a') ; yourself); yourself]
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1476
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1477
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1478
removeBreakPointIcon2
6115
43cde28a3209 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6052
diff changeset
  1479
    ^ XPToolbarIconLibrary removeBreakPointIcon2
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1480
!
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1481
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1482
small_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1483
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1484
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1485
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1486
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1487
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1488
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1489
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1490
     self small_methodEmptyInheritedIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1491
     ImageEditor openOnClass:self andSelector:#small_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1492
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1493
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1494
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1495
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1496
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1497
        constantNamed:#'SystemBrowser class small_methodEmptyInheritedIcon'
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1498
        ifAbsentPut:[(Depth4Image new) width: 5; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0]; mask:((Depth1Image new) width: 5; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@b') ; yourself); yourself]
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1499
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1500
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1501
small_methodInheritedFromAboveAndRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1502
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1503
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1504
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1505
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1506
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1507
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1508
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1509
     self small_methodInheritedFromAboveAndRedefinedBelowIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1510
     ImageEditor openOnClass:self andSelector:#small_methodInheritedFromAboveAndRedefinedBelowIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1511
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1512
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1513
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1514
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1515
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1516
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1517
        constantNamed:#'SystemBrowser class small_methodInheritedFromAboveAndRedefinedBelowIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1518
        ifAbsentPut:[(Depth2Image new) width: 5; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'L1@DLLS,ES@@@@@0@@@*@L#@B@@3@@@a') ; colorMapFromArray:#[0 0 0 255 255 127 255 127 127 127 127 127]; mask:((Depth1Image new) width: 5; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'\GC8>O @>O#8\G@b') ; yourself); yourself]
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1519
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1520
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1521
small_methodInheritedFromAboveIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1522
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1523
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1524
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1525
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1526
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1527
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1528
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1529
     self small_methodInheritedFromAboveIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1530
     ImageEditor openOnClass:self andSelector:#small_methodInheritedFromAboveIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1531
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1532
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1533
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1534
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1535
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1536
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1537
        constantNamed:#'SystemBrowser class small_methodInheritedFromAboveIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1538
        ifAbsentPut:[(Depth2Image new) width: 5; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'H#HDLHR@EP@@@@@@@BD@IP@!!@B@@IP@a') ; colorMapFromArray:#[0 0 0 255 255 127 127 127 127]; mask:((Depth1Image new) width: 5; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'\GC8>O @@@@@@@@b') ; yourself); yourself]
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1539
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1540
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1541
small_methodRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1542
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1543
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1544
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1545
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1546
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1547
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1548
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1549
     self small_methodRedefinedBelowIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1550
     ImageEditor openOnClass:self andSelector:#small_methodRedefinedBelowIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1551
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1552
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1553
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1554
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1555
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1556
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1557
        constantNamed:#'SystemBrowser class small_methodRedefinedBelowIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1558
        ifAbsentPut:[(Depth2Image new) width: 5; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@D@@@@@@@@@@@@@@@4UBHR@A@@"@@@a') ; colorMapFromArray:#[0 0 0 255 127 127 127 127 127]; mask:((Depth1Image new) width: 5; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@>O#8\G@b') ; yourself); yourself]
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1559
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1560
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1561
startableClassIcon
7827
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1562
    <resource: #programImage>
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1563
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1564
    ^ ToolbarIconLibrary startableClassBrowserIcon
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1565
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1566
    "Created: / 05-11-2001 / 09:50:16 / cg"
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1567
    "Modified: / 20-07-2007 / 09:09:40 / cg"
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1568
!
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1569
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1570
startableVisualAppIcon
7827
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1571
    <resource: #programImage>
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1572
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1573
    ^ ToolbarIconLibrary visualStartableClassBrowserIcon
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1574
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1575
    "Created: / 05-11-2001 / 09:49:00 / cg"
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1576
    "Modified: / 20-07-2007 / 09:08:34 / cg"
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1577
!
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1578
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1579
stopIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1580
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1581
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1582
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1583
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1584
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1585
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1586
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1587
     self stopIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1588
     ImageEditor openOnClass:self andSelector:#stopIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1589
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1590
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1591
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1592
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1593
    ^Icon
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1594
        constantNamed:#'SystemBrowser class stopIcon'
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1595
        ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@N@@8@C @N@@P@@@@D@@8@A@@@@@@a') ; colorMapFromArray:#[255 0 0 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'G0@? G?@?>C?8O? ?>C?8G?@O8@_@@@a') ; yourself); yourself]
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1596
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1597
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1598
tabListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1599
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1600
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1601
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1602
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1603
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1604
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1605
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1606
     self tabListIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1607
     ImageEditor openOnClass:self andSelector:#tabListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1608
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1609
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1610
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1611
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1612
    ^Icon
8478
ca4c5daa3fb3 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8281
diff changeset
  1613
        constantNamed:#'SystemBrowser class tabListIcon'
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1614
        ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@D3!!QP@@8TT@@N@@J@C***P@:**$AN**)@C***P@:**$@IUUUB @@@@@b') ; colorMapFromArray:#[0 0 0 127 127 127 170 170 170 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?8C?0O?0??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1615
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1616
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1617
tableColumnsIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1618
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1619
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1620
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1621
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1622
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1623
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1624
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1625
     self tableColumnsIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1626
     ImageEditor openOnClass:self andSelector:#tableColumnsIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1627
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1628
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1629
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1630
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1631
    ^Icon
8478
ca4c5daa3fb3 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8281
diff changeset
  1632
        constantNamed:#'SystemBrowser class tableColumnsIcon'
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1633
        ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@C??? @8(($@L@@AHC"""R@0@@D@NJJI@C@@@P@8(($@IUUU@@@@@@@b') ; colorMapFromArray:#[0 0 0 127 127 127 170 170 170 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1634
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1635
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1636
testCaseClassIcon
8862
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1637
    <resource: #programImage>
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1638
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1639
    "/ only left here for backward compatibility...
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1640
    ^ ToolbarIconLibrary testCaseClassIcon
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1641
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1642
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1643
testCaseClassIconFor:cls
4167
588e05d2124d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4166
diff changeset
  1644
    <resource: #programImage>
588e05d2124d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4166
diff changeset
  1645
8862
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1646
    "/ decision moved to TestCase - see there.
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1647
    "/ only left here for backward compatibility...
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1648
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1649
    |lastResult|
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1650
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  1651
    lastResult := cls lastTestRunResultOrNil.
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1652
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1653
    lastResult == true ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1654
        ^ self testCasePassedIcon
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1655
    ].
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1656
    lastResult == false ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1657
        ^ self testCaseFailedIcon
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1658
    ].
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1659
    ^ self testCaseUnknownResultIcon
6848
27b76bc54f22 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6776
diff changeset
  1660
27b76bc54f22 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6776
diff changeset
  1661
    "Modified: / 06-08-2006 / 11:14:12 / cg"
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1662
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1663
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1664
testCaseFailedIcon
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1665
    <resource: #programImage>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1666
8862
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1667
    "/ only left here for backward compatibility...
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1668
    ^ ToolbarIconLibrary testCaseFailedIcon
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1669
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1670
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1671
testCasePassedIcon
8862
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1672
    <resource: #programImage>
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1673
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1674
    "/ only left here for backward compatibility...
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1675
    ^ ToolbarIconLibrary testCasePassedIcon
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1676
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1677
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1678
testCaseUnknownResultIcon
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1679
    <resource: #programImage>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1680
8862
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1681
    "/ only left here for backward compatibility...
dece7957557d comment/format in: #testCaseClassIconFor:
Claus Gittinger <cg@exept.de>
parents: 8853
diff changeset
  1682
    ^ ToolbarIconLibrary testCaseClassIcon
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1683
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1684
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1685
timeIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1686
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1687
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1688
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1689
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1690
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1691
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1692
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1693
     self timeIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1694
     ImageEditor openOnClass:self andSelector:#timeIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1695
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1696
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1697
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1698
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1699
    ^Icon
8478
ca4c5daa3fb3 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8281
diff changeset
  1700
        constantNamed:#'SystemBrowser class timeIcon'
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1701
        ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@G@A7@G\@=8C0 O>@_0A?@A0@@@@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A0@_0C? O>A?<G?0_?@?8C? G<@G@@@a') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1702
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1703
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1704
traceIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1705
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1706
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1707
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1708
    "Do not manually edit this!! If it is corrupted,
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1709
     the ImageEditor may not be able to read the specification."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1710
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1711
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1712
     self traceIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1713
     ImageEditor openOnClass:self andSelector:#traceIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1714
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1715
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1716
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1717
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1718
    ^Icon
8478
ca4c5daa3fb3 image resource method fixes (key must be name of method)
Claus Gittinger <cg@exept.de>
parents: 8281
diff changeset
  1719
        constantNamed:#'SystemBrowser class traceIcon'
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1720
        ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@>@C8@G@@\@@ @B@@@@@@@@@@@a') ; colorMapFromArray:#[255 0 0 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'_?A?<C? O>@_0A?@C8@O @\@A0@B@@@a') ; yourself); yourself]
2830
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1721
!
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1722
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1723
visualStartableClassIcon
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1724
    "This resource specification was automatically generated
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1725
     by the ImageEditor of ST/X."
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1726
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1727
    "Do not manually edit this!! If it is corrupted,
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1728
     the ImageEditor may not be able to read the specification."
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1729
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1730
    "
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1731
     self visualStartableClassIcon inspect
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1732
     ImageEditor openOnClass:self andSelector:#visualStartableClassIcon
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1733
    "
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1734
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1735
    <resource: #image>
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1736
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1737
    ^Icon
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1738
        constantNamed:#'SystemBrowser class visualStartableClassIcon'
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1739
        ifAbsentPut:[(Depth2Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'**J*NJ*"*#"*!!J(@*!!T*@J(DJ B*DR(@*!!T*NJ(*J B*O2(@*+.*@J*** @b') ; colorMapFromArray:#[0 0 0 127 127 127 255 0 0 255 255 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ @B@@\@C8@O @>@C8@H @>@A0@G@@@a') ; yourself); yourself]
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1740
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1741
    "Modified: / 5.11.2001 / 09:49:30 / cg"
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1742
!
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1743
4275
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1744
warningClassIcon
7827
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1745
    <resource: #programImage>
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1746
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1747
    ^ ToolbarIconLibrary warningClassBrowserIcon
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1748
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1749
    "Modified: / 20-07-2007 / 09:04:39 / cg"
4275
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1750
!
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1751
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1752
watchIcon
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1753
    "This resource specification was automatically generated
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1754
     by the ImageEditor of ST/X."
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1755
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1756
    "Do not manually edit this!! If it is corrupted,
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1757
     the ImageEditor may not be able to read the specification."
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1758
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1759
    "
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1760
     self watchIcon inspect
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1761
     ImageEditor openOnClass:self andSelector:#watchIcon
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1762
    "
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1763
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1764
    <resource: #image>
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1765
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1766
    ^Icon
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1767
        constantNamed:#'SystemBrowser class watchIcon'
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1768
        ifAbsentPut:[(Depth4Image new) width: 13; height: 12; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@X@@@X@@@@AE XQY @@XALCDFD@@AD0@CDV@@XAL@@1A @AD0@P@1D@XBI!!DVH A QUPQEEU@@%"EDAVHT@IX]R@%!!5@FQUH@@%U@A&H$@@P"X@') ; colorMapFromArray:#[0 0 51 0 0 60 0 51 102 51 102 153 71 102 145 128 213 221 153 153 204 153 255 255 255 255 255]; mask:((Depth1Image new) width: 13; height: 12; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'FL@]0C7 O>A?<G?0??#=>O78?_#8>GA0') ; yourself); yourself]
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1769
!
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1770
4143
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1771
windowClassIcon
7827
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1772
    <resource: #programImage>
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1773
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1774
    ^ ToolbarIconLibrary windowClassBrowserIcon
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1775
36dc2d8ec6b6 icons in ToolbarIconLibrary
Claus Gittinger <cg@exept.de>
parents: 7711
diff changeset
  1776
    "Modified: / 20-07-2007 / 09:05:57 / cg"
4143
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1777
!
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1778
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1779
windowIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1780
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1781
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1782
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1783
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1784
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1785
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1786
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1787
     self windowIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1788
     ImageEditor openOnClass:self andSelector:#windowIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1789
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1790
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1791
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1792
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1793
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1794
        constantNamed:#'SystemBrowser class windowIcon'
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1795
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@.;.;.;.0@@@@@@@@@@C.;.;.;/@@9&Y&Y&XP@NY&Y&Y&D@C&Y&Y&Y!!@@9&Y&Y&XP@NY&Y&Y&D@C1DQDQDQ@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??#?>O?8??#?>O?8??#?>O?8??#?>@@a') ; yourself); yourself]
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1796
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1797
    "Created: / 5.11.2001 / 09:39:03 / cg"
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1798
! !
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  1799
1203
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1800
!SystemBrowser class methodsFor:'interface specs'!
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1801
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1802
metaSpec
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1803
        "UIPainter new openOnClass: self andSelector: #metaSpec"
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1804
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1805
        <resource: #canvas>
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1806
        ^#(#FullSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1807
                #window: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1808
                #(#WindowSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1809
                        #label: 'Unlabeled Canvas' 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1810
                        #bounds: #(#Rectangle 27 249 325 334 ) ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1811
                #component: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1812
                #(#SpecCollection 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1813
                        #collection: #(
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1814
                                #(#RadioButtonSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1815
                                        #layout: #(#LayoutFrame 0 0 4 0 -1 0.575 20 0 ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1816
                                        #name: #instanceSwitch 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1817
                                        #model: #metaHolder 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1818
                                        #callbacksSpec: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1819
                                        #(#UIEventCallbackSubSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1820
                                                #requestValueChangeSelector: #changeRequest ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1821
                                        #label: 'instance' 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1822
                                        #select: false ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1823
                                #(#RadioButtonSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1824
                                        #layout: #(#LayoutFrame 1 0.575 4 0 -1 1 20 0 ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1825
                                        #name: #classSwitch 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1826
                                        #model: #metaHolder 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1827
                                        #callbacksSpec: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1828
                                        #(#UIEventCallbackSubSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1829
                                                #requestValueChangeSelector: #changeRequest ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1830
                                        #label: 'class' 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1831
                                        #select: true ) ) ) )
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1832
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1833
    "Created: / 30.10.1997 / 19:07:29 / cg"
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1834
!
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1835
1203
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1836
methodMoveDialogSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1837
    "this window spec was automatically generated by the ST/X UIPainter"
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1838
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1839
    "do not manually edit this - the painter/builder may not be able to
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1840
     handle the specification if its corrupted."
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1841
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1842
    "
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1843
     UIPainter new openOnClass:SystemBrowser andSelector:#methodMoveDialogSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1844
     SystemBrowser new openDialogInterface:#methodMoveDialogSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1845
    "
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1846
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1847
    <resource: #canvas>
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1848
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1849
    ^
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1850
     
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1851
       #(#FullSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1852
          #'window:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1853
           #(#WindowSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1854
              #'name:' 'uIPainterView'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1855
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1856
              #'label:' 'move method'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1857
              #'bounds:' #(#Rectangle 0 0 279 118)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1858
          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1859
          #'component:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1860
           #(#SpecCollection
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1861
              #'collection:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1862
               #(
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1863
                 #(#HorizontalPanelViewSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1864
                    #'name:' 'horizontalPanelView'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1865
                    #'layout:' #(#LayoutFrame 0 0.0 -35 1.0 0 1.0 -2 1.0)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1866
                    #'component:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1867
                     #(#SpecCollection
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1868
                        #'collection:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1869
                         #(
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1870
                           #(#ActionButtonSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1871
                              #'name:' 'actionButton2'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1872
                              #'label:' 'cancel'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1873
                              #'tabable:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1874
                              #'model:' #cancel
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1875
                              #'extent:' #(#Point 133 27)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1876
                          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1877
                           #(#ActionButtonSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1878
                              #'name:' 'actionButton1'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1879
                              #'label:' 'move'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1880
                              #'tabable:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1881
                              #'isDefault:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1882
                              #'model:' #accept
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1883
                              #'extent:' #(#Point 134 27)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1884
                          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1885
                        )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1886
                    )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1887
                    #'level:' 0
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1888
                    #'horizontalLayout:' #fitSpace
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1889
                    #'verticalLayout:' #center
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1890
                    #'horizontalSpace:' 4
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1891
                    #'verticalSpace:' 4
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1892
                )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1893
                 #(#LabelSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1894
                    #'name:' 'label'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1895
                    #'layout:' #(#LayoutFrame 2 0 2 0 -2 1.0 25 0)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1896
                    #'label:' 'move current method to which class:'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1897
                    #'style:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1898
                     #(#Font
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1899
                        'helvetica' 'medium'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1900
                        'roman' 12
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1901
                    )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1902
                    #'foregroundColor:' #(#Color 0.0 0.0 0.0)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1903
                    #'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1904
                    #'adjust:' #left
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1905
                )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1906
                 #(#ComboBoxSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1907
                    #'name:' 'comboBox1'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1908
                    #'layout:' #(#LayoutFrame 2 0 29 0 -2 1.0 51 0)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1909
                    #'tabable:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1910
                    #'model:' #className
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1911
                    #'comboList:' #classList
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1912
                )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1913
              )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1914
          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1915
      )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1916
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1917
    "Created: 25.6.1997 / 13:45:20 / cg"
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1918
    "Modified: 25.6.1997 / 13:46:44 / cg"
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1919
! !
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1920
4860
8e1a4b990512 method category rename
Claus Gittinger <cg@exept.de>
parents: 4852
diff changeset
  1921
!SystemBrowser class methodsFor:'private-helpers'!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1922
2880
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1923
askForPackageChangeFrom:oldPkg to:newPkg
3626
abf84bdbfdb2 Remove unused method vars
Stefan Vogel <sv@exept.de>
parents: 3621
diff changeset
  1924
    |answer box notAgain chk|
2880
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1925
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1926
    box := OptionBox 
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1927
                title:
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1928
('You are about to change a method from another (system-) package.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1929
The methods original packageID was ''%1''. 
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1930
If you proceed, the new method will be marked as belonging
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1931
to the ''%2'' package (and this warning will not be shown again).
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1932
If you proceed with ''keep'', the new method will be installed
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1933
but the old packageID will be preserved.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1934
Otherwise, hit ''cancel'' to leave the code unchanged.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1935
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1936
PS: if you disable this check here, it can be reenabled it in the launchers settings-compilation dialog.' 
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1937
                        bindWith:(oldPkg allBold)
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1938
                            with:(newPkg allBold))
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1939
                numberOfOptions:3.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1940
3476
685f67f7e818 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
  1941
    box buttonTitles:#('Cancel' 'Keep' 'Continue').
2880
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1942
    box defaultButtonIndex:3. 
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1943
    box action:[:n | answer := #(#cancel #keep #continue) at:n].
5833
5c2a75846afc Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 5802
diff changeset
  1944
    box label:'Method redefinition'; image:(WarningBox iconBitmap).
2880
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1945
    box yPosition:(box formLabel bottom max:box textLabel bottom).
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1946
    box addVerticalSpace:10.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1947
    chk := box addCheckBox:'Dont show this dialog again (never keep)' on:(notAgain := false asValue).
8158
f7b891e7fb75 added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents: 8139
diff changeset
  1948
    box preferredExtent:(box preferredExtent + (0 @ chk preferredHeight) + (0@10)).
2880
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1949
    box resize.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1950
    box showAtPointer.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1951
    box destroy.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1952
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1953
    (answer ~~ #cancel) ifTrue:[
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1954
        notAgain value ifTrue:[
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1955
            Class catchMethodRedefinitions:false.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1956
        ].
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1957
    ].
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1958
    ^ answer.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1959
!
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1960
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1961
showNoneFound
3244
1e41eccb08b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3241
diff changeset
  1962
    self warn:(self classResources string:'None found.').
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1963
!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1964
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1965
showNoneFound:what
1620
51341ec8360b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1573
diff changeset
  1966
    |rs|
51341ec8360b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1573
diff changeset
  1967
51341ec8360b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1573
diff changeset
  1968
    rs := self classResources.
3244
1e41eccb08b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3241
diff changeset
  1969
    self information:((rs string:what) , (rs string:'...\\... none found.')) withCRs.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1970
! !
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1971
4860
8e1a4b990512 method category rename
Claus Gittinger <cg@exept.de>
parents: 4852
diff changeset
  1972
!SystemBrowser class methodsFor:'private-instance creation'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1973
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1974
newWithLabel:aString setupBlock:aBlock
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1975
    "common helper method for all creation methods"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1976
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1977
    ^ self newWithLabel:aString setupBlock:aBlock onDevice:Screen current
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1978
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1979
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1980
newWithLabel:aString setupBlock:aBlock onDevice:aWorkstation
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1981
    "common helper method for all creation methods"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1982
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1983
    |newBrowser|
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  1984
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1985
    newBrowser := BrowserView onDevice:aWorkstation.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1986
    newBrowser title:aString.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1987
    aBlock value:newBrowser.
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  1988
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1989
    newBrowser open.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1990
    ^ newBrowser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1991
!
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  1992
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1993
newWithLabel:aString setupSelector:aSymbol arg:arg
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1994
    "common helper method for all creation methods"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1995
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1996
    ^ self newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:Screen current 
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1997
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1998
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1999
newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:aWorkstation
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2000
    "common helper method for all creation methods"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2001
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2002
    |newBrowser|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2003
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2004
    newBrowser := BrowserView onDevice:aWorkstation.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2005
    newBrowser title:aString.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2006
    newBrowser perform:aSymbol with:arg.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2007
    newBrowser open.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2008
    ^ newBrowser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2009
! !
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2010
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2011
!SystemBrowser class methodsFor:'special search startup'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2012
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2013
allCallsOn:aSelectorString
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2014
    "return a collection of methods which send aSelector."
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2015
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2016
    ^ self allCallsOn:aSelectorString in:(Smalltalk allClasses) ignoreCase:false match:false
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2017
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2018
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2019
     SystemBrowser allCallsOn:#at:put:
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2020
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2021
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2022
    "Created: 24.1.1997 / 19:42:57 / cg"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2023
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2024
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2025
allCallsOn:aSelectorString in:aCollectionOfClasses
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2026
    "return a collection of methods which send aSelector.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2027
     Methods from classes in aCollectionOfClasses are searched only."
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2028
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2029
    ^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:false match:false
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2030
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2031
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2032
allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2033
    "return a collection of methods which send aSelector.
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2034
     Methods from classes in aCollectionOfClasses are searched only."
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2035
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2036
    ^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2037
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2038
    "
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2039
     SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses)
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2040
    "
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2041
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2042
    "Modified: 18.4.1997 / 10:32:50 / cg"
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2043
!
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2044
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2045
allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2046
    "return a collection of methods which send aSelector.
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2047
     Methods from classes in aCollectionOfClasses are searched only."
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2048
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  2049
    |sel searchBlock classesSearched|
3471
4c4b41516d96 care for empty selector in allCallsOn.
Claus Gittinger <cg@exept.de>
parents: 3470
diff changeset
  2050
4c4b41516d96 care for empty selector in allCallsOn.
Claus Gittinger <cg@exept.de>
parents: 3470
diff changeset
  2051
    aSelectorString size == 0 ifTrue:[ ^ #() ].
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2052
    doMatch ifFalse:[
5090
1d20f51a7d6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5018
diff changeset
  2053
        ignoreCase ifFalse:[
1d20f51a7d6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5018
diff changeset
  2054
            sel := aSelectorString asSymbolIfInterned.
1d20f51a7d6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5018
diff changeset
  2055
            sel isNil ifTrue:[
1d20f51a7d6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5018
diff changeset
  2056
                ^ #()    "/ none (no such selector)
1d20f51a7d6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5018
diff changeset
  2057
            ].
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2058
        ].
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2059
    ]. 
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  2060
2901
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  2061
    classesSearched := aCollectionOfClasses.
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2062
    (doMatch and:[aSelectorString includesMatchCharacters]) ifFalse:[
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  2063
        "/ exclude javaClasses, if selector cannot be a valid java-selector
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2064
        (aSelectorString includes:$() ifFalse:[
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  2065
            classesSearched := classesSearched select:[:eachClass | eachClass theNonMetaclass isJavaClass not].
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  2066
        ].
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2067
    ].
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  2068
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2069
    searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch.
4332
c8efd47b1a1c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4308
diff changeset
  2070
    searchBlock isNil ifTrue:[
c8efd47b1a1c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4308
diff changeset
  2071
        ^ #()    "/ none (no such selector)
c8efd47b1a1c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4308
diff changeset
  2072
    ].
2901
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  2073
    ^ self allMethodsIn:classesSearched where:searchBlock
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2074
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2075
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2076
     SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2077
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2078
1143
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  2079
    "Modified: 18.4.1997 / 10:32:50 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2080
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2081
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2082
allMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2083
    "return a collection of methods which pass the given test.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2084
     wantInst/wantClass control if instMethods and/or classMethods are to be
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2085
     considered.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2086
     Only classes in aCollectionOfClasses are inspected in the search"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2087
2769
768b6aa2fb5f eliminated a message
Claus Gittinger <cg@exept.de>
parents: 2748
diff changeset
  2088
    |list activePriority|
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2089
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2090
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2091
     since this may take a long time, lower my priority ...
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2092
    "
2769
768b6aa2fb5f eliminated a message
Claus Gittinger <cg@exept.de>
parents: 2748
diff changeset
  2093
    activePriority := Processor activePriority.
2295
4e05198e7dd8 execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  2094
    Processor activeProcess 
2769
768b6aa2fb5f eliminated a message
Claus Gittinger <cg@exept.de>
parents: 2748
diff changeset
  2095
        withPriority:activePriority-1 to:activePriority
2295
4e05198e7dd8 execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  2096
    do:[
2484
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2097
        |checkedClasses checkBlock detectedMethods|
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2098
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2099
        checkedClasses := IdentitySet new.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2100
        list := OrderedCollection new.
2484
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2101
        detectedMethods := IdentitySet new.
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2102
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2103
        checkBlock := [:cls |
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2104
            (checkedClasses includes:cls) ifFalse:[
8554
441ea25ad1fd Do not complain about obsolete classes which are unloaded when searching
Stefan Vogel <sv@exept.de>
parents: 8505
diff changeset
  2105
                (cls isObsolete and:[cls isLoaded]) ifTrue:[
2882
2a12342fef79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2880
diff changeset
  2106
                    Transcript showCR:'Browser method search: skipping obsolete class: ' , cls displayString
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2107
                ] ifFalse:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2108
                    cls methodDictionary keysAndValuesDo:[:sel :method |
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2109
                        (aBlock value:cls value:method value:sel) ifTrue:[
2484
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2110
                            "/ care for methods being in multiple classes (should not happen)
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2111
                            (detectedMethods includes:method) ifFalse:[
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2112
                                list add:method.
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2113
                                detectedMethods add:method
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2114
                            ]
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2115
                        ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2116
                    ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2117
                    checkedClasses add:cls.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2118
                ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2119
            ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2120
        ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2121
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2122
        aCollectionOfClasses do:[:aClass |
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2123
            "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2124
             output disabled - it slows down things too much (when searching for
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2125
             implementors or senders)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2126
            "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2127
            wantInst ifTrue:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2128
"/                Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2129
                checkBlock value:aClass
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2130
            ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2131
            wantClass ifTrue:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2132
"/                Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2133
                checkBlock value:(aClass class)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2134
            ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2135
            Processor yield
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2136
        ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2137
    ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2138
    ^ list
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2139
2484
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2140
    "Created: / 24.1.1997 / 19:41:12 / cg"
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2141
    "Modified: / 14.12.1999 / 14:59:02 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2142
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2143
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2144
allMethodsIn:aCollectionOfClasses where:aBlock
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2145
    "return a collection of methods which pass the given test.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2146
     Only classes in aCollectionOfClasses are inspected in the search"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2147
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2148
    ^ self
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2149
        allMethodsIn:aCollectionOfClasses 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2150
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2151
        class:true
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2152
        where:aBlock
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2153
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2154
    "Created: 24.1.1997 / 19:41:49 / cg"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2155
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2156
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2157
aproposSearch:aString
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  2158
    "browse all methods, which have aString in their selector."
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2159
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2160
    ^ self aproposSearch:aString in:(Smalltalk allClasses)
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  2161
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2162
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2163
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2164
aproposSearch:aString in:aCollectionOfClasses
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  2165
    "browse all methods, which have aString.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2166
     This is relatively slow, since all source must be processed."
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2167
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2168
    |matchString list s searchBlock browser|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2169
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2170
    matchString := '*' , aString , '*'.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2171
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2172
    list := OrderedCollection new.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2173
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2174
    (aString includesMatchCharacters) ifTrue:[
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  2175
        s := '*' , aString asLowercase , '*'.
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2176
        "a matchString"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2177
        searchBlock := [:text | (text asCollectionOfLinesfindFirst:[:line | s match:line]) ~~ 0].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2178
    ] ifFalse:[
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  2179
        searchBlock := [:source | (source findString:aString asLowercase) ~~ 0]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2180
    ].
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2181
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2182
    browser := self browseMethodsIn:aCollectionOfClasses 
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2183
                     where:[:class :method :sel |
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2184
                                |comment|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2185
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  2186
                                (searchBlock value:sel asLowercase)
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2187
                           ]
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  2188
                     title:(self classResources string:'selectors containing: %1' with:aString).
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2189
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2190
    browser notNil ifTrue:[
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2191
        browser autoSearch:aString 
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2192
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2193
    ^ browser
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2194
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2195
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2196
     SystemBrowser aproposSearch:'append' in:(Collection withAllSubclasses)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2197
     SystemBrowser aproposSearch:'add'    in:(Collection withAllSubclasses)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2198
     SystemBrowser aproposSearch:'sort'   in:(Collection withAllSubclasses)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2199
     SystemBrowser aproposSearch:'[Aa]bsent' in:(Collection withAllSubclasses)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2200
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2201
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2202
    "Created: 9.12.1995 / 18:02:36 / cg"
204
6f4460d5a09d added supersend searches; offer comparing the current version with the
Claus Gittinger <cg@exept.de>
parents: 203
diff changeset
  2203
!
6f4460d5a09d added supersend searches; offer comparing the current version with the
Claus Gittinger <cg@exept.de>
parents: 203
diff changeset
  2204
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2205
browseAllCallsOn:aSelectorString
4490
de7216d4a28a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4350
diff changeset
  2206
    "launch a browser for all senders of aSelector.
de7216d4a28a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4350
diff changeset
  2207
     Notice: better go via Smalltalk browseAllCallsOn:, which honors the tool-preferences"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2208
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2209
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2210
        browseAllCallsOn:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2211
        in:(Smalltalk allClasses)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2212
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2213
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2214
     SystemBrowser browseAllCallsOn:#+
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2215
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2216
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2217
    "Created: 9.12.1995 / 18:00:41 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2218
    "Modified: 10.7.1996 / 10:26:15 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2219
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2220
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2221
browseAllCallsOn:aSelectorString in:aSetOfClasses
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2222
    "launch a browser for all senders of aSelector"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2223
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2224
    ^ self
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2225
        browseAllCallsOn:aSelectorString 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2226
        in:aSetOfClasses
4200
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2227
        title:(self classResources string:'Senders of: %1' with:aSelectorString)
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2228
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2229
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2230
     SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses)
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2231
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2232
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2233
    "Created: 10.7.1996 / 10:25:49 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2234
    "Modified: 24.1.1997 / 19:49:34 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2235
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2236
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2237
browseAllCallsOn:aSelectorString in:aSetOfClasses ignoreCase:ignoreCase
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2238
    "launch a browser for all senders of aSelector"
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2239
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2240
    ^ self
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2241
        browseAllCallsOn:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2242
        in:aSetOfClasses
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2243
        ignoreCase:ignoreCase
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  2244
        title:(self classResources string:'Senders of: %1' with:aSelectorString)
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2245
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2246
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2247
     SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses)
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2248
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2249
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2250
    "Created: 10.7.1996 / 10:25:49 / cg"
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2251
    "Modified: 24.1.1997 / 19:49:34 / cg"
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2252
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2253
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2254
browseAllCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2255
    "launch a browser for all senders of aSelector in aCollectionOfClasses"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2256
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2257
    |list list2 browser selWithColon title rs|
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2258
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2259
    title := titleArg.
4200
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2260
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2261
    list := self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true.
4200
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2262
    list isEmpty ifTrue:[
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2263
        aSelectorString numArgs == 0 ifTrue:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2264
            selWithColon := aSelectorString , ':'.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2265
            selWithColon knownAsSymbol ifTrue:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2266
                list2 := self allCallsOn:selWithColon in:aCollectionOfClasses ignoreCase:ignoreCase match:true.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2267
            ].            
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2268
        ].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2269
        list2 size == 0 ifTrue:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2270
            self showNoneFound:title.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2271
            ^ nil
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2272
        ].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2273
        rs := self classResources.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2274
        (Dialog confirm:((rs string:title) , 
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2275
                         (rs string:'...\\... none found.') ,
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2276
                         (rs string:'\\But I found %1 sends of the "%2" message (with colon).\\Browse those ?'
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2277
                             with:list2 size
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2278
                             with:selWithColon allBold)) withCRs) ifFalse:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2279
            ^ nil
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2280
        ].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2281
        list := list2.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2282
        title := title , ':'.
4200
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2283
    ].
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2284
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2285
    browser := self browseMethods:list title:title.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2286
    browser notNil ifTrue:[
648
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2287
        |s|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2288
8139
acdaec7c63a0 auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents: 8129
diff changeset
  2289
"/        "
acdaec7c63a0 auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents: 8129
diff changeset
  2290
"/         kludge for now, if its a multipart selector,
acdaec7c63a0 auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents: 8129
diff changeset
  2291
"/         no easy search is (as yet) possible
acdaec7c63a0 auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents: 8129
diff changeset
  2292
"/        "
acdaec7c63a0 auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents: 8129
diff changeset
  2293
"/        s := aSelectorString.
acdaec7c63a0 auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents: 8129
diff changeset
  2294
"/        (s includes:$:) ifTrue:[
acdaec7c63a0 auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents: 8129
diff changeset
  2295
"/            s := s copyTo:(s indexOf:$:)
acdaec7c63a0 auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents: 8129
diff changeset
  2296
"/        ].
acdaec7c63a0 auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents: 8129
diff changeset
  2297
"/        browser autoSearch:s 
acdaec7c63a0 auto-search for selector (not string) when searching senders.
Claus Gittinger <cg@exept.de>
parents: 8129
diff changeset
  2298
        browser autoSearchSelector:aSelectorString ignoreCase:ignoreCase doMatch:true.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2299
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2300
    ^ browser
648
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2301
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2302
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2303
     SystemBrowser
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2304
        browseAllCallsOn:#+ 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2305
        in:(Number withAllSubclasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2306
        title:'just a test'
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2307
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2308
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2309
    "Modified: 24.1.1997 / 19:48:54 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2310
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2311
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2312
browseAllCallsOn:aSelectorString in:aCollectionOfClasses title:title
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2313
    "launch a browser for all senders of aSelector in aCollectionOfClasses"
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2314
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2315
    ^ self
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2316
        browseAllCallsOn:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2317
        in:aCollectionOfClasses 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2318
        ignoreCase:false 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2319
        title:title
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2320
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2321
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2322
     SystemBrowser
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2323
        browseAllCallsOn:#+ 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2324
        in:(Number withAllSubclasses) 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2325
        title:'just a test'
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2326
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2327
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2328
    "Modified: 24.1.1997 / 19:48:54 / cg"
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2329
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2330
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2331
browseCallsOn:aSelectorString under:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2332
    "launch a browser for all senders of aSelector in aClass and subclasses"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2333
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2334
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2335
        browseAllCallsOn:aSelectorString
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2336
                      in:(aClass withAllSubclasses)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2337
                   title:(self classResources 
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  2338
                                string:'Senders of: %1 (in and below %2)'
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2339
                                with:aSelectorString 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2340
                                with:aClass name)
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2341
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2342
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2343
     SystemBrowser browseCallsOn:#+ under:Number
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2344
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2345
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2346
    "Created: 9.12.1995 / 17:59:57 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2347
    "Modified: 24.1.1997 / 19:50:33 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2348
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2349
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2350
browseClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2351
    "launch a browser for all methods in aClass where the classVar named
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2352
     aString is referenced; if modsOnly is true, browse only methods where the
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2353
     classvar is modified"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2354
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2355
    ^ self browseRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2356
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2357
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2358
browseClassRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2359
    "launch a browser for all methods in aCollectionOfClasses,
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2360
     where the classVar named aString is referenced; 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2361
     if modsOnly is true, browse only methods where the classvar is modified"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2362
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2363
    ^ self browseRefsTo:varName classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2364
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2365
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2366
browseClassRefsTo:aString under:aClass modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2367
    "launch a browser for all methods in aClass and subclasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2368
     where the classVar named aString is referenced; 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2369
     if modsOnly is true, browse only methods where the classvar is modified"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2370
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2371
    ^ self browseClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2372
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2373
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2374
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2375
browseForResource:aResourceSymbol containing:item in:aCollectionOfClasses title:title
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2376
    "launch a browser for all methods which have a particular (or any, ifNil)
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2377
     resource in aCollectionOfClasses.
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2378
     If aKey is nonNil, only methods which have aKey in the (any) resourceSpec
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2379
     are parsed.
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2380
     I.e. to find all methods, which access the styleSheets, use:
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2381
        browseForResource:#style containing:nil in:... title:...
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2382
     to find methods which access the 'arrowButtonDownForm' styleSheet entry, use:
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2383
        browseForResource:#style containing:'arrowButtonDownForm' in:... title:..."
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2384
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 675
diff changeset
  2385
    |browser searchBlock|
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2386
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2387
    "/ search for any resource can be done without looking
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2388
    "/ at the source ...
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2389
    (aResourceSymbol isNil and:[item isNil]) ifTrue:[
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2390
        searchBlock := [:class :method :s | method hasResource]
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2391
    ] ifFalse:[
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2392
        searchBlock := [:class :method :s |
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2393
                            |rsrc val found|
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2394
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2395
                            found := false.
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2396
                            method hasResource ifTrue:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2397
                                rsrc := method resources.
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2398
                                rsrc notNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2399
                                    aResourceSymbol isNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2400
                                        item isNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2401
                                            found := true
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2402
                                        ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2403
                                            rsrc isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2404
                                                rsrc keysAndValuesDo:[:rsrc :val |
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2405
                                                    val isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2406
                                                        val do:[:v |
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2407
                                                            found := item match:v printString 
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2408
                                                        ]
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2409
                                                    ] ifFalse:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2410
                                                        found := item match:val printString 
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2411
                                                    ]
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2412
                                                ]
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2413
                                            ] ifFalse:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2414
                                                found := item match:rsrc printString
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2415
                                            ]
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2416
                                        ]
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2417
                                    ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2418
                                        (rsrc includesKey:aResourceSymbol) ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2419
                                            item isNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2420
                                                found := true
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2421
                                            ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2422
                                                rsrc isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2423
                                                    val := rsrc at:aResourceSymbol.
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2424
                                                    val isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2425
                                                        val do:[:v |
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2426
                                                            found := item match:v printString 
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2427
                                                        ]
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2428
                                                    ] ifFalse:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2429
                                                        found := item match:val printString 
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2430
                                                    ]
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2431
                                                ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2432
                                                    found := item match:rsrc printString
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2433
                                                ]
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2434
                                            ]
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2435
                                        ]
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2436
                                    ]
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2437
                                ].
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2438
                            ].
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2439
                            found
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2440
                       ].
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2441
    ].
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2442
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2443
    browser := self browseMethodsIn:aCollectionOfClasses
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2444
                              where:searchBlock
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2445
                              title:title.
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2446
    browser notNil ifTrue:[
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2447
        browser autoSearch:'resource:' 
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2448
    ].
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2449
    ^ browser
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2450
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2451
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2452
     SystemBrowser
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2453
        browseForResource:nil
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2454
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2455
        title:'methods with a resource'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2456
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2457
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2458
     SystemBrowser
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2459
        browseForResource:#style
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2460
        containing:nil
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2461
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2462
        title:'methods with a #style resource'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2463
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2464
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2465
     SystemBrowser
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2466
        browseForResource:#style
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2467
        containing:'arrowButton*'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2468
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2469
        title:'methods with a #style resource'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2470
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2471
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2472
    "Modified: / 22.4.1998 / 10:29:20 / cg"
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2473
!
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2474
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2475
browseForResource:aResourceSymbol in:aCollectionOfClasses title:title
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2476
    "launch a browser for all methods which have a particular (or any, ifNil)
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2477
     resource in aCollectionOfClasses"
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2478
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2479
    ^ self
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2480
        browseForResource:aResourceSymbol
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2481
        containing:nil
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2482
        in:aCollectionOfClasses 
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2483
        title:title
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2484
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2485
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2486
     SystemBrowser
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2487
        browseForResource:#style
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2488
        in:Smalltalk allClasses
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2489
        title:'methods accessing styleSheet values'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2490
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2491
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2492
     SystemBrowser
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2493
        browseForResource:#keyboard
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2494
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2495
        title:'methods handling keyboard events'
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2496
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2497
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2498
     SystemBrowser
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2499
        browseForResource:nil
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2500
        in:Smalltalk allClasses
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2501
        title:'methods with a resource'
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2502
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2503
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2504
    "Modified: 9.1.1997 / 12:44:38 / cg"
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2505
!
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2506
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2507
browseForString:aString
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2508
    "launch a browser for all methods containing a string in their source.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2509
     This may be slow, since source-code has to be scanned."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2510
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2511
    ^ self browseForString:aString in:(Smalltalk allClasses) ignoreCase:false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2512
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2513
    "Modified: / 18.6.1998 / 16:42:39 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2514
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2515
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2516
browseForString:aString in:aCollectionOfClasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2517
    "launch a browser for all methods in aCollectionOfClasses  
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2518
     containing a string in their source.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2519
     This may be slow, since source-code has to be scanned."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2520
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2521
    ^ self
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2522
        browseForString:aString 
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2523
        in:aCollectionOfClasses 
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2524
        ignoreCase:false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2525
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2526
    "
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2527
     SystemBrowser browseForString:'all'      in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2528
     SystemBrowser browseForString:'should'   in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2529
     SystemBrowser browseForString:'[eE]rror' in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2530
    "
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2531
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2532
    "Created: / 9.12.1995 / 18:03:12 / cg"
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2533
    "Modified: / 18.6.1998 / 16:43:27 / cg"
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2534
!
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2535
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2536
browseForString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2537
    "launch a browser for all methods in aCollectionOfClasses  
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2538
     containing a string in their source.
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2539
     This may be slow, since source-code has to be scanned."
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2540
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2541
    |browser searchBlock title s|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2542
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  2543
    title := self classResources string:'Methods containing: %1' with:aString displayString.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2544
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2545
    (aString includesMatchCharacters
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2546
    or:[ignoreCase]) ifTrue:[
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2547
        s := '*' , aString , '*'.
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2548
        "a matchString"
475
b14b3ab39af6 dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents: 436
diff changeset
  2549
        searchBlock := [:c :m :sel | 
b14b3ab39af6 dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents: 436
diff changeset
  2550
                            |src|       
b14b3ab39af6 dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents: 436
diff changeset
  2551
                            src := m source.
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2552
                            src isNil ifTrue:[
2208
e077aa992f7a check for nil source in #allCallsOn: (for methods where src in not available)
Claus Gittinger <cg@exept.de>
parents: 1937
diff changeset
  2553
                                ('Browser [info]: no source for ' , m printString) infoPrintCR.
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2554
                                false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2555
                            ] ifFalse:[
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2556
                                s match:src ignoreCase:ignoreCase
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2557
                            ]
475
b14b3ab39af6 dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents: 436
diff changeset
  2558
                       ]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2559
    ] ifFalse:[
475
b14b3ab39af6 dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents: 436
diff changeset
  2560
        searchBlock := [:c :m :sel | 
b14b3ab39af6 dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents: 436
diff changeset
  2561
                            |src|
b14b3ab39af6 dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents: 436
diff changeset
  2562
b14b3ab39af6 dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents: 436
diff changeset
  2563
                            src := m source.
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2564
                            src isNil ifTrue:[
2208
e077aa992f7a check for nil source in #allCallsOn: (for methods where src in not available)
Claus Gittinger <cg@exept.de>
parents: 1937
diff changeset
  2565
                                ('Browser [info]: no source for ' , m printString) infoPrintCR.
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2566
                                false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2567
                            ] ifFalse:[
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2568
                                (src findString:aString) ~~ 0
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2569
                            ]
475
b14b3ab39af6 dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents: 436
diff changeset
  2570
                       ]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2571
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2572
    browser := self browseMethodsIn:aCollectionOfClasses where:searchBlock title:title.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2573
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2574
    browser notNil ifTrue:[
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2575
        browser autoSearch:aString ignoreCase:ignoreCase
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2576
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2577
    ^ browser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2578
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2579
    "
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2580
     SystemBrowser browseForString:'all'      in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2581
     SystemBrowser browseForString:'should'   in:(Array with:Object)
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2582
     SystemBrowser browseForString:'[eE]rror' in:(Array with:Object)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2583
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2584
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2585
    "Created: / 18.6.1998 / 16:42:50 / cg"
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2586
    "Modified: / 18.6.1998 / 16:51:25 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2587
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2588
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2589
browseForSymbol:aSymbol
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2590
    "launch a browser for all methods referencing aSymbol"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2591
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2592
    ^ self 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2593
        browseForSymbol:aSymbol 
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  2594
        title:(self classResources string:'Users of: %1' with:aSymbol) 
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2595
        warnIfNone:true
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2596
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2597
    "Created: 9.12.1995 / 18:04:34 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2598
    "Modified: 10.7.1996 / 10:35:34 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2599
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2600
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2601
browseForSymbol:aSymbol in:aSetOfClasses title:title warnIfNone:doWarn
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2602
    "launch a browser for all methods referencing aSymbol"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2603
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  2604
    ^ self
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  2605
        browseForSymbol:aSymbol 
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  2606
        in:aSetOfClasses 
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  2607
        title:title 
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  2608
        warnIfNone:doWarn
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  2609
        searchFor:aSymbol
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2610
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2611
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2612
browseForSymbol:aSymbol in:aSetOfClasses title:title warnIfNone:doWarn searchFor:searchString
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2613
    "launch a browser for all methods referencing aSymbol"
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2614
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2615
    |browser searchBlock sym|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2616
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2617
    (aSymbol includesMatchCharacters) ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2618
        "a matchString"
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2619
        searchBlock := [:c :m :s |
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2620
                            (m literalsDetect:[:aLiteral|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2621
                                (aLiteral isMemberOf:Symbol) 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2622
                                  and:[aSymbol match:aLiteral]
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2623
                            ] ifNone:nil) notNil
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2624
                       ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2625
    ] ifFalse:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2626
        "
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2627
         can do a faster search
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2628
        "
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2629
        sym := aSymbol asSymbolIfInterned.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2630
        sym isNil ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2631
            self showNoneFound:title.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2632
            ^ nil
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2633
        ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2634
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2635
        searchBlock := [:c :m :s |
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2636
                            (m literalsDetect:[:aLiteral|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2637
                                (sym == aLiteral) 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2638
                            ] ifNone:nil) notNil
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2639
                       ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2640
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2641
    doWarn ifFalse:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2642
        WarningSignal ignoreIn:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2643
            browser := self browseMethodsIn:aSetOfClasses where:searchBlock title:title.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2644
        ]
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2645
    ] ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2646
        browser := self browseMethodsIn:aSetOfClasses where:searchBlock title:title.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2647
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2648
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2649
    (browser notNil 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2650
    and:[searchString notNil]) ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2651
        browser autoSearch:searchString
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2652
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2653
    ^ browser
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2654
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2655
    "Modified: 24.6.1996 / 14:39:07 / stefan"
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2656
    "Modified: 30.6.1996 / 16:45:25 / cg"
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2657
    "Created: 31.10.1996 / 14:57:30 / cg"
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2658
!
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2659
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2660
browseForSymbol:aSymbol title:title ifNone:actionIfNoneFound searchFor:searchString
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2661
    "launch a browser for all methods referencing aSymbol"
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2662
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2663
    |browser searchBlock sym|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2664
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2665
    (aSymbol includesMatchCharacters) ifTrue:[
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2666
        "a matchString"
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2667
        searchBlock := [:c :m :s |
2439
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2668
                            m referencesGlobalMatching:aSymbol
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2669
"/                            (m literalsDetect:[:aLiteral|
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2670
"/                                (aLiteral isMemberOf:Symbol) 
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2671
"/                                  and:[aSymbol match:aLiteral]
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2672
"/                            ] ifNone:nil) notNil
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2673
                       ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2674
    ] ifFalse:[
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2675
        "
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2676
         can do a faster search
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2677
        "
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2678
        sym := aSymbol asSymbolIfInterned.
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2679
        sym isNil ifTrue:[
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2680
            actionIfNoneFound value.
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2681
            ^ nil
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2682
        ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2683
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2684
        searchBlock := [:c :m :s |
2439
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2685
                            m referencesGlobal:sym
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2686
"/                            (m literalsDetect:[:aLiteral|
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2687
"/                                (sym == aLiteral) 
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2688
"/                            ] ifNone:nil) notNil
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2689
                       ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2690
    ].
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2691
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2692
    WarningSignal ignoreIn:[
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2693
        InformationSignal ignoreIn:[
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2694
            browser := self browseMethodsWhere:searchBlock title:title.
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2695
        ]
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2696
    ].
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2697
    browser isNil ifTrue:[
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2698
        actionIfNoneFound value
215
244f3a9b2a60 check for existing class in rename; avoid warnbox if no refs are found after rename
Claus Gittinger <cg@exept.de>
parents: 204
diff changeset
  2699
    ].
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2700
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2701
    (browser notNil 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2702
    and:[searchString notNil]) ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2703
        browser autoSearch:searchString
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2704
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2705
    ^ browser
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2706
2439
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2707
    "Modified: / 24.6.1996 / 14:39:07 / stefan"
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2708
    "Created: / 31.10.1996 / 14:45:08 / cg"
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2709
    "Modified: / 9.11.1999 / 17:04:30 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2710
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2711
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2712
browseForSymbol:aSymbol title:title warnIfNone:doWarn
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2713
    "launch a browser for all methods referencing aSymbol"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2714
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2715
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2716
        browseForSymbol:aSymbol 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2717
        title:title 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2718
        warnIfNone:doWarn 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2719
        searchFor:aSymbol
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2720
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2721
    "Modified: 31.10.1996 / 14:45:38 / cg"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2722
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2723
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2724
browseForSymbol:aSymbol title:title warnIfNone:doWarn searchFor:searchString
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2725
    "launch a browser for all methods referencing aSymbol"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2726
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2727
    |b|
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2728
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2729
    doWarn ifTrue: [
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2730
        b := [self showNoneFound:title]
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2731
    ].
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2732
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2733
        browseForSymbol:aSymbol 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2734
        title:title 
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2735
        ifNone:b
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2736
        searchFor:searchString
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2737
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2738
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2739
browseImplementorsMatching:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2740
    "launch a browser for all implementors of aSelector"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2741
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2742
    ^ self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2743
        browseImplementorsMatching:aSelectorString 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2744
        in:(Smalltalk allClasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2745
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2746
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2747
     SystemBrowser browseImplementorsOf:#+
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2748
     NewSystemBrowser browseImplementorsOf:#+
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2749
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2750
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2751
    "Created: / 9.12.1995 / 18:01:18 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2752
    "Modified: / 5.11.2001 / 17:31:11 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2753
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2754
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2755
browseImplementorsMatching:aSelectorString in:aSetOfClasses
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2756
    "launch a browser for all implementors of aSelector"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2757
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2758
    ^ self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2759
        browseImplementorsMatching:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2760
        in:aSetOfClasses
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2761
        title:(self classResources string:'implementors of: %1' with:aSelectorString)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2762
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2763
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2764
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2765
     NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2766
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2767
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2768
    "Created: / 10.7.1996 / 10:20:59 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2769
    "Modified: / 5.11.2001 / 17:30:57 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2770
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2771
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2772
browseImplementorsMatching:aSelectorString in:aSetOfClasses ignoreCase:ignoreCase
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2773
    "launch a browser for all implementors of aSelector"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2774
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2775
    ^ self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2776
        browseImplementorsMatching:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2777
        in:aSetOfClasses
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2778
        ignoreCase:ignoreCase
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2779
        title:(self classResources string:'implementors of: %1' with:aSelectorString)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2780
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2781
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2782
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2783
     NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2784
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2785
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2786
    "Created: / 10.7.1996 / 10:20:59 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2787
    "Modified: / 5.11.2001 / 17:30:43 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2788
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2789
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2790
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:title
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2791
    "launch a browser for all implementors of aSelector in
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2792
     the classes contained in aCollectionOfClasses and its metaclasses"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2793
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2794
    |list|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2795
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2796
    list := self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2797
                findImplementorsMatching:aSelectorString 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2798
                in:aCollectionOfClasses 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2799
                ignoreCase:ignoreCase.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2800
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2801
    list size == 0 ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2802
        self showNoneFound:title.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2803
        ^ nil
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2804
    ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2805
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2806
    ^ self browseMethods:list asOrderedCollection title:title
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2807
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2808
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2809
     SystemBrowser browseImplementorsOf:#+
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2810
                                     in:(Array with:Number
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2811
                                               with:Float
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2812
                                               with:SmallInteger)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2813
                                  title:'some implementors of +'
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2814
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2815
     NewSystemBrowser browseImplementorsOf:#+
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2816
                                     in:(Array with:Number
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2817
                                               with:Float
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2818
                                               with:SmallInteger)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2819
                                  title:'some implementors of +'
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2820
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2821
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2822
    "Modified: / 4.9.1995 / 17:33:39 / claus"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2823
    "Modified: / 19.6.1996 / 14:19:02 / stefan"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2824
    "Modified: / 5.11.2001 / 17:30:38 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2825
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2826
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2827
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses title:title
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2828
    "launch a browser for all implementors of aSelector in
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2829
     the classes contained in aCollectionOfClasses and its metaclasses"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2830
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2831
    ^ self
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2832
        browseImplementorsMatching:aSelectorString 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2833
        in:aCollectionOfClasses 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2834
        ignoreCase:false
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2835
        title:title
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2836
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2837
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2838
browseImplementorsMatching:aSelectorString under:aClass
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2839
    "launch a browser for all implementors of aSelector in aClass
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2840
     and its subclasses"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2841
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2842
    ^ self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2843
        browseImplementorsMatching:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2844
        in:(aClass withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2845
        title:(self classResources 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2846
                string:'implementors of: %1 (in and below %2)' 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2847
                with:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2848
                with:aClass name)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2849
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2850
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2851
     SystemBrowser browseImplementorsOf:#+ under:Integer
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2852
     NewSystemBrowser browseImplementorsOf:#+ under:Integer
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2853
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2854
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2855
    "Created: / 9.12.1995 / 18:06:09 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2856
    "Modified: / 5.11.2001 / 17:30:15 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2857
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2858
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2859
browseImplementorsOf:aSelectorString
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2860
    "launch a browser for all implementors of aSelector"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2861
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2862
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2863
        browseImplementorsOf:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2864
        in:(Smalltalk allClasses)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2865
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2866
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2867
     SystemBrowser browseImplementorsOf:#+
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2868
     NewSystemBrowser browseImplementorsOf:#+
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2869
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2870
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2871
    "Created: / 9.12.1995 / 18:01:18 / cg"
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2872
    "Modified: / 5.11.2001 / 17:31:11 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2873
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2874
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2875
browseImplementorsOf:aSelectorString in:aSetOfClasses
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2876
    "launch a browser for all implementors of aSelector"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2877
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2878
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2879
        browseImplementorsOf:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2880
        in:aSetOfClasses
8704
f5b8ba75a158 some code cleanup
Claus Gittinger <cg@exept.de>
parents: 8702
diff changeset
  2881
        title:(self classResources string:'Implementors of: %1' with:aSelectorString allBold)
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2882
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2883
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2884
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2885
     NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2886
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2887
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2888
    "Created: / 10.7.1996 / 10:20:59 / cg"
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2889
    "Modified: / 5.11.2001 / 17:30:57 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2890
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2891
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2892
browseImplementorsOf:aSelectorString in:aSetOfClasses ignoreCase:ignoreCase
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2893
    "launch a browser for all implementors of aSelector"
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2894
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2895
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2896
        browseImplementorsOf:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2897
        in:aSetOfClasses
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2898
        ignoreCase:ignoreCase
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  2899
        title:(self classResources string:'Implementors of: %1' with:aSelectorString)
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2900
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2901
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2902
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2903
     NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2904
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2905
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2906
    "Created: / 10.7.1996 / 10:20:59 / cg"
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2907
    "Modified: / 5.11.2001 / 17:30:43 / cg"
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2908
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2909
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2910
browseImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2911
    "launch a browser for all implementors of aSelector in
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2912
     the classes contained in aCollectionOfClasses and its metaclasses"
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2913
8688
71d973fdd817 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8685
diff changeset
  2914
    |list list2 rs selWithColon title top20 allSelectors choice|
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2915
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2916
    title := titleArg.
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2917
    list := self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2918
                findImplementorsOf:aSelectorString 
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2919
                in:aCollectionOfClasses 
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2920
                ignoreCase:ignoreCase.
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  2921
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2922
    list size == 0 ifTrue:[
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2923
        aSelectorString numArgs == 0 ifTrue:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2924
            selWithColon := aSelectorString , ':'.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2925
            selWithColon knownAsSymbol ifTrue:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2926
                list2 := self findImplementorsOf:selWithColon in:aCollectionOfClasses ignoreCase:ignoreCase.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2927
            ].            
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2928
        ].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2929
        list2 size == 0 ifTrue:[
8678
7d5bb9de7f7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8554
diff changeset
  2930
            "/ self showNoneFound:title.
7d5bb9de7f7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8554
diff changeset
  2931
            "/ ^ self
8688
71d973fdd817 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8685
diff changeset
  2932
            allSelectors := Set new.
8678
7d5bb9de7f7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8554
diff changeset
  2933
            top20 := SortedCollection new.
7d5bb9de7f7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8554
diff changeset
  2934
            top20 sortBlock:[:a :b | (a spellAgainst:aSelectorString) > (b spellAgainst:aSelectorString)].
8759
1ef143757126 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8704
diff changeset
  2935
            Smalltalk allMethodsWithSelectorDo:[:eachMethod :eachSelector |
1ef143757126 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8704
diff changeset
  2936
                (eachSelector spellAgainst:aSelectorString) > 50 ifTrue:[    
1ef143757126 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8704
diff changeset
  2937
                    (allSelectors includes:eachSelector) ifFalse:[
1ef143757126 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8704
diff changeset
  2938
                        allSelectors add:eachSelector.
1ef143757126 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8704
diff changeset
  2939
                        top20 add:eachSelector.
1ef143757126 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8704
diff changeset
  2940
                        top20 size > 20 ifTrue:[ top20 removeLast. allSelectors := top20 asSet ].
1ef143757126 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8704
diff changeset
  2941
                    ]
8678
7d5bb9de7f7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8554
diff changeset
  2942
                ]
7d5bb9de7f7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8554
diff changeset
  2943
            ].
7d5bb9de7f7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8554
diff changeset
  2944
            choice := Dialog 
8704
f5b8ba75a158 some code cleanup
Claus Gittinger <cg@exept.de>
parents: 8702
diff changeset
  2945
                choose:(title,' - none found.\\Browse implementors of a similar selector or cancel:' withCRs)
8678
7d5bb9de7f7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8554
diff changeset
  2946
                fromList:top20 
7d5bb9de7f7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8554
diff changeset
  2947
                lines:10.
7d5bb9de7f7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8554
diff changeset
  2948
            choice notEmptyOrNil ifTrue:[
7d5bb9de7f7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8554
diff changeset
  2949
                self browseImplementorsOf:choice in:aCollectionOfClasses ignoreCase:ignoreCase title:'Implementors of ',choice.
7d5bb9de7f7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8554
diff changeset
  2950
            ].
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2951
            ^ nil
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2952
        ].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2953
        rs := self classResources.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2954
        (Dialog confirm:((rs string:title) , 
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2955
                         (rs string:'...\\... none found.') ,
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2956
                         (rs string:'\\But I found %1 implementor(s) of the "%2" message (with colon).\\Browse those ?'
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2957
                             with:list2 size
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2958
                             with:selWithColon allBold)) withCRs) ifFalse:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2959
            ^ nil
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2960
        ].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2961
        list := list2.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2962
        title := title , ':'.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2963
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2964
    ].
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2965
270
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  2966
    ^ self browseMethods:list asOrderedCollection title:title
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2967
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2968
    "
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2969
     SystemBrowser browseImplementorsOf:#+
270
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  2970
                                     in:(Array with:Number
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  2971
                                               with:Float
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  2972
                                               with:SmallInteger)
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  2973
                                  title:'some implementors of +'
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2974
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2975
     NewSystemBrowser browseImplementorsOf:#+
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2976
                                     in:(Array with:Number
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2977
                                               with:Float
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2978
                                               with:SmallInteger)
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2979
                                  title:'some implementors of +'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2980
    "
132
claus
parents: 118
diff changeset
  2981
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  2982
    "Modified: / 4.9.1995 / 17:33:39 / claus"
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  2983
    "Modified: / 19.6.1996 / 14:19:02 / stefan"
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2984
    "Modified: / 5.11.2001 / 17:30:38 / cg"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2985
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2986
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2987
browseImplementorsOf:aSelectorString in:aCollectionOfClasses title:title
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2988
    "launch a browser for all implementors of aSelector in
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2989
     the classes contained in aCollectionOfClasses and its metaclasses"
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2990
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2991
    ^ self
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2992
        browseImplementorsOf:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2993
        in:aCollectionOfClasses 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2994
        ignoreCase:false
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2995
        title:title
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2996
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2997
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2998
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2999
browseImplementorsOf:aSelectorString under:aClass
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3000
    "launch a browser for all implementors of aSelector in aClass
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3001
     and its subclasses"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3002
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3003
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3004
        browseImplementorsOf:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3005
        in:(aClass withAllSubclasses)
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3006
        title:(self classResources 
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3007
                string:'Implementors of: %1 (in and below %2)' 
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3008
                with:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3009
                with:aClass name)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3010
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3011
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3012
     SystemBrowser browseImplementorsOf:#+ under:Integer
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  3013
     NewSystemBrowser browseImplementorsOf:#+ under:Integer
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3014
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3015
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  3016
    "Created: / 9.12.1995 / 18:06:09 / cg"
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  3017
    "Modified: / 5.11.2001 / 17:30:15 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3018
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3019
3663
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3020
browseImplementorsOfAny:setOfSelectors 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3021
    "launch a browser for all implementors of aSelector"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3022
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3023
    ^ self 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3024
        browseImplementorsOfAny:setOfSelectors
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3025
        in:(Smalltalk allClasses)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3026
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3027
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3028
     SystemBrowser browseImplementorsOfAny:#( #+ #- )
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3029
     NewSystemBrowser browseImplementorsOfAny:#( #+ #- )
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3030
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3031
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3032
    "Created: / 9.12.1995 / 18:01:18 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3033
    "Modified: / 5.11.2001 / 17:31:11 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3034
!
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3035
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3036
browseImplementorsOfAny:setOfSelectors in:aSetOfClasses
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3037
    "launch a browser for all implementors of aSelector"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3038
8047
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3039
    |title|
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3040
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3041
    setOfSelectors size == 1 ifTrue:[
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3042
        title := self classResources 
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3043
                string:'Implementors of %1' 
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3044
                with:(setOfSelectors asOrderedCollection first).
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3045
    ] ifFalse:[
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3046
        setOfSelectors size == 2 ifTrue:[
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3047
            title := self classResources 
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3048
                    string:'Implementors of %1 or %2' 
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3049
                    with:(setOfSelectors asOrderedCollection first)
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3050
                    with:(setOfSelectors asOrderedCollection second).
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3051
        ] ifFalse:[
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3052
            title := self classResources string:'Implementors of some'.
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3053
        ].
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3054
    ].
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3055
3663
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3056
    ^ self 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3057
        browseImplementorsOfAny:setOfSelectors
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3058
        in:aSetOfClasses
8047
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  3059
        title:title
3663
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3060
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3061
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3062
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3063
     NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3064
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3065
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3066
    "Created: / 10.7.1996 / 10:20:59 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3067
    "Modified: / 5.11.2001 / 17:30:57 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3068
!
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3069
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3070
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase title:title
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3071
    "launch a browser for all implementors of aSelector in
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3072
     the classes contained in aCollectionOfClasses and its metaclasses"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3073
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3074
    |list|
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3075
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3076
    list := self 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3077
                findImplementorsOfAny:setOfSelectors 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3078
                in:aCollectionOfClasses 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3079
                ignoreCase:ignoreCase.
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3080
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3081
    list size == 0 ifTrue:[
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3082
        self showNoneFound:title.
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3083
        ^ nil
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3084
    ].
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3085
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3086
    ^ self browseMethods:list asOrderedCollection title:title
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3087
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3088
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3089
     SystemBrowser browseImplementorsOf:#+
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3090
                                     in:(Array with:Number
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3091
                                               with:Float
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3092
                                               with:SmallInteger)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3093
                                  title:'some implementors of +'
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3094
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3095
     NewSystemBrowser browseImplementorsOf:#+
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3096
                                     in:(Array with:Number
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3097
                                               with:Float
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3098
                                               with:SmallInteger)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3099
                                  title:'some implementors of +'
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3100
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3101
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3102
    "Modified: / 4.9.1995 / 17:33:39 / claus"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3103
    "Modified: / 19.6.1996 / 14:19:02 / stefan"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3104
    "Modified: / 5.11.2001 / 17:30:38 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3105
!
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3106
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3107
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses title:title
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3108
    "launch a browser for all implementors of aSelector in
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3109
     the classes contained in aCollectionOfClasses and its metaclasses"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3110
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3111
    ^ self
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3112
        browseImplementorsOfAny:setOfSelectors 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3113
        in:aCollectionOfClasses 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3114
        ignoreCase:false
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3115
        title:title
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3116
!
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3117
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3118
browseInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3119
    "launch a browser for all methods in aClass where the instVar named
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3120
     aString is referenced; if modsOnly is true, browse only methods where the
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3121
     instvar is modified"
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  3122
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3123
    ^ self browseRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3124
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3125
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3126
browseInstRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3127
    "launch a browser for all methods in aClass where the instVar named
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3128
     varName is referenced; if modsOnly is true, browse only methods where the
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3129
     instvar is modified"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3130
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3131
    ^ self browseRefsTo:varName classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly title:title
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3132
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3133
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3134
browseInstRefsTo:aString under:aClass modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3135
    "launch a browser for all methods in aClass and subclasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3136
     where the instVar named aString is referenced; 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3137
     if modsOnly is true, browse only methods where the instvar is modified"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3138
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3139
    ^ self browseInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3140
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3141
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3142
browseReferendsOf:aGlobalName
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3143
    "launch a browser for all methods referencing a global
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3144
     named aGlobalName. The argument may be a symbol, a string or
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3145
     a matchPattern.
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3146
    "
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3147
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3148
    ^ self browseReferendsOf:aGlobalName warnIfNone:true 
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3149
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3150
   "
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3151
    Browser browseReferendsOf:#Transcript
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3152
    Browser browseReferendsOf:'Tr*'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3153
   "
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  3154
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3155
    "Modified: / 30.10.1997 / 23:45:52 / cg"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3156
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3157
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3158
browseReferendsOf:aGlobalName ifNone:actionIfNone
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3159
    "launch a browser for all methods referencing a global
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3160
     named aGlobalName.
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3161
    "
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3162
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3163
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3164
        browseReferendsOf:aGlobalName 
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3165
        title:(self classResources string:'Users of: %1' with:aGlobalName)
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3166
        ifNone:actionIfNone
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3167
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3168
    "Modified: / 31.10.1997 / 15:42:05 / cg"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3169
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3170
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3171
browseReferendsOf:aGlobalName in:aSetOfClasses
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3172
    "launch a browser for all methods referencing a global
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3173
     named aGlobalName.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3174
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3175
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3176
    ^ self browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:true 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3177
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3178
   "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3179
    Browser browseReferendsOf:#Transcript
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3180
   "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3181
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3182
    "Created: 10.7.1996 / 10:37:30 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3183
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3184
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3185
browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:doWarn
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3186
    "launch a browser for all methods referencing a global
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3187
     named aGlobalName.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3188
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3189
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3190
    |globalsPlainName idx|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3191
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3192
    globalsPlainName := aGlobalName.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3193
    (idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3194
        globalsPlainName := globalsPlainName copyFrom:idx+1
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3195
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3196
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3197
    ^ self browseForSymbol:aGlobalName
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3198
                        in:aSetOfClasses
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3199
                     title:(self classResources string:'Users of: %1' with:aGlobalName) 
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3200
                warnIfNone:doWarn
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3201
                 searchFor:globalsPlainName
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3202
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3203
    "Created: 10.7.1996 / 10:37:02 / cg"
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3204
    "Modified: 31.10.1996 / 14:56:38 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3205
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3206
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3207
browseReferendsOf:aGlobalName title:title ifNone:actionIfNone
9002
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3208
    "launch a browser for all methods referencing a global named aGlobalName."
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3209
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3210
    |searchBlock browser|
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3211
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3212
    searchBlock := self searchBlockForReferendsOf:aGlobalName.
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3213
    browser := self 
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3214
                browseMethodsWhere:searchBlock 
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3215
                title:title 
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3216
                ifNone:[
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3217
                    actionIfNone value. 
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3218
                    ^ nil
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3219
                ].
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3220
2828
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3221
    browser isNil ifTrue:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3222
        actionIfNone value
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3223
    ] ifFalse:[
9002
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3224
        browser autoSearchVariables:(Array with:aGlobalName) readers:true writers:true.
2828
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3225
    ].
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3226
    ^ browser
9002
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3227
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3228
    "
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3229
     Tools::NewSystemBrowser browseReferendsOf:'SortedCollection' title:'foo' ifNone:[ self halt ]
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  3230
    "
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3231
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3232
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3233
browseReferendsOf:aGlobalName title:title warnIfNone:doWarn
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3234
    "launch a browser for all methods referencing a global
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3235
     named aGlobalName.
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3236
    "
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3237
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3238
    |b|
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3239
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3240
    doWarn ifTrue: [
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3241
        b := [self showNoneFound:title]
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3242
    ].
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3243
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3244
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3245
        browseReferendsOf:aGlobalName 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3246
        title:title 
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3247
        ifNone:b
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3248
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3249
!
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3250
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3251
browseReferendsOf:aGlobalName warnIfNone:doWarn
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3252
    "launch a browser for all methods referencing a global
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3253
     named aGlobalName.
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3254
    "
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3255
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3256
    ^ self
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3257
        browseReferendsOf:aGlobalName 
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3258
        title:(self classResources string:'Users of: %1' with:aGlobalName)
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3259
        warnIfNone:doWarn
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3260
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3261
    "Modified: / 31.10.1997 / 15:42:05 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3262
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3263
4198
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3264
browseReferendsOfUnboundGlobalsWithTitle:title ifNone:actionIfNone
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3265
    "launch a browser for all methods referencing an unbound global.
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3266
    "
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3267
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3268
    |globalsPlainName searchBlock browser|
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3269
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3270
    searchBlock := [:cls :mthd :sel | 
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3271
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3272
                    |mSource globals potentialNames|
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3273
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3274
                    "/ kludge: Lazy methods do not include symbols in the literal array - sigh
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3275
                    mthd isLazyMethod ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3276
                        mSource := mthd source.
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3277
                        mSource notNil ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3278
                            globals := mthd usedGlobals.
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3279
                        ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3280
                    ] ifFalse:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3281
                        "/ try hard to avoid the usedGlobals - its expensive
6640
326360e94271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6581
diff changeset
  3282
                        potentialNames := mthd literals select:[:lit | lit isSymbol and:[lit size > 0 and:[lit isUppercaseFirst]]].
4198
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3283
                        potentialNames notEmpty ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3284
                            potentialNames := potentialNames select:[:lit | (Smalltalk at:lit) isNil].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3285
                            potentialNames notEmpty ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3286
                                globals := mthd usedGlobals.
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3287
                            ]
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3288
                        ]
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3289
                    ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3290
                    globals notNil ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3291
                        globals contains:[:aGlobalKey | (Smalltalk at:aGlobalKey asSymbol) isNil].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3292
                    ] ifFalse:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3293
                        false
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3294
                    ]
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3295
                  ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3296
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3297
    browser := self browseMethodsWhere:searchBlock title:title ifNone:[actionIfNone value. ^ nil].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3298
    browser isNil ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3299
        actionIfNone value
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3300
    ] ifFalse:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3301
        browser autoSearch:globalsPlainName
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3302
    ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3303
    ^ browser
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3304
!
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3305
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3306
browseReferendsOfUnboundGlobalsWithTitle:title warnIfNone:doWarn
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3307
    "launch a browser for all methods referencing an unbound global.
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3308
    "
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3309
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3310
    |b|
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3311
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3312
    doWarn ifTrue: [
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3313
        b := [self showNoneFound:title]
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3314
    ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3315
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3316
    ^ self
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3317
        browseReferendsOfUnboundGlobalsWithTitle:title 
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3318
        ifNone:b
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3319
!
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3320
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3321
browseRefsTo:aString classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3322
    "launch a browser for all methods in aClass where the instVar/classVar named
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3323
     aString is referenced; if modsOnly is true, browse only methods where the
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3324
     instvar is modified"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3325
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3326
    |title|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3327
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3328
    modsOnly ifTrue:[
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3329
        title := 'Modifications of: %1'
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3330
    ] ifFalse:[
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3331
        title := 'References to: %1 '
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3332
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3333
    ^ self 
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3334
        browseRefsTo:aString 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3335
        classVars:classVars 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3336
        in:aCollectionOfClasses 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3337
        modificationsOnly:modsOnly 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3338
        title:(self classResources string:title with:aString)
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3339
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3340
    "Created: 9.12.1995 / 18:07:05 / cg"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3341
    "Modified: 9.12.1995 / 18:11:49 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3342
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3343
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3344
browseRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3345
    "launch a browser for all methods in aClass where the instVar/classVar named
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3346
     varName is referenced; if modsOnly is true, browse only methods where the
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3347
     instvar is modified"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3348
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3349
    |filter browser pattern|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3350
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3351
    filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly.
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3352
    browser := self browseMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter title:title.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3353
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3354
    browser notNil ifTrue:[
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3355
        modsOnly ifTrue:[
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3356
            pattern := varName , ' :='
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3357
        ] ifFalse:[
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3358
            pattern := varName
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3359
        ].
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3360
        browser autoSearch:pattern 
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3361
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3362
    ^ browser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3363
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3364
3407
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3365
browseSendersOf:aSelectorString
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3366
    "launch a browser for all senders of aSelector"
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3367
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3368
    ^ self browseAllCallsOn:aSelectorString
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3369
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3370
    "
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3371
     SystemBrowser browseSendersOf:#+
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3372
     UserPreferences current systemBrowserClass browseSendersOf:#+
3407
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3373
    "
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3374
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3375
    "Modified: / 10.7.1996 / 10:26:15 / cg"
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3376
    "Created: / 13.11.2001 / 13:52:12 / cg"
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3377
!
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3378
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3379
browseSuperCallsIn:aCollectionOfClasses title:title
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3380
    "launch a browser for all super sends in aCollectionOfClasses"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3381
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 675
diff changeset
  3382
    |browser searchBlock|
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3383
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3384
    searchBlock := [:class :method :s | 
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3385
        |src parser|
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3386
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3387
        src := method source.
2208
e077aa992f7a check for nil source in #allCallsOn: (for methods where src in not available)
Claus Gittinger <cg@exept.de>
parents: 1937
diff changeset
  3388
        (src notNil and:[src findString:'super']) ~~ 0 ifTrue:[
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3389
            parser := Parser 
2208
e077aa992f7a check for nil source in #allCallsOn: (for methods where src in not available)
Claus Gittinger <cg@exept.de>
parents: 1937
diff changeset
  3390
                        parseMethod:src 
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3391
                        in:class 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3392
                        ignoreErrors:true 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3393
                        ignoreWarnings:true.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3394
7711
7e8881bccf72 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7524
diff changeset
  3395
            (parser notNil and:[parser ~~ #Error and:[parser usesSuper]])
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3396
        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3397
            false
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3398
        ]
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3399
    ].
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3400
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3401
    browser := self browseMethodsIn:aCollectionOfClasses
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3402
                              where:searchBlock
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3403
                              title:title.
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3404
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3405
    browser notNil ifTrue:[
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3406
        browser autoSearch:'super' 
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3407
    ].
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3408
    ^ browser
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3409
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3410
    "
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3411
     SystemBrowser
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3412
         browseSuperCallsIn:(Array with:SortedCollection)
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3413
                      title:'superSends in SortedCollection'
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3414
    "
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3415
7711
7e8881bccf72 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7524
diff changeset
  3416
    "Created: / 23-11-1995 / 14:08:55 / cg"
7e8881bccf72 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7524
diff changeset
  3417
    "Modified: / 06-03-2007 / 14:00:12 / cg"
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3418
!
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3419
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3420
browseSuperCallsUnder:aClass
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3421
    "launch a browser for all supersends in aClass and subclasses"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3422
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3423
    ^ self browseSuperCallsIn:(aClass withAllSubclasses)
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3424
                        title:(self classResources string:'Supersends (in and below %1)' with:aClass name)
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3425
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3426
    "
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3427
     SystemBrowser browseSuperCallsUnder:Number
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3428
    "
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3429
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3430
    "Created: 23.11.1995 / 12:06:06 / cg"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3431
    "Modified: 9.12.1995 / 18:11:59 / cg"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3432
!
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3433
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3434
browseUsesOf:aClass
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3435
    |dict owners offsets
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3436
     sz  "{ Class: SmallInteger }"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3437
     n   "{ Class: SmallInteger }"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3438
     removeSet newDict|
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3439
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3440
    owners := ObjectMemory whoReferencesInstancesOf:aClass.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3441
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3442
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3443
     collect set of offsets in dict; key is class
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3444
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3445
    dict := IdentityDictionary new.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3446
    owners do:[:someObject |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3447
        |cls create|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3448
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3449
        someObject isContext ifFalse:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3450
            "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3451
             someObject refers to an instance of aClass;
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3452
             find out, which instVar(s)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3453
            "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3454
            cls := someObject class.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3455
            cls ~~ Array ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3456
                n := cls instSize.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3457
                create := [|s| s := Set new. dict at:cls put:s. s].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3458
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3459
                1 to:n do:[:i |
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3460
                    |ref|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3461
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3462
                    ref := someObject instVarAt:i.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3463
                    (ref isMemberOf:aClass) ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3464
                        offsets := dict at:cls ifAbsent:create.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3465
                        offsets add:i.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3466
                    ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3467
                ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3468
                cls isVariable ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3469
                    cls isPointers ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3470
                        | idx "{ Class: SmallInteger }" |
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3471
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3472
                        sz := someObject basicSize.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3473
                        idx := 1.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3474
                        [idx <= sz] whileTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3475
                            |ref|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3476
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3477
                            ref := someObject basicAt:idx.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3478
                            (ref isMemberOf:aClass) ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3479
                                offsets := dict at:cls ifAbsent:create.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3480
                                offsets add:0.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3481
                                idx := sz
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3482
                            ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3483
                            idx := idx + 1
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3484
                        ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3485
                    ]        
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3486
                ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3487
            ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3488
        ]
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3489
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3490
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3491
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3492
     merge with superclass refs
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3493
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3494
    dict keysAndValuesDo:[:cls :set |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3495
        cls allSuperclasses do:[:aSuperclass |
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3496
            |superSet|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3497
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3498
            superSet := dict at:aSuperclass ifAbsent:[].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3499
            superSet notNil ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3500
                |removeSet|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3501
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3502
                superSet := dict at:aSuperclass.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3503
                removeSet := Set new.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3504
                set do:[:offset |
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3505
                    (superSet includes:offset) ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3506
                        removeSet add:offset
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3507
                    ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3508
                ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3509
                set removeAll:removeSet
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3510
            ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3511
        ]
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3512
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3513
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3514
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3515
     remove empty ones
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3516
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3517
    removeSet := Set new.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3518
    dict keysAndValuesDo:[:cls :set |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3519
        set isEmpty ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3520
            removeSet add:cls
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3521
        ]
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3522
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3523
    removeSet do:[:cls |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3524
        dict removeKey:cls
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3525
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3526
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3527
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3528
     replace the indices by real names
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3529
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3530
    newDict := IdentityDictionary new.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3531
    dict keysAndValuesDo:[:cls :set |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3532
        |newSet names|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3533
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3534
        names := cls allInstVarNames.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3535
        newSet := set collect:[:index | 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3536
                index == 0 ifTrue:['*indexed*'] ifFalse:[names at:index].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3537
        ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3538
        newDict at:cls put:newSet
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3539
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3540
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3541
    newDict inspect
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3542
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  3543
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3544
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3545
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3546
filterToSearchRefsTo:varName classVars:classVars access:accessType
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3547
    "return a searchblock for variable references (obsolete)"
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3548
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3549
    ^ self
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3550
        filterToSearchRefsTo:varName 
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3551
        instVars:(classVars not) 
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3552
        classVars:classVars 
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3553
        globals:false 
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3554
        access:accessType
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3555
!
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3556
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3557
filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3558
    "return a searchblock for variable references"
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3559
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3560
    ^ self
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3561
        filterToSearchRefsTo:varName 
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3562
        classVars:classVars 
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3563
        access:(modsOnly ifTrue:#write ifFalse:#readWrite)
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3564
!
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3565
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3566
filterToSearchRefsTo:varName instVars:doInstVars classVars:doClassVars globals:doGlobals access:accessType
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3567
    "return a searchblock for variable references"
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3568
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3569
    |searchBlock|
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3570
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3571
    searchBlock := [:c :m :s |
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3572
        |src result parser vars instVars classVars globals needMatch|
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3573
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3574
        needMatch := varName includesMatchCharacters.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3575
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3576
        result := false.
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3577
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3578
        src := m source.
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3579
        src notNil ifTrue:[
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3580
            needMatch ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3581
                "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3582
                 before doing a slow parse, quickly scan the
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3583
                 methods source for the variables name ...
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3584
                "
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3585
                (varName includes:$:) ifTrue:[
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3586
                    result := (src findString:(varName copyFrom:(varName lastIndexOf:$:)+1)) ~~ 0.
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3587
                ] ifFalse:[
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3588
                    result := (src findString:varName) ~~ 0.
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3589
                ].
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3590
            ] ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3591
                result := true.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3592
            ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3593
            result ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3594
                result := false.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3595
                parser := Parser
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3596
                                parseMethod:src 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3597
                                in:c 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3598
                                ignoreErrors:true 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3599
                                ignoreWarnings:true.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3600
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3601
                (parser notNil and:[parser ~~ #Error]) ifTrue:[
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3602
                    vars := Set new.    
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3603
                    doInstVars ifTrue:[
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3604
                        accessType == #read ifTrue:[
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3605
                            instVars := parser readInstVars
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3606
                        ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3607
                            accessType == #write ifTrue:[
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3608
                                instVars := parser modifiedInstVars
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3609
                            ] ifFalse:[
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3610
                                instVars := parser usedInstVars
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3611
                            ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3612
                        ].
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3613
                        vars addAll:instVars.
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3614
                    ].
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3615
                    doClassVars ifTrue:[
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3616
                        accessType == #read ifTrue:[
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3617
                            classVars := parser readClassVars
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3618
                        ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3619
                            accessType == #write ifTrue:[
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3620
                                classVars := parser modifiedClassVars
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3621
                            ] ifFalse:[
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3622
                                classVars := parser usedClassVars
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3623
                            ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3624
                        ].
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3625
                        vars addAll:classVars.
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3626
                    ].
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3627
                    doGlobals ifTrue:[
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3628
                        accessType == #read ifTrue:[
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3629
                            globals := parser readGlobals
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3630
                        ] ifFalse:[
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3631
                            accessType == #write ifTrue:[
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3632
                                globals := parser modifiedGlobals
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3633
                            ] ifFalse:[
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3634
                                globals := parser usedGlobals
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3635
                            ]
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3636
                        ].
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3637
                        vars addAll:globals.
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3638
                    ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3639
                    vars size > 0 ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3640
                        needMatch ifTrue:[
7914
d8fa35236729 refactoring
Claus Gittinger <cg@exept.de>
parents: 7847
diff changeset
  3641
                            result := vars contains:[:cv | (varName match:cv)]
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3642
                        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3643
                            result := vars includes:varName
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3644
                        ]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3645
                    ]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3646
                ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3647
            ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3648
        ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3649
        Processor yield.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3650
        result
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3651
    ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3652
    ^ searchBlock
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3653
1190
d265f77ecbc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1143
diff changeset
  3654
    "Modified: 19.6.1997 / 18:27:57 / cg"
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3655
!
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3656
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3657
findAnyResourceIn:aCollectionOfClasses 
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3658
    "return a collection of all methods in aCollectionOfClasses containing any resource."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3659
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3660
    ^ self findMethodsIn:aCollectionOfClasses where:[:c :m :sel | m hasResource ].
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3661
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3662
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3663
     SystemBrowser findAnyResourceIn:(ApplicationModel withAllSubclasses)
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3664
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3665
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3666
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3667
findClassRefsTo:aString in:aCollectionOfClasses access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3668
    "return all methods in aCollectionOfClasses where the classVar named
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3669
     aString is referenced; 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3670
     if modsOnly is true, browse only methods where the classvar is modified"
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3671
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3672
    ^ self findRefsTo:aString classVars:true in:aCollectionOfClasses access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3673
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3674
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3675
findClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3676
    "return all methods in aCollectionOfClasses where the classVar named
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3677
     aString is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3678
     if modsOnly is true, browse only methods where the classvar is modified"
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3679
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3680
    ^ self findRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3681
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3682
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3683
findClassRefsTo:aString inClass:aClass access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3684
    "return all methods in aClass where the classVar named
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3685
     aString is referenced; 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3686
     if modsOnly is true, browse only methods where the classvar is modified"
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3687
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3688
    ^ self findRefsTo:aString classVars:true in:(Array with:aClass) access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3689
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3690
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3691
findClassRefsTo:aString inClass:aClass modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3692
    "return all methods in aClass where the classVar named
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3693
     aString is referenced; 
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3694
     if modsOnly is true, browse only methods where the classvar is modified"
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3695
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3696
    ^ self findRefsTo:aString classVars:true in:(Array with:aClass) modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3697
!
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3698
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3699
findClassRefsTo:aString under:aClass access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3700
    "return all methods in aClass and subclasses
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3701
     where the classVar named aString is referenced; 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3702
     if modsOnly is true, browse only methods where the classvar is modified"
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3703
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3704
    ^ self findClassRefsTo:aString in:(aClass withAllSubclasses) access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3705
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3706
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3707
findClassRefsTo:aString under:aClass modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3708
    "return all methods in aClass and subclasses
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3709
     where the classVar named aString is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3710
     if modsOnly is true, browse only methods where the classvar is modified"
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3711
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3712
    ^ self findClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3713
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3714
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3715
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3716
findCode:aCodeString in:aCollectionOfClasses isMethod:isMethod 
5243
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3717
    "return a collection of all methods in aCollectionOfClasses  
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3718
     containing a matching piece of code.
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3719
     This may be slow, since source-code has to be scanned."
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3720
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3721
    |searchBlock|
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3722
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3723
    searchBlock := self searchBlockForCode:aCodeString isMethod:isMethod.
5226
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  3724
    searchBlock isNil ifTrue:[ ^ nil].
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3725
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3726
!
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3727
5243
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3728
findCode:aCodeString inMethods:aCollectionOfMethods isMethod:isMethod 
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3729
    "return a collection of all methods in aCollectionOfMethods  
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3730
     containing a matching piece of code."
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3731
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3732
    |searchBlock|
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3733
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3734
    searchBlock := self searchBlockForCode:aCodeString isMethod:isMethod.
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3735
    searchBlock isNil ifTrue:[ ^ nil].
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3736
    ^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector].
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3737
!
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3738
8129
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3739
findHelpSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase 
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3740
    "return a collection of all help-spec methods in aCollectionOfClasses  
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3741
     containing a string in their source.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3742
     This may be slow, since source-code has to be scanned."
8129
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3743
    
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3744
    ^ self 
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3745
        findSpecMethodsFor:#help
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3746
        withString:aString
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3747
        in:aCollectionOfClasses
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3748
        ignoreCase:ignoreCase
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3749
!
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3750
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3751
findHelpSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3752
    "return a collection of all help-spec methods in aCollectionOfClasses  
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3753
     containing a string in their source.
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3754
     This may be slow, since source-code has to be scanned."
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3755
    
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3756
    ^ self 
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3757
        findSpecMethodsFor:#help
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3758
        withString:aString
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3759
        in:aCollectionOfClasses
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3760
        ignoreCase:ignoreCase
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  3761
        match:doMatch
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3762
!
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3763
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3764
findImplementors:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3765
    "search for all implementors of aSelector in
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3766
     the classes contained in aCollectionOfClasses and its metaclasses.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3767
     Return a collection of methods"
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3768
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3769
    |list compare testST testJava lcSelector|
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3770
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3771
    list := IdentitySet new.
6051
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3772
    aSelectorMatchString size == 0 ifTrue:[ ^ list ].
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3773
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3774
    doMatch ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3775
        compare := [:sel :search | sel match:search].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3776
    ] ifFalse:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3777
        compare := [:sel :search | sel = search].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3778
    ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3779
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3780
    ignoreCase == true ifTrue:[
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3781
        lcSelector := aSelectorMatchString asLowercase.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3782
7847
bc2f06886dd6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7827
diff changeset
  3783
        testST := [:aSelector :aMethod | (compare value:lcSelector value:(aMethod name ? '') asLowercase) ].
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3784
        testJava := [:aSelector :aMethod | (compare value:aSelector value:aMethod name asLowercase) ].
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3785
    ] ifFalse:[
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3786
        testST := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aSelector) ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3787
        testJava := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aMethod name) ].
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3788
    ].
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3789
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3790
    aCollectionOfClasses do:[:aClass |
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3791
        |testBlock srchBlock|
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3792
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3793
        aClass isObsolete ifFalse:[
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3794
            aClass isJavaClass ifTrue:[
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3795
                testBlock := testJava
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3796
            ] ifFalse:[
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3797
                testBlock := testST
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3798
            ].
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3799
            srchBlock := [:sel :mthd | (testBlock value:sel value:mthd) ifTrue:[ list add:mthd]].
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3800
            aClass methodDictionary keysAndValuesDo:srchBlock.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3801
            aClass isMeta ifFalse:[
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3802
                aClass class methodDictionary keysAndValuesDo:srchBlock
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3803
            ]
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3804
        ]
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3805
    ].
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3806
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3807
    ^ list
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3808
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3809
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3810
     SystemBrowser findImplementorsOf:#+
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3811
                                     in:(Array with:Number
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3812
                                               with:Float
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3813
                                               with:SmallInteger)
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3814
    "
7847
bc2f06886dd6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7827
diff changeset
  3815
bc2f06886dd6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7827
diff changeset
  3816
    "Modified: / 20-09-2007 / 16:02:10 / cg"
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3817
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3818
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3819
findImplementors:aSelectorMatchString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3820
    "search for all implementors of aSelector in
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3821
     the classes contained in aCollectionOfClasses and its metaclasses.
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3822
     Return a collection of methods"
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3823
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3824
    |list compare testST testJava lcSelector|
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3825
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3826
    list := IdentitySet new.
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3827
    aSelectorMatchString size == 0 ifTrue:[ ^ list ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3828
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3829
    doMatch ifTrue:[
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3830
        compare := [:sel :search | sel match:search].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3831
    ] ifFalse:[
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3832
        compare := [:sel :search | sel = search].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3833
    ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3834
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3835
    ignoreCase == true ifTrue:[
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3836
        lcSelector := aSelectorMatchString asLowercase.
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3837
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3838
        testST := [:aSelector :aMethod | (compare value:lcSelector value:aMethod name asLowercase) ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3839
        testJava := [:aSelector :aMethod | (compare value:aSelector value:aMethod name asLowercase) ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3840
    ] ifFalse:[
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3841
        testST := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aSelector) ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3842
        testJava := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aMethod name) ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3843
    ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3844
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3845
    aCollectionOfMethods do:[:eachMethod |
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3846
        |cls sel testBlock|
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3847
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3848
        cls := eachMethod mclass.
7066
43640ba63db6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6955
diff changeset
  3849
        (cls isNil or:[cls isObsolete]) ifFalse:[
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3850
            cls isJavaClass ifTrue:[
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3851
                testBlock := testJava
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3852
            ] ifFalse:[
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3853
                testBlock := testST
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3854
            ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3855
            sel := eachMethod selector.    
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3856
            (testBlock value:sel value:eachMethod) ifTrue:[
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3857
                list add:eachMethod
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3858
            ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3859
        ]
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3860
    ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3861
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3862
    ^ list
7066
43640ba63db6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6955
diff changeset
  3863
43640ba63db6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6955
diff changeset
  3864
    "Modified: / 29-08-2006 / 14:33:42 / cg"
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3865
!
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3866
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3867
findImplementorsMatching:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3868
    "search for all implementors of aSelector in
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3869
     the classes contained in aCollectionOfClasses and its metaclasses.
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3870
     Return a collection of methods"
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3871
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3872
    ^ self findImplementors:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase match:true
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3873
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3874
    "
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3875
     SystemBrowser findImplementorsOf:#+
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3876
                                     in:(Array with:Number
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3877
                                               with:Float
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3878
                                               with:SmallInteger)
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3879
    "
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3880
!
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3881
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3882
findImplementorsMatchingAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3883
    "search for all implementors of any in aCollectionOfSelectors in
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3884
     the classes contained in aCollectionOfClasses and its metaclasses.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3885
     Return a collection of methods.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3886
     CAVEAT: searches multiple times (could be tuned alot if heavily used)"
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3887
6052
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3888
    ^ aCollectionOfSelectors 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3889
        collectAll:[:eachSelector |
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3890
            self findImplementorsMatching:eachSelector 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3891
                 in:aCollectionOfClasses 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3892
                 ignoreCase:ignoreCase.
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3893
        ].
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3894
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3895
"/    |implementors|
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3896
"/
6051
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3897
"/    implementors := IdentitySet new.
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3898
"/    aCollectionOfSelectors do:[:eachSelector |
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3899
"/        implementors addAll:(self findImplementorsMatching:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase).
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3900
"/    ].
6052
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3901
"/    ^ implementors
6051
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3902
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3903
    "
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3904
     self
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3905
        findImplementorsMatchingAny:#( 'at*:' '*size')
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3906
        in:(Smalltalk allClasses) 
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3907
        ignoreCase:true
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3908
    "
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3909
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3910
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3911
findImplementorsOf:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3912
    "search for all implementors of aSelector in
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3913
     the classes contained in aCollectionOfClasses and its metaclasses.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3914
     Return a collection of methods"
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3915
6480
a84b7a241f0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6476
diff changeset
  3916
    ^ self 
a84b7a241f0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6476
diff changeset
  3917
        findImplementors:aSelectorMatchString 
a84b7a241f0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6476
diff changeset
  3918
        in:aCollectionOfClasses 
a84b7a241f0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6476
diff changeset
  3919
        ignoreCase:ignoreCase 
a84b7a241f0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6476
diff changeset
  3920
        match:false
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3921
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3922
    "
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3923
     SystemBrowser findImplementorsOf:#+
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3924
                                   in:(Array with:Number
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3925
                                             with:Float
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3926
                                             with:SmallInteger)
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3927
    "
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3928
!
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3929
2811
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3930
findImplementorsOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3931
    "search for all implementors of any in aCollectionOfSelectors in
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3932
     the classes contained in aCollectionOfClasses and its metaclasses.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3933
     Return a collection of methods.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3934
     CAVEAT: searches multiple times (could be tuned alot if heavily used)"
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3935
6052
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3936
    ^ aCollectionOfSelectors 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3937
        collectAll:[:eachSelector |
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3938
            self findImplementorsOf:eachSelector 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3939
                 in:aCollectionOfClasses 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3940
                 ignoreCase:ignoreCase.
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3941
        ].
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3942
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3943
"/    |implementors|
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3944
"/
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3945
"/    implementors := IdentitySet new.
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3946
"/    aCollectionOfSelectors do:[:eachSelector |
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3947
"/        implementors addAll:(self findImplementorsOf:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase).
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3948
"/    ].
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3949
"/    ^ implementors
2811
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3950
!
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3951
2741
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3952
findInstRefsTo:aString in:aCollectionOfClasses access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3953
    "return all methods in aCollectionOfClasses where the instVar named
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3954
     aString is referenced; 
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3955
     if modsOnly is true, browse only methods where the classvar is modified"
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3956
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3957
    ^ self findRefsTo:aString classVars:false in:aCollectionOfClasses access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3958
!
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3959
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3960
findInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3961
    "return all methods in aCollectionOfClasses where the instVar named
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3962
     aString is referenced; if modsOnly is true, browse only methods where the
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3963
     instvar is modified"
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3964
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3965
    ^ self findRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3966
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3967
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3968
findInstRefsTo:aString inClass:aClass access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3969
    "return all methods in aClass where the instVar named
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3970
     aString is referenced; if modsOnly is true, browse only methods where the
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3971
     instvar is modified"
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3972
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3973
    ^ self findRefsTo:aString classVars:false in:(Array with:aClass) access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3974
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3975
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3976
findInstRefsTo:aString inClass:aClass modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3977
    "return all methods in aClass where the instVar named
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3978
     aString is referenced; if modsOnly is true, browse only methods where the
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3979
     instvar is modified"
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3980
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3981
    ^ self findRefsTo:aString classVars:false in:(Array with:aClass) modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3982
!
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3983
2741
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3984
findInstRefsTo:aString under:aClass access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3985
    "return all methods in aClass and subclasses
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3986
     where the classVar named aString is referenced; 
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3987
     if modsOnly is true, browse only methods where the classvar is modified"
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3988
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3989
    ^ self findInstRefsTo:aString in:(aClass withAllSubclasses) access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3990
!
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3991
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3992
findInstRefsTo:aString under:aClass modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3993
    "return all methods in aClass and subclasses
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3994
     where the instVar named aString is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3995
     if modsOnly is true, browse only methods where the instvar is modified"
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3996
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3997
    ^ self findInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3998
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3999
8129
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4000
findMenuSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase 
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4001
    "return a collection of all menu-spec methods in aCollectionOfClasses  
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4002
     containing a string in their source.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4003
     This may be slow, since source-code has to be scanned."
8129
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4004
    
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4005
    ^ self 
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4006
        findSpecMethodsFor:#menu
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4007
        withString:aString
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4008
        in:aCollectionOfClasses
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4009
        ignoreCase:ignoreCase
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4010
!
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4011
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4012
findMenuSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4013
    "return a collection of all menu-spec methods in aCollectionOfClasses  
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4014
     containing a string in their source.
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4015
     This may be slow, since source-code has to be scanned."
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4016
    
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4017
    ^ self 
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4018
        findSpecMethodsFor:#menu
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4019
        withString:aString
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4020
        in:aCollectionOfClasses
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4021
        ignoreCase:ignoreCase
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4022
        match:doMatch
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4023
!
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4024
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4025
findRefsTo:varName classVars:classVars in:aCollectionOfClasses access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4026
    "return a list of all methods in aCollectionOfClasses where the instVar/classVar named
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4027
     varName is referenced; 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4028
     if modsOnly is true, browse only methods where the instvar is modified"
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4029
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4030
    |filter|
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4031
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4032
    filter := self filterToSearchRefsTo:varName classVars:classVars access:accessType.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4033
    ^ self findMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4034
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4035
    "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4036
     self
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4037
        findRefsTo:'x'
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4038
        classVars:false
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4039
        in:(Array with:Point)
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4040
        modificationsOnly:true
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4041
    "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4042
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4043
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4044
findRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4045
    "return a list of all methods in aCollectionOfClasses where the instVar/classVar named
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4046
     varName is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4047
     if modsOnly is true, browse only methods where the instvar is modified"
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4048
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4049
    |filter|
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4050
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4051
    filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly.
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4052
    ^ self findMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter.
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4053
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4054
    "
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4055
     self
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4056
        findRefsTo:'x'
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4057
        classVars:false
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4058
        in:(Array with:Point)
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4059
        modificationsOnly:true
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4060
    "
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4061
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4062
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4063
findResource:aResourceSymbolOrCollectionOfSymbols in:aCollectionOfClasses 
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4064
    "return a collection of all methods in aCollectionOfClasses  
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4065
     containing a resource."
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4066
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4067
    |searchBlock|
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4068
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4069
    aResourceSymbolOrCollectionOfSymbols isSymbol ifTrue:[
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4070
        searchBlock := [:c :m :sel | |resources|
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4071
                            (resources := m resources) size > 0
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4072
                            and:[resources includesKey:aResourceSymbolOrCollectionOfSymbols]
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4073
                       ].
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4074
    ] ifFalse:[
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4075
        searchBlock := [:c :m :sel | |resources|
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4076
                            (resources := m resources) size > 0
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4077
                            and:[resources keys includesAny:aResourceSymbolOrCollectionOfSymbols]
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4078
                       ].
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4079
    ].
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4080
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4081
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4082
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4083
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4084
     SystemBrowser findResource:#image in:(ApplicationModel withAllSubclasses)
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4085
     SystemBrowser findResource:#menu in:(ApplicationModel withAllSubclasses)
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4086
     SystemBrowser findResource:#(menu programMenu) in:(ApplicationModel withAllSubclasses)
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4087
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4088
!
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4089
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4090
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4091
    "search for all senders of aSelector in
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4092
     the classes contained in aCollectionOfClasses and its metaclasses.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4093
     Return a collection of methods"
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4094
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4095
    ^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4096
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4097
    "
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4098
     SystemBrowser findSendersOf:#+
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4099
                   in:(Array with:Number
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4100
                             with:Float
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4101
                             with:SmallInteger)
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4102
                   ignoreCase:false
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4103
    "
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4104
!
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4105
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4106
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4107
    "search for all senders of aSelector in
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4108
     the classes contained in aCollectionOfClasses and its metaclasses.
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4109
     Return a collection of methods"
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4110
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4111
    ^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4112
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4113
    "
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4114
     SystemBrowser findSendersOf:#+
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4115
                   in:(Array with:Number
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4116
                             with:Float
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4117
                             with:SmallInteger)
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4118
                   ignoreCase:false
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4119
    "
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4120
!
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4121
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4122
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4123
    "search for all senders of aSelector in aCollectionOfMethods.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4124
     Return a collection of methods"
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4125
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4126
    |searchBlock|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4127
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4128
    searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4129
    ^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4130
!
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4131
4350
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4132
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4133
    "search for all senders of aSelector in aCollectionOfMethods.
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4134
     Return a collection of methods"
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4135
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4136
    |searchBlock|
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4137
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4138
    searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch.
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4139
    ^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector].
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4140
!
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4141
2811
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4142
findSendersOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4143
    "search for all senders of any selector in aCollectionOfSelectors in
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4144
     the classes contained in aCollectionOfClasses and its metaclasses.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4145
     Return a collection of methods.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4146
     CAVEAT: searches multiple times (could be tuned alot if heavily used)"
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4147
6052
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4148
    ^ aCollectionOfSelectors 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4149
        collectAll:[:eachSelector |
6184
bcb22487bc67 senders of any - duplicates
Claus Gittinger <cg@exept.de>
parents: 6134
diff changeset
  4150
            (self allCallsOn:eachSelector 
6052
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4151
                 in:aCollectionOfClasses 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4152
                 ignoreCase:ignoreCase
6184
bcb22487bc67 senders of any - duplicates
Claus Gittinger <cg@exept.de>
parents: 6134
diff changeset
  4153
                 match:false) asSet.
6052
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4154
        ].
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4155
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4156
"/    |allSenders|
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4157
"/
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4158
"/    allSenders := IdentitySet new.
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4159
"/    aCollectionOfSelectors do:[:eachSelector |
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4160
"/        allSenders addAll:(self allCallsOn:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase match:true)
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4161
"/    ].
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4162
"/    ^ allSenders
2811
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4163
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4164
    "
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4165
     SystemBrowser findSendersOfAny:#(#'+' #'-')
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4166
                   in:(Array with:Number
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4167
                             with:Float
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4168
                             with:SmallInteger)
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4169
                   ignoreCase:false  
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4170
    "
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4171
!
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4172
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4173
findSpecMethodsFor:specSymbol withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4174
    "return a collection of all specSymbol-spec methods in aCollectionOfClasses  
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4175
     containing a string in their source.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4176
     This may be slow, since source-code has to be scanned."
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4177
8129
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4178
    self 
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4179
        findSpecMethodsFor:specSymbol 
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4180
        withString:aString 
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4181
        in:aCollectionOfClasses 
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4182
        ignoreCase:ignoreCase
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4183
        match:true
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4184
!
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4185
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4186
findSpecMethodsFor:specSymbol withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4187
    "return a collection of all specSymbol-spec methods in aCollectionOfClasses  
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4188
     containing a string in their source.
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4189
     This may be slow, since source-code has to be scanned."
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4190
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4191
    |searchBlock innerSearchBlock|
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4192
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4193
    innerSearchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch.
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4194
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4195
    searchBlock := [:c :m :sel | 
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4196
                            |resources| 
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4197
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4198
                            ((resources := m resources) size > 0
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4199
                            and:[resources includesKey:specSymbol]) ifTrue:[
8129
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4200
                                innerSearchBlock value:c value:m value:sel
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4201
                            ]
8129
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4202
                       ].
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4203
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4204
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4205
!
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4206
8129
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4207
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase 
5243
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  4208
    "return a collection of all methods in aCollectionOfClasses  
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4209
     containing a string in their source.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4210
     This may be slow, since source-code has to be scanned."
8129
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4211
    
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4212
    ^ self 
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4213
        findString:aString
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4214
        in:aCollectionOfClasses
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4215
        ignoreCase:ignoreCase
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4216
        match:true
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4217
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4218
    "
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4219
     SystemBrowser findString:'should' in:(Array with:Object) ignoreCase:false
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4220
    "
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4221
!
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4222
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4223
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
5243
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  4224
    "return a collection of all methods in aCollectionOfClasses  
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4225
     containing a string in their source.
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4226
     This may be slow, since source-code has to be scanned."
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4227
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4228
    |searchBlock|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4229
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4230
    searchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4231
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4232
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4233
    "
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4234
     SystemBrowser findString:'should'   in:(Array with:Object) ignoreCase:false
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4235
    "
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4236
!
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4237
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4238
findString:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch
5243
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  4239
    "return a collection of all methods in aCollectionOfClasses  
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4240
     containing a string in their source.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4241
     This may be slow, since source-code has to be scanned."
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4242
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4243
    |searchBlock|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4244
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4245
    searchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4246
    ^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4247
!
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4248
5877
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4249
findStringLiteral:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4250
    "return a collection of all methods in aCollectionOfClasses  
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4251
     containing a string in any of their string-literals."
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4252
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4253
    |searchBlock|
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4254
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4255
    searchBlock := self searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch.
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4256
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4257
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4258
    "
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4259
     SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4260
    "
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4261
!
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4262
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4263
findStringLiteral:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4264
    "return a collection of all methods in aCollectionOfClasses  
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4265
     containing a string in any of their string-literals."
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4266
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4267
    |searchBlock|
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4268
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4269
    searchBlock := self searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch.
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4270
    ^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector].
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4271
!
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4272
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4273
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4274
    ^ self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:true
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4275
!
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4276
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4277
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4278
    |sel searchBlock lcString quickMatch|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4279
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4280
    (doMatch
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4281
     and:[(aSelectorString ~= '*') 
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4282
     and:[(aSelectorString includesMatchCharacters or:[ignoreCase])]]) ifTrue:[
8685
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4283
        "/ a matchString or ignoreCase - need string matching procedure
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4284
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4285
        ignoreCase ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4286
            lcString := aSelectorString asLowercase.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4287
        ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4288
            lcString := aSelectorString.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4289
        ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4290
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4291
        quickMatch := aSelectorString.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4292
        (quickMatch startsWith:'*') ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4293
            quickMatch := quickMatch copyFrom:2
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4294
        ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4295
        (quickMatch endsWith:'*') ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4296
            quickMatch := quickMatch copyWithoutLast:1
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4297
        ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4298
        (quickMatch includes:$:) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4299
            quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4300
        ].
8685
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4301
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4302
        (ignoreCase not and:[quickMatch includesMatchCharacters not]) ifTrue:[
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4303
            searchBlock := [:class :method :s |
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4304
                            |src inLiterals|
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4305
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4306
                            inLiterals := false.
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4307
                            method isLazyMethod ifTrue:[
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4308
                                src := method source.
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4309
                                (src notNil and:[src includesString:quickMatch]) ifTrue:[
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4310
                                    method makeRealMethod.
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4311
                                    inLiterals := (method 
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4312
                                                    literalsDetect:[:aLiteral|
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4313
                                                        (aLiteral isMemberOf:Symbol) 
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4314
                                                        and:[(lcString includesString:quickMatch)
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4315
                                                        and:[(lcString match:aLiteral)]]] 
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4316
                                                    ifNone:nil) notNil
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4317
                                ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4318
                            ] ifFalse:[
8685
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4319
                                inLiterals := (method 
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4320
                                                    literalsDetect:[:aLiteral|
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4321
                                                        (aLiteral isMemberOf:Symbol) 
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4322
                                                        and:[(lcString includesString:quickMatch)
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4323
                                                        and:[(lcString match:aLiteral)]]] 
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4324
                                                    ifNone:nil) notNil
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4325
                            ].
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4326
                            inLiterals 
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4327
                            and:[ method messagesSent contains:[:anySelector | aSelectorString match:anySelector ignoreCase:ignoreCase] ]
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4328
                       ].
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4329
        ] ifFalse:[ 
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4330
            searchBlock := [:class :method :s |
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4331
                            |src inLiterals|
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4332
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4333
                            "/ expensive search
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4334
                            inLiterals := false.
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4335
                            method isLazyMethod ifTrue:[
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4336
                                src := method source.
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4337
                                (src notNil and:[src includesMatchString:aSelectorString]) ifTrue:[
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4338
                                    method makeRealMethod.
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4339
                                    inLiterals := (method 
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4340
                                                    literalsDetect:[:aLiteral|
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4341
                                                        (aLiteral isMemberOf:Symbol) 
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4342
                                                        and:[(ignoreCase and:[lcString match:aLiteral asLowercase])
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4343
                                                            or:[ignoreCase not and:[lcString match:aLiteral]]]] 
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4344
                                                    ifNone:nil) notNil
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4345
                                ]
8685
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4346
                            ] ifFalse:[
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4347
                                inLiterals := (method literalsDetect:[:aLiteral|
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4348
                                                        (aLiteral isMemberOf:Symbol) 
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4349
                                                        and:[(ignoreCase and:[lcString match:aLiteral asLowercase])
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4350
                                                            or:[ignoreCase not and:[lcString match:aLiteral]]]] 
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4351
                                                    ifNone:nil) notNil
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4352
                            ].
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4353
                            inLiterals
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4354
                            and:[ method messagesSent contains:[:anySelector | aSelectorString match:anySelector ignoreCase:ignoreCase] ]
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4355
                       ].
8685
b39dc53c40ae dont be too lazy in senders-search (do not return all accesses to
Claus Gittinger <cg@exept.de>
parents: 8678
diff changeset
  4356
        ].
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4357
    ] ifFalse:[
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4358
        (doMatch and:[aSelectorString = '*']) ifTrue:[
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4359
            searchBlock := [:class :method :s | true].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4360
        ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4361
            "/ no matchString - can do it much faster
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4362
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4363
            sel := aSelectorString asSymbolIfInterned.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4364
            sel isNil ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4365
                ^ nil     "/ none
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4366
            ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4367
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4368
            quickMatch := sel.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4369
            (quickMatch includes:$:) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4370
                quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4371
            ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4372
            searchBlock := [:class :method :s |
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4373
                                |src|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4374
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4375
                                method isLazyMethod ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4376
                                    src := method source.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4377
                                    (src notNil and:[src includesString:quickMatch]) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4378
                                        method makeRealMethod.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4379
                                        method sends:sel.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4380
                                    ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4381
                                        false
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4382
                                    ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4383
                                ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4384
                                    method sends:sel
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4385
                                ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4386
                           ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4387
        ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4388
    ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4389
    ^ searchBlock
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4390
!
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4391
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4392
searchBlockForCode:aCodeString isMethod:isMethod
7395
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4393
    "return a block to search for a piece of code (intelligent search)."
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4394
6581
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4395
    |errAction searchTree searcher globalVariablesUsed usedSymbols
8281
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4396
     sentMessages searchBlock foundMatch numMethodArgs methodSelector|
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4397
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4398
"/self halt.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4399
"/rule := ParseTreeLintRule 
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4400
"/    createParseTreeRule: (Array with: aCodeString)
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4401
"/    method: isMethod
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4402
"/    name: 'Search for: ' , aCodeString.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4403
"/self halt.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4404
"/
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4405
"/    searchBlock := [:c :m :sel | 
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4406
"/        rslt := SmalllintChecker
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4407
"/            runRule:rule
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4408
"/            onEnvironment: (ClassEnvironment onEnvironment:(BrowserEnvironment new) classes:(Array with:c)).
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4409
"/        
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4410
"/        self halt.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4411
"/    ].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4412
"/^ searchBlock.
5226
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  4413
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  4414
    errAction := [:str :pos | 
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  4415
                    Dialog warn:'Error during parse: ' , str , ' (position ' , pos printString , ')'.
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  4416
                    ^ nil
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  4417
                 ].
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4418
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4419
    isMethod ifTrue:[
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4420
        searchTree := RBParser 
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4421
                    parseRewriteMethod:aCodeString 
5226
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  4422
                    onError: errAction.
8281
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4423
        numMethodArgs := searchTree arguments size.
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4424
        methodSelector := searchTree selector.
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4425
    ] ifFalse:[
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4426
        searchTree := RBParser 
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4427
                    parseRewriteExpression:aCodeString 
5226
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  4428
                    onError: errAction.
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4429
    ].
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4430
6368
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4431
    Error handle:[:ex |
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4432
    ] do:[
6549
cd47faed29f6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6546
diff changeset
  4433
        sentMessages := searchTree sentMessages.         
5135
d844ec803124 improved code search
Claus Gittinger <cg@exept.de>
parents: 5112
diff changeset
  4434
    ].
6581
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4435
6549
cd47faed29f6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6546
diff changeset
  4436
    globalVariablesUsed := searchTree referencedVariables 
5251
847d633792ce tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents: 5243
diff changeset
  4437
                    select:[:node | 
847d633792ce tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents: 5243
diff changeset
  4438
                                node isPatternNode not
847d633792ce tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents: 5243
diff changeset
  4439
                                and:[ Smalltalk includesKey: node name asSymbol ]
847d633792ce tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents: 5243
diff changeset
  4440
                           ]   
847d633792ce tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents: 5243
diff changeset
  4441
                    thenCollect:[:node | node name asSymbol]. 
5135
d844ec803124 improved code search
Claus Gittinger <cg@exept.de>
parents: 5112
diff changeset
  4442
6581
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4443
    usedSymbols := searchTree usedSymbols.
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4444
7395
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4445
    "/ cannot use literals to speedup the search, because stc does not store
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4446
    "/ constants in the literal-array.
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4447
    "/ literalsUsed := searchTree usedLiterals.
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4448
    "/ literalsUsed := literalsUsed select:[:lit | lit isString].
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4449
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4450
    searcher := ParseTreeSearcher new.
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4451
    isMethod ifTrue:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4452
        searcher 
8281
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4453
            matchesMethod:aCodeString
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4454
            do:[:aNode :answer | foundMatch := true].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4455
    ] ifFalse:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4456
        searcher 
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4457
            matchesTree:searchTree
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4458
            do:[:aNode :answer | foundMatch := true].
6303
47c12063b000 Fix BC-Compile error
Stefan Vogel <sv@exept.de>
parents: 6184
diff changeset
  4459
    ].
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4460
6581
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4461
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4462
    searchBlock := [:c :m :sel | 
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4463
                        |allSelectorsInLiteralArray allMessagesSent 
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4464
                         allGlobalsReferenced allUsedSymbolsInLiteralArray allSent src rslt parseTree|       
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4465
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4466
                        foundMatch := false.
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4467
8281
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4468
                        "/ can speedup the search, by filtering for number of message-args first...
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4469
                        (isMethod not 
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4470
                        or:[ numMethodArgs isNil
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4471
                        or:[ numMethodArgs == m numArgs ]]) ifTrue:[
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4472
                            m isLazyMethod ifTrue:[
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4473
                                src := m source.
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4474
                                src notNil ifTrue:[
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4475
                                    m makeRealMethod.
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4476
                                ].
5135
d844ec803124 improved code search
Claus Gittinger <cg@exept.de>
parents: 5112
diff changeset
  4477
                            ].
8281
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4478
                            "/ can speedup the search, by filtering for sent messages first...
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4479
                            allSelectorsInLiteralArray := sentMessages isEmptyOrNil or:[ m literals includesAll:sentMessages ].
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4480
                            allSelectorsInLiteralArray ifTrue:[
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4481
                                allUsedSymbolsInLiteralArray := usedSymbols isEmptyOrNil or:[ m literals includesAll:usedSymbols ].
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4482
                                allUsedSymbolsInLiteralArray ifTrue:[
8505
dd4cfeb8d6ad allGlobalsReferenced before allMessagesSent in #searchBlockForCode:isMethod:
fm
parents: 8478
diff changeset
  4483
                                    allGlobalsReferenced := globalVariablesUsed conform:[:varName | m referencesGlobal:varName].
dd4cfeb8d6ad allGlobalsReferenced before allMessagesSent in #searchBlockForCode:isMethod:
fm
parents: 8478
diff changeset
  4484
                                    allGlobalsReferenced ifTrue:[
dd4cfeb8d6ad allGlobalsReferenced before allMessagesSent in #searchBlockForCode:isMethod:
fm
parents: 8478
diff changeset
  4485
                                        allMessagesSent := sentMessages isEmptyOrNil or:[ m messages includesAll:sentMessages ].
dd4cfeb8d6ad allGlobalsReferenced before allMessagesSent in #searchBlockForCode:isMethod:
fm
parents: 8478
diff changeset
  4486
                                        allMessagesSent ifTrue:[
8281
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4487
                                            allSent := sentMessages conform:[:sel | (m sends:sel)].
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4488
                                            allSent ifTrue:[
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4489
                                                src := m source.
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4490
                                                src isNil ifTrue:[
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4491
                                                    ('Browser [info]: no source for ' , m printString) infoPrintCR.
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4492
                                                    false
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4493
                                                ] ifFalse:[
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4494
                                                    parseTree := RBParser 
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4495
                                                                    parseSearchMethod:src 
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4496
                                                                    onError: [:str :pos | 
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4497
                                                                        Transcript show:'Error in '; showCR:m. 
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4498
                                                                        Transcript showCR:str. 
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4499
                                                                        Transcript showCR:pos. 
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4500
                                                                        nil].
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4501
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4502
                                                    parseTree notNil ifTrue:[
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4503
                                                        false "isMethod" ifTrue:[
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4504
                                                            rslt := searcher executeMethod:parseTree.
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4505
                                                        ] ifFalse:[
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4506
                                                            rslt := searcher executeTree:parseTree.
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4507
                                                        ].
67f0cd20adf0 method-code search tuned: filter by number of methodArgs, if known.
Claus Gittinger <cg@exept.de>
parents: 8158
diff changeset
  4508
                                                    ]
6552
343882b29fec code search bug - leftover foundMatch flag (must be cleared)
Claus Gittinger <cg@exept.de>
parents: 6549
diff changeset
  4509
                                                ]
6368
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4510
                                            ]
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4511
                                        ]
5251
847d633792ce tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents: 5243
diff changeset
  4512
                                    ]
5135
d844ec803124 improved code search
Claus Gittinger <cg@exept.de>
parents: 5112
diff changeset
  4513
                                ]
6581
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4514
                            ]
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4515
                        ].
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4516
                        foundMatch.
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4517
                   ].
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4518
    ^ searchBlock.
7395
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4519
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4520
    "Modified: / 12-10-2006 / 21:30:05 / cg"
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4521
!
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4522
9002
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4523
searchBlockForReferendsOf:aGlobalName
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4524
    "return a block which searches for all methods which reference a global named aGlobalName,
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4525
     which may be a matchpattern"
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4526
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4527
    |globalsPlainName idx matchingGlobalNames|
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4528
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4529
    globalsPlainName := aGlobalName.
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4530
    (idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4531
        globalsPlainName := globalsPlainName copyFrom:idx+1.
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4532
        (globalsPlainName size == 0
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4533
        or:[globalsPlainName = '*']) ifTrue:[
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4534
            globalsPlainName := aGlobalName
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4535
        ]
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4536
    ].
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4537
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4538
    matchingGlobalNames := OrderedCollection new.
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4539
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4540
    aGlobalName includesMatchCharacters ifFalse:[
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4541
        ^ [:cls :mthd :sel |
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4542
            |sym mSource|
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4543
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4544
            (sym := aGlobalName asSymbolIfInterned) isNil ifTrue:[
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4545
                false
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4546
            ] ifFalse:[
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4547
                "/ kludge: Lazy methods do not include symbols in the literal array - sigh
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4548
                mthd isLazyMethod ifTrue:[
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4549
                    mSource := mthd source.
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4550
                    (mSource notNil
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4551
                    and:[(mSource includesString:sym)
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4552
                    and:[mthd usedGlobals includes:sym]])
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4553
                ] ifFalse:[ 
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4554
                    ((mthd refersToLiteral:sym) 
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4555
                    and:[mthd usedGlobals includes:sym])
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4556
                ]
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4557
            ]
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4558
        ].
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4559
    ].
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4560
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4561
    ^ [:cls :mthd :sel | 
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4562
        |mSource usedGlobals global|
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4563
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4564
        "/ kludge: Lazy methods do not include symbols in the literal array - sigh
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4565
        mthd isLazyMethod ifTrue:[
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4566
            mSource := mthd source.
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4567
            mSource notNil ifTrue:[
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4568
                usedGlobals := mthd usedGlobals
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4569
            ]
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4570
        ] ifFalse:[
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4571
            (mthd literals contains:[:lit | aGlobalName match:lit]) ifTrue:[
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4572
                usedGlobals := mthd usedGlobals
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4573
            ].
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4574
        ].
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4575
        usedGlobals notNil ifTrue:[
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4576
            global := usedGlobals detect:[:lit | aGlobalName match:lit] ifNone:nil.
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4577
            global notNil ifTrue:[
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4578
                matchingGlobalNames add:global.
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4579
            ]
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4580
        ].
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4581
        global notNil
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4582
    ].
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4583
!
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  4584
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4585
searchBlockForString:aString ignoreCase:ignoreCase match:doMatch
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4586
    "return a block to search for a string."
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4587
8129
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4588
    |searchBlock s|
5891
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4589
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4590
    (doMatch and:[ aString includesMatchCharacters ]) ifTrue:[
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4591
        s := '*' , aString , '*'.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4592
        "a matchString"
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4593
        searchBlock := [:c :m :sel | 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4594
                            |src|       
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4595
                            src := m source.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4596
                            src isNil ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4597
                                ('Browser [info]: no source for ' , m printString) infoPrintCR.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4598
                                false
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4599
                            ] ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4600
                                s match:src ignoreCase:ignoreCase
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4601
                            ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4602
                       ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4603
    ] ifFalse:[
8129
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4604
        searchBlock := 
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4605
            [:c :m :sel | 
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4606
                |src|
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4607
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4608
                src := m source.
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4609
                src isNil ifTrue:[
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4610
                    ('Browser [info]: no source for ' , m printString) infoPrintCR.
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4611
                    false
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4612
                ] ifFalse:[
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4613
                    (src findString:aString ignoreCase:ignoreCase) ~~ 0
9bb5ca89393a find code cleanup
Claus Gittinger <cg@exept.de>
parents: 8047
diff changeset
  4614
                ]
5891
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4615
           ]
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4616
    ].
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4617
    ^ searchBlock.
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4618
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4619
    "
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4620
     SystemBrowser findString:'should'   in:(Array with:Object) ignoreCase:false
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4621
    "
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4622
!
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4623
5877
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4624
searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4625
    "return a block to search for a string-literal."
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4626
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4627
    |searchBlock s|
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4628
5891
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4629
    (doMatch and:[ aString includesMatchCharacters]) ifTrue:[
5877
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4630
        s := '*' , aString , '*'.
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4631
        "a matchString"
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4632
        searchBlock := [:c :m :sel | 
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4633
                            |lits|       
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4634
                            lits := m literals ? #().
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4635
                            lits contains:[:lit |
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4636
                                lit isString
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4637
                                and:[lit isSymbol not
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4638
                                and:[s match:lit ignoreCase:ignoreCase]]
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4639
                            ]
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4640
                       ]
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4641
    ] ifFalse:[
5891
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4642
        ignoreCase ifTrue:[
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4643
            s := aString asLowercase.
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4644
            searchBlock := [:c :m :sel | 
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4645
                                |lits|       
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4646
                                lits := m literals ? #().
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4647
                                lits contains:[:lit |
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4648
                                    lit isString
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4649
                                    and:[lit isSymbol not
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4650
                                    and:[s = lit asLowercase]]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4651
                                ]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4652
                           ]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4653
        ] ifFalse:[
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4654
            searchBlock := [:c :m :sel | 
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4655
                                |lits|       
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4656
                                lits := m literals ? #().
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4657
                                lits contains:[:lit |
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4658
                                    lit isString
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4659
                                    and:[lit isSymbol not
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4660
                                    and:[s = lit]]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4661
                                ]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4662
                           ]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4663
        ].
5877
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4664
    ].
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4665
    ^ searchBlock.
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4666
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4667
    "
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4668
     SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:true
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4669
     SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4670
     SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:true
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4671
     SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:false
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4672
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4673
! !
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4674
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  4675
!SystemBrowser class methodsFor:'startup'!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4676
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4677
browseAllSelect:aBlock
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4678
    "launch a browser for all methods where aBlock returns true.
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4679
     The block is called with 3 arguments, class, method and selector."
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4680
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4681
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4682
        browseMethodsWhere:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4683
        title:'selected messages'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4684
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4685
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4686
     SystemBrowser browseAllSelect:[:aClass :aMethod :selector | selector numArgs == 3]
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4687
    "
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4688
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4689
    "Modified: 24.1.1997 / 19:45:05 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4690
!
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  4691
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4692
browseClass:aClass
4490
de7216d4a28a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4350
diff changeset
  4693
    "launch a browser for aClass.
de7216d4a28a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4350
diff changeset
  4694
     Notice: better go via Smalltalk browseClass:, which honors the tool-preferences"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4695
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4696
    ^ self 
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4697
        newWithLabel:aClass name
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4698
        setupSelector:#setupForClass:
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4699
        arg:aClass
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4700
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4701
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4702
     SystemBrowser browseClass:Object
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4703
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4704
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4705
    "Modified: 24.1.1997 / 19:45:16 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4706
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4707
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4708
browseClass:aClass methodCategory:aCategory
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4709
    "launch a browser for all methods under aCategory in aClass"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4710
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4711
    ^ self newWithLabel:(aClass name , ' ' , aCategory)
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4712
          setupBlock:[:browser | browser setupForClass:aClass methodCategory:aCategory]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4713
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4714
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4715
     SystemBrowser browseClass:String methodCategory:'copying'
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4716
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4717
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4718
    "Modified: 24.1.1997 / 19:45:23 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4719
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4720
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4721
browseClass:aClass selector:selector
4490
de7216d4a28a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4350
diff changeset
  4722
    "launch a browser for the method at selector in aClass."
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4723
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4724
    ^ self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4725
        newWithLabel:(aClass name , ' ' , selector , ' ' , selector)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4726
        setupBlock:[:newBrowser | newBrowser setupForClass:aClass selector:selector]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4727
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4728
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4729
     SystemBrowser browseClass:Object selector:#printString
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4730
    "
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4731
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4732
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4733
browseClassCategory:aClassCategory
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4734
    "launch a browser for all classes under aCategory"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4735
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4736
    ^ self 
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4737
        newWithLabel:aClassCategory
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4738
        setupSelector:#setupForClassCategory:
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4739
        arg:aClassCategory
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4740
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4741
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4742
     SystemBrowser browseClassCategory:'Kernel-Objects'
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4743
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4744
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4745
    "Modified: 24.1.1997 / 19:45:32 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4746
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4747
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4748
browseClassHierarchy:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4749
    "launch a browser for aClass and all its superclasses.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4750
     this is different from the fullProtocol browser."
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4751
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4752
    ^ self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4753
        newWithLabel:(aClass name , '-' , 'hierarchy')
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4754
        setupSelector:#setupForClassHierarchy:
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4755
        arg:aClass
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4756
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4757
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4758
     SystemBrowser browseClassHierarchy:Number
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4759
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4760
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4761
8702
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4762
browseClasses:aList label:title
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4763
    "launch a browser for all classes in aList"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4764
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4765
    ^ self 
576
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4766
        newWithLabel:title
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4767
        setupBlock:[:b | b setupForClassList:aList sort:true]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4768
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4769
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4770
     SystemBrowser browseClasses:(Array with:Object
576
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4771
                                        with:Float)
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4772
                           title:'two classes'
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4773
    "
576
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4774
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4775
    "Modified: 28.5.1996 / 13:52:25 / cg"
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4776
!
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4777
8702
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4778
browseClasses:aList label:title sort:doSort
576
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4779
    "launch a browser for all classes in aList"
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4780
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4781
    ^ self 
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4782
        newWithLabel:title
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4783
        setupBlock:[:b | b setupForClassList:aList sort:doSort]
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4784
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4785
    "
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4786
     SystemBrowser browseClasses:(Array with:Object
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4787
                                        with:Float)
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4788
                           title:'two classes'
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4789
    "
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4790
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4791
    "Created: 28.5.1996 / 13:52:09 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  4792
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  4793
8702
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4794
browseClasses:aList title:title
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4795
    <resource: #obsolete>
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4796
    "launch a browser for all classes in aList"
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4797
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4798
    self obsoleteMethodWarning.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4799
    ^ self browseClasses:aList label:title
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4800
!
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4801
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4802
browseClasses:aList title:title sort:doSort
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4803
    <resource: #obsolete>
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4804
    "launch a browser for all classes in aList"
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4805
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4806
    self obsoleteMethodWarning.
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4807
    ^ self browseClasses:aList label:title sort:doSort
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4808
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4809
    "Created: 28.5.1996 / 13:52:09 / cg"
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4810
!
93616c89ade0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8688
diff changeset
  4811
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4812
browseFullClassProtocol:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4813
    "launch a browser for aClasses full protocol.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4814
     This is different from hierarchy browsing."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4815
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4816
    ^ self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4817
        newWithLabel:(aClass name , '-' , 'full protocol')
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4818
        setupSelector:#setupForFullClassProtocol:
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4819
        arg:aClass
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4820
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4821
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4822
     SystemBrowser browseFullClassProtocol:Number
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4823
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4824
!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4825
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4826
browseFullClasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4827
    "launch a browser showing all methods at once"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4828
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4829
    ^ self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4830
        newWithLabel:'Full Class Browser'
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4831
        setupBlock:[:newBrowser | newBrowser setupForFullClass]
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4832
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4833
    "SystemBrowser browseFullClasses"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4834
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4835
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4836
browseInstMethodsFrom:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4837
    "launch a browser for all instance methods in aClass and all subclasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4838
     where aBlock evaluates to true"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4839
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4840
    ^ self      
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4841
        browseMethodsIn:(aClass withAllSubclasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4842
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4843
        class:false 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4844
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4845
        title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4846
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4847
    "Modified: 24.1.1997 / 19:44:45 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4848
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4849
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4850
browseInstMethodsIn:aCollectionOfClasses where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4851
    "launch a browser for all instance methods of all classes in
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4852
     aCollectionOfClasses where aBlock evaluates to true"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4853
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4854
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4855
        browseMethodsIn:aCollectionOfClasses 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4856
        inst:true class:false 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4857
        where:aBlock title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4858
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4859
    "Modified: 24.1.1997 / 19:43:41 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4860
!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4861
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4862
browseInstMethodsOf:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4863
    "launch a browser for all instance methods in aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4864
     where aBlock evaluates to true"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4865
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4866
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4867
        browseMethodsIn:(Array with:aClass) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4868
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4869
        class:false 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4870
        where:aBlock title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4871
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4872
    "Modified: 24.1.1997 / 19:43:50 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4873
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4874
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4875
browseMethodCategory:aCategory
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4876
    "launch a browser for all methods where category = aCategory"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4877
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4878
    |searchBlock|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4879
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4880
    aCategory includesMatchCharacters ifTrue:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4881
        searchBlock := [:c :m :s | aCategory match:m category].
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4882
    ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4883
        searchBlock := [:c :m :s | m category = aCategory]
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4884
    ].
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4885
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4886
    ^ self browseMethodsWhere:searchBlock title:('all methods with category of ' , aCategory)
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4887
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4888
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4889
     SystemBrowser browseMethodCategory:'printing & storing'
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4890
     SystemBrowser browseMethodCategory:'print*'
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4891
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4892
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4893
3666
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4894
browseMethods:aListOfMethods
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4895
    "launch a multi-method browser."
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4896
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4897
    ^ self browseMethods:aListOfMethods title:'some methods'
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4898
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4899
    "
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4900
     self 
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4901
        browseMethods:(Array with:(Array compiledMethodAt:#at:)
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4902
                             with:(OrderedCollection compiledMethodAt:#at:))
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4903
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4904
     self 
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4905
        browseMethods:(Array with:(Array compiledMethodAt:#at:)
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4906
                             with:(Array compiledMethodAt:#at:put:))
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4907
    "
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4908
!
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4909
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4910
browseMethods:aList title:aString
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4911
    "launch a browser for an explicit list of class/selectors.
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4912
     Each entry in the list can be either a method, or a string
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4913
     consisting of the classes name and the selector, separated by spaces. 
634
24a678f81829 Change the name of a classes Metaclass from e.g. "SmallIntegerclass" to
Stefan Vogel <sv@exept.de>
parents: 620
diff changeset
  4914
     For class methods, the string ' class' must be appended to the classname."
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4915
1919
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4916
    ^ self
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4917
        browseMethods:aList
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4918
        title:aString
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4919
        sort:true
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4920
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4921
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4922
    "
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4923
     SystemBrowser 
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4924
        browseMethods:#('Object printOn:' 'Collection add:')
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4925
        title:'some methods'
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4926
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4927
     SystemBrowser 
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4928
        browseMethods:#('Behavior new:' 'Setclass new:')
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4929
        title:'some new: methods'
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4930
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4931
     SystemBrowser 
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4932
        browseMethods:(Array with:(Object compiledMethodAt:#printOn:)
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4933
                             with:(Collection compiledMethodAt:#add:)
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4934
                             with:(Object class compiledMethodAt:#initialize))
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4935
        title:'some methods'
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4936
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4937
    "
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4938
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4939
    "Modified: 1.11.1996 / 16:30:17 / cg"
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4940
!
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4941
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4942
browseMethods:aList title:aString sort:doSort
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4943
    "launch a browser for an explicit list of class/selectors.
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4944
     Each entry in the list can be either a method, or a string
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4945
     consisting of the classes name and the selector, separated by spaces. 
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4946
     For class methods, the string ' class' must be appended to the classname."
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4947
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4948
    |l|
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4949
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4950
    (aList size == 0) ifTrue:[
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4951
        self showNoneFound:aString.
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4952
        ^ nil
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4953
    ].
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4954
    l := aList asOrderedCollection.
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4955
    l := l collect:[:entry |
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  4956
        |who cls clsName|
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4957
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4958
        entry isString ifTrue:[
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4959
            entry
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4960
        ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4961
            cls := entry mclass.
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4962
            cls isNil ifTrue:[
1031
5d77c99b877e dont crash when unbound methods are passed
ca
parents: 1018
diff changeset
  4963
                '??? unbound'
5d77c99b877e dont crash when unbound methods are passed
ca
parents: 1018
diff changeset
  4964
            ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4965
                cls isJavaClass ifTrue:[
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4966
                    clsName := 'JAVA::' , cls fullName 
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  4967
                ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4968
                    clsName := cls name
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4969
                ].
7915
56a43b103eaa refactoring
Claus Gittinger <cg@exept.de>
parents: 7914
diff changeset
  4970
                (cls selectorAtMethod:entry) isNil ifTrue:[
56a43b103eaa refactoring
Claus Gittinger <cg@exept.de>
parents: 7914
diff changeset
  4971
                    clsName
56a43b103eaa refactoring
Claus Gittinger <cg@exept.de>
parents: 7914
diff changeset
  4972
                    , ' ' 
56a43b103eaa refactoring
Claus Gittinger <cg@exept.de>
parents: 7914
diff changeset
  4973
                    , '???' 
56a43b103eaa refactoring
Claus Gittinger <cg@exept.de>
parents: 7914
diff changeset
  4974
                ] ifFalse:[
56a43b103eaa refactoring
Claus Gittinger <cg@exept.de>
parents: 7914
diff changeset
  4975
                    clsName
56a43b103eaa refactoring
Claus Gittinger <cg@exept.de>
parents: 7914
diff changeset
  4976
                    , ' ' 
56a43b103eaa refactoring
Claus Gittinger <cg@exept.de>
parents: 7914
diff changeset
  4977
                    , (entry printStringForBrowserWithSelector:(cls selectorAtMethod:entry) inClass:cls)
56a43b103eaa refactoring
Claus Gittinger <cg@exept.de>
parents: 7914
diff changeset
  4978
                ]
1031
5d77c99b877e dont crash when unbound methods are passed
ca
parents: 1018
diff changeset
  4979
            ]
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4980
        ]
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4981
      ].
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4982
        
1919
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4983
    doSort ifTrue:[l sort].
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  4984
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4985
    ^ self 
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4986
        newWithLabel:aString
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4987
        setupSelector:#setupForList:
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4988
        arg:l 
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4989
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4990
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4991
     SystemBrowser 
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4992
        browseMethods:#('Object printOn:' 'Collection add:')
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4993
        title:'some methods'
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4994
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4995
     SystemBrowser 
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4996
        browseMethods:#('Behavior new:' 'Setclass new:')
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4997
        title:'some new: methods'
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4998
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4999
     SystemBrowser 
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  5000
        browseMethods:(Array with:(Object compiledMethodAt:#printOn:)
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  5001
                             with:(Collection compiledMethodAt:#add:)
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  5002
                             with:(Object class compiledMethodAt:#initialize))
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  5003
        title:'some methods'
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  5004
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5005
    "
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  5006
7711
7e8881bccf72 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7524
diff changeset
  5007
    "Modified: / 17-06-1996 / 17:07:46 / stefan"
7e8881bccf72 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7524
diff changeset
  5008
    "Modified: / 05-03-2007 / 16:25:25 / cg"
2826
9d7f11697806 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2824
diff changeset
  5009
!
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  5010
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5011
browseMethodsFrom:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5012
    "launch a browser for all instance- and classmethods in aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5013
     and all its subclasses where aBlock evaluates to true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5014
     The block is called with 3 arguments, class, method and seelctor."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5015
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5016
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5017
        browseMethodsIn:(aClass withAllSubclasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5018
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5019
        title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5020
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5021
    "Modified: 24.1.1997 / 19:44:00 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5022
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5023
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5024
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5025
    "launch a browser for all instance- (if wantInst is true) and/or
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5026
     classmethods (if wantClass is true) from classes in aCollectionOfClasses,
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5027
     where aBlock evaluates to true.
270
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  5028
     The block is called with 3 arguments, class, method and selector."
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5029
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5030
    |list|
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  5031
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  5032
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5033
     since this may take a long time, lower my priority ...
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  5034
    "
2295
4e05198e7dd8 execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5035
    Processor activeProcess 
4e05198e7dd8 execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5036
        withPriority:Processor activePriority-1 to:Processor activePriority
4e05198e7dd8 execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5037
    do:[
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5038
        list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5039
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5040
    ^ self browseMethods:list title:title
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  5041
!
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  5042
3780
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5043
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5044
    "launch a browser for all instance- (if wantInst is true) and/or
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5045
     classmethods (if wantClass is true) from classes in aCollectionOfClasses,
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5046
     where aBlock evaluates to true.
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5047
     The block is called with 3 arguments, class, method and selector."
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5048
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5049
    |list|
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5050
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5051
    "
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5052
     since this may take a long time, lower my priority ...
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5053
    "
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5054
    Processor activeProcess 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5055
        withPriority:Processor activePriority-1 to:Processor activePriority
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5056
    do:[
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5057
        list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock.
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5058
        list size == 0 ifTrue:[warnBlock value].
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5059
    ].
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5060
    ^ self browseMethods:list title:title
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5061
!
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5062
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5063
browseMethodsIn:aCollectionOfClasses where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5064
    "launch a browser for all instance- and classmethods from 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5065
     all classes in aCollectionOfClasses where aBlock evaluates to true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5066
     The block is called with 3 arguments, class, method and seelctor."
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  5067
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5068
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5069
        browseMethodsIn:aCollectionOfClasses 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5070
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5071
        class:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5072
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5073
        title:title
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  5074
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5075
    "Modified: 24.1.1997 / 19:44:17 / cg"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5076
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5077
3780
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5078
browseMethodsIn:aCollectionOfClasses where:aBlock title:title ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5079
    "launch a browser for all instance- and classmethods from 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5080
     all classes in aCollectionOfClasses where aBlock evaluates to true.
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5081
     The block is called with 3 arguments, class, method and seelctor."
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5082
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5083
    ^ self 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5084
        browseMethodsIn:aCollectionOfClasses 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5085
        inst:true 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5086
        class:true 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5087
        where:aBlock 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5088
        title:title
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5089
        ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5090
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5091
    "Modified: 24.1.1997 / 19:44:17 / cg"
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5092
!
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5093
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5094
browseMethodsOf:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5095
    "launch a browser for all instance- and classmethods in aClass 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5096
     where aBlock evaluates to true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5097
     The block is called with 3 arguments, class, method and seelctor."
93
claus
parents: 90
diff changeset
  5098
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5099
    ^ self browseMethodsIn:(Array with:aClass) where:aBlock title:title
93
claus
parents: 90
diff changeset
  5100
!
claus
parents: 90
diff changeset
  5101
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5102
browseMethodsWhere:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5103
    "launch a browser for all methods where aBlock returns true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5104
     The block is called with 3 arguments, class, method and seelctor."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5105
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5106
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5107
        browseMethodsIn:(Smalltalk allClasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5108
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5109
        title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5110
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5111
    "Modified: 24.1.1997 / 19:44:30 / cg"
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5112
!
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5113
3780
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5114
browseMethodsWhere:aBlock title:title ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5115
    "launch a browser for all methods where aBlock returns true.
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5116
     The block is called with 3 arguments, class, method and seelctor."
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5117
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5118
    ^ self 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5119
        browseMethodsIn:(Smalltalk allClasses) 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5120
        where:aBlock 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5121
        title:title
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5122
        ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5123
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5124
    "Modified: 24.1.1997 / 19:44:30 / cg"
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5125
!
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5126
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5127
findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5128
    "return all instance- (if wantInst is true) and/or classmethods (if wantClass is true) 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5129
     from classes in aCollectionOfClasses, where aBlock evaluates to true."
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5130
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5131
    |list checkedClasses checkBlock|
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5132
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5133
    checkedClasses := IdentitySet new.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5134
    list := OrderedCollection new.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5135
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5136
    checkBlock := [:cls |
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5137
        (checkedClasses includes:cls) ifFalse:[
8554
441ea25ad1fd Do not complain about obsolete classes which are unloaded when searching
Stefan Vogel <sv@exept.de>
parents: 8505
diff changeset
  5138
            (cls isObsolete and:[cls isLoaded]) ifTrue:[
2882
2a12342fef79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2880
diff changeset
  5139
                Transcript showCR:'Browser method search: skipping obsolete class: ' , cls displayString
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5140
            ] ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5141
                cls methodDictionary keysAndValuesDo:[:sel :method |
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5142
                    (aBlock value:cls value:method value:sel) ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5143
                        list add:method "/ (cls name , ' ' , sel)
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5144
                    ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5145
                ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5146
                checkedClasses add:cls.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5147
            ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5148
        ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5149
    ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5150
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5151
    aCollectionOfClasses do:[:aClass |
3008
1a45c272b13f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2901
diff changeset
  5152
        (aClass notNil and:[aClass isObsolete not]) ifTrue:[
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5153
            "
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5154
             output disabled - it slows down things too much (when searching for
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5155
             implementors or senders)
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5156
            "
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5157
            wantInst ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5158
"/                Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5159
                checkBlock value:aClass
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5160
            ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5161
            wantClass ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5162
"/                Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5163
                checkBlock value:(aClass class)
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5164
            ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5165
            Processor yield
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5166
        ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5167
    ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5168
    ^ list
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5169
!
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5170
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5171
findMethodsIn:aCollectionOfClasses where:aBlock
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5172
    "return all instance- and classmethods 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5173
     from classes in aCollectionOfClasses, where aBlock evaluates to true."
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5174
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5175
    ^ self
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5176
        findMethodsIn:aCollectionOfClasses 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5177
        inst:true
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5178
        class:true      
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5179
        where:aBlock
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5180
! !
93
claus
parents: 90
diff changeset
  5181
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  5182
!SystemBrowser class methodsFor:'startup with query'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5183
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5184
askThenBrowseClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5185
    self getClassThenPerform:#browseClass:
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5186
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5187
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5188
     SystemBrowser askThenBrowseClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5189
    "
93
claus
parents: 90
diff changeset
  5190
!
claus
parents: 90
diff changeset
  5191
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5192
askThenBrowseClassHierarchy
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5193
    self getClassThenPerform:#browseClassHierarchy:
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5194
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5195
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5196
     SystemBrowser askThenBrowseClassHierarchy
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5197
    "
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5198
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5199
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5200
askThenBrowseFullClassProtocol
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5201
    self getClassThenPerform:#browseFullClassProtocol:
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5202
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5203
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5204
     SystemBrowser askThenBrowseFullClassProtocol
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5205
    "
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  5206
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  5207
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5208
getClassThenPerform:aSelector
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5209
    |enterBox resources|
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5210
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5211
    resources := self classResources.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  5212
6353
b9e2940b7714 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6333
diff changeset
  5213
    enterBox := EnterBox title:(self classResources stringWithCRs:'Browse which class:').
6640
326360e94271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6581
diff changeset
  5214
    enterBox okText:(resources string:'Browse').
6873
10854f75d38d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6848
diff changeset
  5215
    enterBox entryCompletionBlock:(DoWhatIMeanSupport classNameEntryCompletionBlock).
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5216
    enterBox action:[:className |
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5217
        |cls|
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5218
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5219
        cls := Smalltalk classNamed:className.
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5220
        cls isNil ifTrue:[
6640
326360e94271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6581
diff changeset
  5221
            self warn:(resources string:'No such class').
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5222
        ] ifFalse:[
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5223
            self perform:aSelector with:cls  
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5224
        ]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5225
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5226
    enterBox showAtPointer
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  5227
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5228
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5229
     SystemBrowser getClassThenPerform:#browseClass:
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5230
    "
6873
10854f75d38d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6848
diff changeset
  5231
10854f75d38d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6848
diff changeset
  5232
    "Modified: / 10-08-2006 / 12:54:20 / cg"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5233
! !
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5234
2813
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5235
!SystemBrowser class methodsFor:'utilities'!
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5236
3833
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5237
classWithNameSimilarTo:className
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5238
    "helper for class-name entry; finds a class by name tolerant w.r.t. case"
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5239
4924
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5240
    |allMatchingClasses|
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5241
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5242
    allMatchingClasses := self classesWithNameSimilarTo:className.
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5243
    ^ allMatchingClasses firstIfEmpty:nil
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5244
!
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5245
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5246
classesWithNameSimilarTo:className
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5247
    "helper for class-name entry; finds a class by name tolerant w.r.t. case"
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5248
6944
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5249
    ^ self classesWithNameSimilarTo:className from:nil
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5250
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5251
    "Modified: / 22-08-2006 / 13:22:41 / cg"
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5252
!
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5253
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5254
classesWithNameSimilarTo:className from:aNameSpaceOrNil
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5255
    "helper for class-name entry; finds classes with a name similar to the argument, className"
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5256
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5257
    |nm lcName class allClasses triedDetectors triedMatchers allMatchingClasses
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5258
     prefNameSpaceOrNil prefLcNameSpace|
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5259
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5260
    prefNameSpaceOrNil := (aNameSpaceOrNil == Smalltalk) ifTrue:[ nil ] ifFalse:[aNameSpaceOrNil].
3833
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5261
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5262
    (className startsWith:'Smalltalk::') ifTrue:[
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5263
        nm := className copyFrom:('Smalltalk::' size + 1).
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5264
    ] ifFalse:[
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5265
        nm := className.
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5266
    ].
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5267
6944
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5268
    prefNameSpaceOrNil notNil ifTrue:[
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5269
        class := prefNameSpaceOrNil at:nm asSymbol.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5270
        class isBehavior ifTrue:[^ Array with:class].      "/ a direct hit
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5271
        prefLcNameSpace := prefNameSpaceOrNil name asLowercase.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5272
    ].
3833
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5273
    class := Smalltalk at:nm asSymbol.
4924
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5274
    class isBehavior ifTrue:[^ Array with:class].      "/ a direct hit
3833
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5275
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5276
    lcName := className asLowercase.
4924
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5277
3833
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5278
    allClasses := Smalltalk allClasses.
4806
439bed9def3a code cleanup
Claus Gittinger <cg@exept.de>
parents: 4526
diff changeset
  5279
6134
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5280
    triedDetectors := OrderedCollection new.
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5281
    triedDetectors add:[:cls | cls name asLowercase = lcName].
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5282
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5283
    triedDetectors do:[:eachTry |
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5284
        |class|
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5285
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5286
        class := allClasses detect:eachTry ifNone:nil.
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5287
        class notNil ifTrue:[^ Array with:class].
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5288
    ].
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5289
4806
439bed9def3a code cleanup
Claus Gittinger <cg@exept.de>
parents: 4526
diff changeset
  5290
    triedMatchers := OrderedCollection new.
5018
2fe02eac49c5 better classesWithNameSimilarTo
Claus Gittinger <cg@exept.de>
parents: 4924
diff changeset
  5291
    triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase = lcName].      
2fe02eac49c5 better classesWithNameSimilarTo
Claus Gittinger <cg@exept.de>
parents: 4924
diff changeset
  5292
    triedMatchers add:[:cls | cls nameWithoutNameSpacePrefix asLowercase = lcName].      
4924
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5293
4806
439bed9def3a code cleanup
Claus Gittinger <cg@exept.de>
parents: 4526
diff changeset
  5294
    triedMatchers add:[:cls | cls name asLowercase startsWith:lcName].      
439bed9def3a code cleanup
Claus Gittinger <cg@exept.de>
parents: 4526
diff changeset
  5295
    triedMatchers add:[:cls | cls nameWithoutNameSpacePrefix asLowercase startsWith:lcName].      
439bed9def3a code cleanup
Claus Gittinger <cg@exept.de>
parents: 4526
diff changeset
  5296
    triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase startsWith:lcName].      
439bed9def3a code cleanup
Claus Gittinger <cg@exept.de>
parents: 4526
diff changeset
  5297
    triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase includesString:lcName].      
6134
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5298
    triedMatchers add:[:cls | cls name asLowercase includesString:lcName].
4924
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5299
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5300
    allMatchingClasses := IdentitySet new.
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5301
    triedMatchers do:[:eachTry |
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5302
        |matchingClasses|
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5303
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5304
        matchingClasses := allClasses select:eachTry.
6944
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5305
"/        matchingClasses size == 1 ifTrue:[^ matchingClasses].
4924
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5306
        allMatchingClasses addAll:matchingClasses.
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5307
    ].
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5308
    allMatchingClasses isEmpty ifTrue:[^ #()].
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5309
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5310
    allMatchingClasses := allMatchingClasses asOrderedCollection.
6944
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5311
    allMatchingClasses 
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5312
        sort:[:a :b | 
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5313
            |lcNameA lcNameB da db distA distB |
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5314
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5315
            lcNameA := a name asLowercase.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5316
            lcNameB := b name asLowercase.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5317
            prefNameSpaceOrNil notNil ifTrue:[
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5318
                a nameSpace == prefNameSpaceOrNil ifTrue:[
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5319
                    lcNameA := a nameWithoutNameSpacePrefix asLowercase.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5320
                ].
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5321
                b nameSpace == prefNameSpaceOrNil ifTrue:[
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5322
                    lcNameB := b nameWithoutNameSpacePrefix asLowercase.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5323
                ].
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5324
            ].
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5325
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5326
            distA := da := lcName levenshteinTo:lcNameA.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5327
            distB := db := lcName levenshteinTo:lcNameB.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5328
            "prefer prefixes (i.e. classes whose name starts with what we search for)"
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5329
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5330
            (lcNameA startsWith:lcName) ifTrue:[
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5331
                distB := distB * 2
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5332
            ].
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5333
            (lcNameB startsWith:lcName) ifTrue:[
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5334
                distA := distA * 2
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5335
            ].
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5336
            distA < distB
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5337
        ].
4924
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5338
    ^ allMatchingClasses.
6546
1b809ef4658b comment
Stefan Vogel <sv@exept.de>
parents: 6480
diff changeset
  5339
1b809ef4658b comment
Stefan Vogel <sv@exept.de>
parents: 6480
diff changeset
  5340
    "
6678
aa5572677e17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6640
diff changeset
  5341
     self classesWithNameSimilarTo:'NewSystemBrowser'
aa5572677e17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6640
diff changeset
  5342
     self classesWithNameSimilarTo:'Moose::MSEAbstractOperator'
6546
1b809ef4658b comment
Stefan Vogel <sv@exept.de>
parents: 6480
diff changeset
  5343
    "
6944
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5344
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5345
    "Created: / 22-08-2006 / 13:22:48 / cg"
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5346
    "Modified: / 22-08-2006 / 14:53:38 / cg"
3833
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5347
!
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5348
2813
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5349
extractClassAndSelectorFrom:aString into:aBlock
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5350
    "given a string which can be either 'class>>sel' or
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5351
     'class sel', extract className and selector, and call aBlock with
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5352
     the result.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5353
     Useful to open browser on a method as selected in some documentation."
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5354
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5355
    |sel clsName isMeta sep s|
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5356
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5357
    sel := aString.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5358
    sel notNil ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5359
        sel := sel asString withoutSeparators.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5360
        ('*>>*' match:sel) ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5361
            sep := $>
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5362
        ] ifFalse:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5363
            ('* *' match:sel) ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5364
                sep := Character space
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5365
            ]
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5366
        ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5367
        sep notNil ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5368
            "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5369
             extract class/sel from selection
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5370
            "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5371
            s := ReadStream on:sel.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5372
            clsName := s upTo:sep.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5373
            [s peek == sep] whileTrue:[s next].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5374
            sel := s upToEnd.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5375
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5376
            (clsName endsWith:' class') ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5377
                isMeta := true.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5378
                clsName := clsName copyWithoutLast:6 "copyTo:(clsName size - 5)"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5379
            ] ifFalse:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5380
                isMeta := false
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5381
            ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5382
        ]
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5383
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5384
    aBlock value:clsName value:sel value:isMeta
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5385
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5386
    "Modified: / 17.6.1996 / 16:52:14 / stefan"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5387
    "Created: / 6.2.2000 / 00:51:51 / cg"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5388
    "Modified: / 6.2.2000 / 00:56:43 / cg"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5389
!
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5390
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5391
extractSelectorFrom:aString
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5392
    "given an arbitrary string, try to extract a useful selector.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5393
     Useful to open browser on a selected code fragment."
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5394
8047
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  5395
    |s sel sel2 t|
2813
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5396
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5397
    aString isNil ifTrue:[^ nil].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5398
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5399
    s := aString asString string.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5400
    s := s withoutSeparators.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5401
    sel := s.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5402
6705
b78bea6fd220 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6678
diff changeset
  5403
    ((sel endsWith:$:)
b78bea6fd220 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6678
diff changeset
  5404
    and:[sel knownAsSymbol]) ifTrue:[
b78bea6fd220 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6678
diff changeset
  5405
        ^ sel asSymbol     
b78bea6fd220 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6678
diff changeset
  5406
    ].
b78bea6fd220 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6678
diff changeset
  5407
2813
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5408
    t := Parser selectorInExpression:sel.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5409
    t notNil ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5410
        sel := t
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5411
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5412
    (sel = s or:[sel isNil or:[t == #>>]]) ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5413
        "oops - thats probably not what we want here ..."
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5414
        self extractClassAndSelectorFrom:s into:[:c :s :m |
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5415
            sel := s
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5416
        ]
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5417
    ].
8047
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  5418
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  5419
    sel asSymbolIfInterned isNil ifTrue:[
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  5420
        (sel startsWith:'#') ifTrue:[
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  5421
            sel2 := sel copyFrom:2.
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  5422
            ((sel2 startsWith:'''') and:[(sel2 endsWith:'''')]) ifTrue:[
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  5423
                sel2 := (sel2 copyFrom:2) copyWithoutLast:1
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  5424
            ].
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  5425
            sel2 asSymbolIfInterned notNil ifTrue:[
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  5426
                ^ sel2
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  5427
            ].
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  5428
        ].
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  5429
    ].
8bc319ff9ba7 better title in implementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 7998
diff changeset
  5430
2813
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5431
    ^ sel
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5432
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5433
    "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5434
     self extractSelectorFrom:'at:put:'      
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5435
     self extractSelectorFrom:'#at:put:'                       
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5436
     self extractSelectorFrom:'at:something put:someValue'     
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5437
     self extractSelectorFrom:'self at:something put:someValue'
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5438
     self extractSelectorFrom:'(self at:something put:someValue)' 
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5439
     self extractSelectorFrom:'[self at:something put:someValue] value' 
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5440
     self extractSelectorFrom:'Array>>at:put:' 
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5441
    "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5442
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5443
    "Created: / 6.2.2000 / 00:49:44 / cg"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5444
    "Modified: / 6.2.2000 / 00:57:08 / cg"
6560
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5445
!
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5446
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5447
resourceEditorClassFor:aResource 
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5448
    "resources are from a methods resource-info;
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5449
     return an appropriate editor class."
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5450
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5451
    (aResource == #canvas) ifTrue:[
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5452
        ^ UIPainter
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5453
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5454
    (aResource == #menu) ifTrue:[
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5455
        ^ MenuEditor
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5456
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5457
    ((aResource == #image) or:[aResource == #fileImage]) ifTrue:[
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5458
        ^ ImageEditor
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5459
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5460
    (aResource == #help) ifTrue:[
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5461
        ^ UIHelpTool
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5462
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5463
    (aResource == #tableColumns) ifTrue:[
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5464
        ^ DataSetBuilder
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5465
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5466
    (aResource == #tabList) ifTrue:[
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5467
        ^ TabListEditor
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5468
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5469
    (aResource == #hierarchicalList) ifTrue:[
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5470
        ^ HierarchicalListEditor
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5471
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5472
    ^ nil
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5473
!
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5474
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5475
resourceEditorClassForResources:resources
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5476
    "resources are from a methods resource-info;
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5477
     return an appropriate editor class."
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5478
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5479
    resources keysDo:[:eachResource |
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5480
        |editor|
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5481
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5482
        editor := self resourceEditorClassFor:eachResource.
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5483
        editor notNil ifTrue:[ ^ editor].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5484
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5485
    ^ nil
2813
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5486
! !
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5487
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5488
!SystemBrowser::BrowserHistoryEntry methodsFor:'accessing'!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5489
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5490
className
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5491
    "return the value of the instance variable 'className' (automatically generated)"
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5492
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5493
    ^ className
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5494
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5495
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5496
className:something
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5497
    "set the value of the instance variable 'className' (automatically generated)"
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5498
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5499
    className := something.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5500
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5501
3151
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  5502
className:classNameArg meta:metaArg selector:selectorArg
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  5503
    className := classNameArg.
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  5504
    meta := metaArg.
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  5505
    selector := selectorArg.
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  5506
!
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  5507
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5508
meta
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5509
    "return the value of the instance variable 'meta' (automatically generated)"
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5510
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5511
    ^ meta
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5512
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5513
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5514
meta:something
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5515
    "set the value of the instance variable 'meta' (automatically generated)"
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5516
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5517
    meta := something.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5518
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5519
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5520
selector
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5521
    "return the value of the instance variable 'selector' (automatically generated)"
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5522
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5523
    ^ selector
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5524
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5525
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5526
selector:something
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5527
    "set the value of the instance variable 'selector' (automatically generated)"
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5528
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5529
    selector := something.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5530
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5531
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5532
theClass
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5533
    ^ Smalltalk at:className asSymbol
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5534
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5535
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5536
!SystemBrowser::BrowserHistoryEntry methodsFor:'comparing'!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5537
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5538
= anEntry
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5539
    ^ className = anEntry className
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5540
      and:[meta = anEntry meta
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5541
      and:[selector = anEntry selector]]
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5542
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5543
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  5544
!SystemBrowser class methodsFor:'documentation'!
93
claus
parents: 90
diff changeset
  5545
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5546
version
9002
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  5547
    ^ '$Header: /cvs/stx/stx/libtool/SystemBrowser.st,v 1.272 2009-10-20 07:46:39 cg Exp $'
8851
287f3e03a645 changed: #iconForClass:
Claus Gittinger <cg@exept.de>
parents: 8759
diff changeset
  5548
!
287f3e03a645 changed: #iconForClass:
Claus Gittinger <cg@exept.de>
parents: 8759
diff changeset
  5549
287f3e03a645 changed: #iconForClass:
Claus Gittinger <cg@exept.de>
parents: 8759
diff changeset
  5550
version_CVS
9002
885404958f53 code cleanup
Claus Gittinger <cg@exept.de>
parents: 8894
diff changeset
  5551
    ^ '$Header: /cvs/stx/stx/libtool/SystemBrowser.st,v 1.272 2009-10-20 07:46:39 cg Exp $'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5552
! !
4112
ed7af6707ad7 emphasisForChangedCode
tm
parents: 3834
diff changeset
  5553
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5554
SystemBrowser initialize!