SystemBrowser.st
author Claus Gittinger <cg@exept.de>
Mon, 18 Nov 2002 11:12:56 +0100
changeset 4270 edcb3dfb262d
parent 4235 bba308f409dd
child 4275 aeaf7c245b7a
permissions -rw-r--r--
senders of refactored
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
"
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    12
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
    13
"{ Package: 'stx:libtool' }"
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
    14
85
d9713a3ca092 *** empty log message ***
claus
parents: 77
diff changeset
    15
ApplicationModel subclass:#SystemBrowser
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    16
	instanceVariableNames:''
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    17
	classVariableNames:'CheckForInstancesWhenRemovingClasses ClassHistory
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    18
		EmphasisForDifferentPackage EmphasisForModifiedBuffer
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    19
		EmphasisForObsoleteCode EmphasisForReadVariable
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    20
		EmphasisForWrittenVariable EmphasisForChangedCode'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    21
	poolDictionaries:''
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    22
	category:'Interface-Browsers'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    23
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    24
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    25
Object subclass:#BrowserHistoryEntry
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    26
	instanceVariableNames:'className meta selector'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    27
	classVariableNames:''
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    28
	poolDictionaries:''
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    29
	privateIn:SystemBrowser
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    30
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    31
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
    32
!SystemBrowser class methodsFor:'documentation'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    33
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    34
copyright
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    35
"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    36
 COPYRIGHT (c) 1989 by Claus Gittinger
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
    37
              All Rights Reserved
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    38
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    39
 This software is furnished under a license and may be used
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    40
 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
    41
 inclusion of the above copyright notice.   This software may not
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    42
 be provided or otherwise made available to, or used by, any
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    43
 other person.  No title to or ownership of the software is
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    44
 hereby transferred.
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
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    48
documentation
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    49
"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    50
    this class implements all kinds of class browsers.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    51
    Typically, it is started with 'SystemBrowser open', but there are many other 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    52
    startup messages, to launch special browsers.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    53
    See the categories 'startup' and 'special search startup' in the classes
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    54
    protocol.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    55
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    56
    Alse, see the extra document 'doc/misc/sbrowser.doc' or the HTML online doc
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    57
    for how to use the browser.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    58
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    59
    written winter 89 by claus.
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
    Notice: SystemBrowser is currently being rewritten to be an instance
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    62
    of ApplicationModel - this transition is not yet complete and you see
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    63
    here an intermediate version. The instance variables defined here are NOT
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    64
    currently used - instead, everything is really done in the BrowserView
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    65
    which (currently) keeps the real state of the browser.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    66
    This will certainly change ...
508
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    67
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    68
    [author:]
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    69
        Claus Gittinger
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    70
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    71
"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    72
! !
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    73
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
    74
!SystemBrowser class methodsFor:'initialization'!
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    76
initialize
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    77
    "Browser configuration;
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    78
     (values can be changed from your private startup file)"
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
    79
254
8258536e5bcf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 215
diff changeset
    80
"/    self classResources.
85
d9713a3ca092 *** empty log message ***
claus
parents: 77
diff changeset
    81
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    82
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    83
     setting this to false, the removeClass function will remove
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    84
     classes WITHOUT checking for instances. Otherwise,
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    85
     it will check and let you confirm in case there are instances.
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    86
     Checking for instances may be a bit time consuming, though.
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    87
     The default is true - therefore, it will check
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    88
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    89
    CheckForInstancesWhenRemovingClasses := true
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    90
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    91
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    92
     CheckForInstancesWhenRemovingClasses := true
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    93
     CheckForInstancesWhenRemovingClasses := false
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    94
85
d9713a3ca092 *** empty log message ***
claus
parents: 77
diff changeset
    95
     SystemBrowser initialize
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    96
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    97
! !
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    98
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
    99
!SystemBrowser class methodsFor:'instance creation'!
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
   100
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
   101
open
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
   102
    "launch a standard browser"
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
   103
2631
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   104
    self == SystemBrowser ifFalse:[
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   105
        ^ super open
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   106
    ].
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   107
105
claus
parents: 100
diff changeset
   108
    ^ self openOnDevice:(Screen current) 
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
   109
93
claus
parents: 90
diff changeset
   110
    "
claus
parents: 90
diff changeset
   111
     SystemBrowser open
claus
parents: 90
diff changeset
   112
    "
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   113
!
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   114
523
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   115
openInClass:aClass
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   116
    "launch a standard browser which immediately switches
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   117
     to aClass"
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   118
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   119
    ^ self openInClass:aClass selector:nil
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   120
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   121
    "
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   122
     SystemBrowser openInClass:Object
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   123
    "
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   124
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   125
    "Created: 30.4.1996 / 14:43:45 / cg"
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   126
!
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   127
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   128
openInClass:aClass selector:aSelector
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   129
    "launch a standard browser which immediately switches
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   130
     to aClass>>aSelector."
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   131
3626
abf84bdbfdb2 Remove unused method vars
Stefan Vogel <sv@exept.de>
parents: 3621
diff changeset
   132
    |brwsr classesName|
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   133
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   134
    brwsr := self openOnDevice:(Screen current).
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   135
    brwsr waitUntilVisible.
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   136
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   137
    aClass notNil ifTrue:[
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   138
"/        cls := aClass.
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   139
"/        cls isMeta ifTrue:[
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   140
"/            cls := aClass soleInstance
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   141
"/        ].
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   142
        aClass isMeta ifTrue:[
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   143
            brwsr instanceProtocol:false
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   144
        ].
1931
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   145
        aClass isJavaClass ifTrue:[
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   146
            classesName := aClass fullName. 
1931
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   147
        ] ifFalse:[
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   148
            classesName := aClass name. 
1931
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   149
        ].
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   150
        brwsr switchToClassNamed:classesName.
1681
b209bdfbf762 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1620
diff changeset
   151
        brwsr classSelectionChanged.
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   152
        aSelector notNil ifTrue:[
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   153
            brwsr switchToMethodNamed:aSelector.
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   154
        ]
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   155
    ].
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   156
    ^ brwsr
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   157
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   158
    "
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   159
     SystemBrowser openInClass:Object selector:#at:put:
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   160
     SystemBrowser openInClass:Object selector:nil
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   161
     SystemBrowser openInClass:nil selector:nil
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   162
    "
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   163
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   164
    "Created: / 22.11.1995 / 21:04:50 / cg"
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   165
    "Modified: / 5.11.2001 / 16:51:02 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   166
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   167
3588
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   168
openOn:anEnvironment
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   169
    |browser|
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   170
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   171
    browser := self 
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   172
                newWithLabel:(self classResources string:'System Browser')
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   173
                setupBlock:[:browser | browser environment:anEnvironment.
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   174
                                       browser setupForAll]
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   175
                onDevice:(Screen current).
3621
43aaa3accd72 opnXX methods return the browser
Claus Gittinger <cg@exept.de>
parents: 3589
diff changeset
   176
    ^ browser
3588
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   177
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   178
    "
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   179
     SystemBrowser openOn:Smalltalk
3589
f38e59e3ab76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3588
diff changeset
   180
     SystemBrowser openOn:Demos
3588
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   181
    "
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   182
!
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   183
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   184
openOnDevice:aDisplay
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   185
    "launch a standard browser on another display."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   186
2631
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   187
    self == SystemBrowser ifFalse:[
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   188
        ^ super openOnDevice:aDisplay
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   189
    ].
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   190
3519
0fef57de776a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3476
diff changeset
   191
    ^ self 
0fef57de776a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3476
diff changeset
   192
        newWithLabel:(self classResources string:'System Browser')
0fef57de776a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3476
diff changeset
   193
        setupBlock:[:browser | browser setupForAll]
0fef57de776a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3476
diff changeset
   194
        onDevice:aDisplay
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   195
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   196
    "|d|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   197
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   198
     d := XWorkstation new initializeFor:'porty:0'.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   199
     d startDispatch.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   200
     SystemBrowser openOnDevice:d
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   201
    "
2818
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   202
!
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   203
3573
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   204
openOnRemoteImageOnHost:aHostName port:portOrNil
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   205
    |environment browser|
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   206
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   207
    environment := RemoteImage onHost:aHostName port:portOrNil.
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   208
    browser := self 
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   209
                newWithLabel:(self classResources string:'RemoteImage Browser - %1' with:aHostName)
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   210
                setupBlock:[:browser | browser environment:environment.
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   211
                                       browser setupForAll]
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   212
                onDevice:(Screen current).
3621
43aaa3accd72 opnXX methods return the browser
Claus Gittinger <cg@exept.de>
parents: 3589
diff changeset
   213
    ^ browser
3573
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   214
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   215
    "
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   216
     SystemBrowser openOnRemoteImageOnHost:'funkfix' port:nil
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   217
    "
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   218
!
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   219
2818
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   220
openOnSnapShotImage:anImageFileName
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   221
    |environment browser|
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   222
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   223
    environment := SnapShotImage for:anImageFileName.
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   224
    browser := self 
2824
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
   225
                newWithLabel:(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
                setupBlock:[:browser | browser environment:environment.
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   227
                                       browser setupForAll]
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   228
                onDevice:(Screen current).
3621
43aaa3accd72 opnXX methods return the browser
Claus Gittinger <cg@exept.de>
parents: 3589
diff changeset
   229
    ^ browser
2818
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   230
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   231
    "
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
   232
     SystemBrowser openOnSnapShotImage:('/tmp/stmeas.img')
2824
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
   233
    "
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
   234
! !
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   235
2551
53ad33c2879a category renamining
Claus Gittinger <cg@exept.de>
parents: 2484
diff changeset
   236
!SystemBrowser class methodsFor:'Compatibility - ST80'!
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   237
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   238
newOnClass:aClass
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   239
    ^ self browseClass:aClass
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   240
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   241
    "Created: / 27.10.1997 / 20:10:39 / cg"
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   242
! !
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   243
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   244
!SystemBrowser class methodsFor:'accessing - history'!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   245
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   246
addToHistory:aClass selector:aSelectorOrNil
3679
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   247
    |newEntry oldEntry classHistory|
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   248
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   249
    (newEntry := self historyEntryForClass:aClass selector:aSelectorOrNil) isNil ifTrue:[^ self].
3679
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   250
    classHistory := self classHistory.
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   251
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   252
    oldEntry := classHistory detect:[:entry | entry className = newEntry className] ifNone:nil.
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   253
    oldEntry notNil ifTrue:[
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   254
        classHistory removeIdentical:oldEntry.
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   255
    ].
3679
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   256
    classHistory addFirst:newEntry.
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   257
    classHistory size > self visitedHistoryMaxSize ifTrue:[
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   258
        classHistory removeLast
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
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   262
checkClassHistory
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   263
    "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
   264
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   265
    "/ 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
   266
    self classHistory reverseDo:[:histEntry|
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   267
        (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
   268
        ifFalse:[
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   269
            self classHistory remove: histEntry
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
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   274
classHistory
3679
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   275
    ClassHistory isNil ifTrue:[
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   276
        ClassHistory := List new
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   277
    ].
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   278
    ^ ClassHistory 
3131
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
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
    ClassHistory := newCollection
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
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   285
emptyClassHistory
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   286
    "removes all class history entries"
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   287
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   288
    self classHistory removeAll
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   289
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   290
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   291
historyEntryForClass:aClass selector:aSelectorOrNil
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   292
    |newEntry meta cls|
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   293
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   294
    aClass isBehavior ifFalse:[^ nil].
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   295
3151
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   296
    (meta := aClass isMeta) ifTrue:[
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   297
        cls := aClass theNonMetaclass.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   298
    ] ifFalse:[
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   299
        cls := aClass
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
    newEntry := BrowserHistoryEntry new.
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   302
    newEntry 
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   303
        className:cls name
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   304
        meta:meta
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   305
        selector:aSelectorOrNil.
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   306
    ^ newEntry
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   307
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   308
    "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
   309
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   310
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   311
!SystemBrowser class methodsFor:'defaults'!
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
classHistoryMaxLevels
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   314
    ^ 3
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
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   317
classHistoryMaxSize
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   318
    ^ 15
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   319
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   320
3549
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   321
methodTemplate
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   322
    "return a method definition template string"
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   323
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   324
    |s|
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   325
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   326
    s := TextStream on:''.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   327
    s nextPutAll:'message selector and argument names
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   328
    "comment stating purpose of this message"
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   329
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   330
    |temporaries|
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   331
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   332
    statement.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   333
    statement.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   334
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   335
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   336
    "
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   337
     optional: comment giving example use
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   338
    "
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   339
'.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   340
    s cr.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   341
    s emphasis:(UserPreferences current commentEmphasisAndColor).
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   342
    s nextPutAll:'"
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   343
 change the above template into real code.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   344
 Then `accept'' either via the menu 
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   345
 or via the keyboard (usually CMD-A).
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   346
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   347
 You do not need this template; you can also
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   348
 select any existing methods code, change it,
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   349
 and finally `accept''. The method will then be
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   350
 installed under the selector as defined in the
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   351
 actual text - no matter which method is selected
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   352
 in the browser.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   353
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   354
 Or clear this text, type in the method from scratch
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   355
 and install it with `accept''.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   356
"
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   357
'.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   358
    ^ s contents
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   359
!
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   360
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   361
visitedHistoryMaxSize
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   362
    "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
   363
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   364
    ^ 15
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   365
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   366
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   367
!SystemBrowser class methodsFor:'defaults - presentation'!
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   368
3352
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   369
emphasisForChangedCode
4112
ed7af6707ad7 emphasisForChangedCode
tm
parents: 3834
diff changeset
   370
    ^  UserPreferences current emphasisForChangedCode.
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
    "
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   373
     EmphasisForChangedCode := #underwave
4112
ed7af6707ad7 emphasisForChangedCode
tm
parents: 3834
diff changeset
   374
     EmphasisForChangedCode := #color->Color blue
3352
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   375
     EmphasisForChangedCode := #color->Color red lightened lightened lightened
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   376
    "
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   377
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   378
    "Created: / 31.10.2001 / 10:15:33 / cg"
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   379
!
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   380
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   381
emphasisForChangedCode:anEmphasis
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   382
    EmphasisForChangedCode := anEmphasis
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   383
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   384
    "
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   385
     self emphasisForChangedCode:#underwave
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   386
     self emphasisForChangedCode:(#color->Color red lightened lightened lightened)
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   387
    "
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   388
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   389
    "Created: / 31.10.2001 / 10:15:44 / cg"
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   390
!
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
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
emphasisForDifferentPackage
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   393
    EmphasisForDifferentPackage isNil ifTrue:[
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   394
        EmphasisForDifferentPackage := UserPreferences current at:#emphasisForDifferentPackage ifAbsent:nil.
3352
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   395
        EmphasisForDifferentPackage isNil ifTrue:[EmphasisForDifferentPackage := #color->Color brown darkened].
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   396
    ].
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   397
    ^ EmphasisForDifferentPackage
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   398
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   399
    "
3352
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   400
     EmphasisForDifferentPackage := nil.
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   401
     EmphasisForDifferentPackage := #underwave
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   402
     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
   403
    "
3352
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   404
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   405
    "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
   406
!
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   407
3241
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   408
emphasisForDifferentPackage:anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   409
    EmphasisForDifferentPackage := anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   410
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
     self emphasisForDifferentPackage:#underwave
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   413
     self emphasisForDifferentPackage:(#color->Color red lightened lightened lightened)
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   414
    "
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
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   417
emphasisForModifiedBuffer
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   418
    EmphasisForModifiedBuffer isNil ifTrue:[
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   419
        EmphasisForModifiedBuffer := UserPreferences current at:#emphasisForModifiedBuffer ifAbsent:nil.
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   420
        EmphasisForModifiedBuffer isNil ifTrue:[EmphasisForModifiedBuffer := #color->Color red darkened].
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
    ^ EmphasisForModifiedBuffer
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   423
!
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
emphasisForModifiedBuffer:anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   426
    EmphasisForModifiedBuffer := anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   427
!
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   428
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   429
emphasisForObsoleteCode
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   430
    EmphasisForObsoleteCode isNil ifTrue:[
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   431
        EmphasisForObsoleteCode := UserPreferences current at:#emphasisForObsoleteCode ifAbsent:nil.
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   432
        EmphasisForObsoleteCode isNil ifTrue:[EmphasisForObsoleteCode := #color->Color red].
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   433
    ].
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   434
    ^ EmphasisForObsoleteCode
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   435
!
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   436
3241
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   437
emphasisForObsoleteCode:anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   438
    EmphasisForObsoleteCode := anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   439
!
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   440
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   441
emphasisForReadVariable
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   442
    EmphasisForReadVariable isNil ifTrue:[
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   443
        EmphasisForReadVariable := UserPreferences current at:#emphasisForReadVariable ifAbsent:nil.
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   444
        EmphasisForReadVariable isNil ifTrue:[EmphasisForReadVariable := #underline].
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   445
    ].
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   446
    ^ EmphasisForReadVariable
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   447
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   448
    "
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   449
     EmphasisForReadVariable := #underline
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   450
     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
   451
    "
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   452
!
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   453
3241
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   454
emphasisForReadVariable:anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   455
    EmphasisForReadVariable := anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   456
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   457
    "
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   458
     self emphasisForReadVariable:#underline
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   459
     self emphasisForReadVariable:(Array with:#underline with:#underlineColor->Color yellow)
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   460
    "
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   461
!
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   462
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   463
emphasisForWrittenVariable
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   464
    EmphasisForWrittenVariable isNil ifTrue:[
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   465
        EmphasisForWrittenVariable := UserPreferences current at:#emphasisForWrittenVariable ifAbsent:nil.
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   466
        EmphasisForWrittenVariable isNil ifTrue:[EmphasisForWrittenVariable := Array with:#underline with:#underlineColor->Color red].
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   467
    ].
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   468
    ^ EmphasisForWrittenVariable
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   469
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   470
    "
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   471
     EmphasisForWrittenVariable := #underline
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   472
     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
   473
    "
3241
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   474
!
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   475
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   476
emphasisForWrittenVariable:anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   477
    EmphasisForWrittenVariable := anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   478
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   479
    "
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   480
     self emphasisForWrittenVariable:#underline
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   481
     self emphasisForWrittenVariable:(Array with:#underline with:#underlineColor->Color red lightened)
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   482
    "
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   483
! !
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   484
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   485
!SystemBrowser class methodsFor:'image specs'!
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   486
2748
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   487
abstractMethodIcon
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   488
    <resource: #programImage>
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   489
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   490
    ^ self padLockGrayMiniIcon
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   491
!
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   492
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   493
addBreakPointIcon
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   494
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   495
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   496
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   497
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   498
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   499
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   500
    "
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   501
     self addBreakPointIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   502
     ImageEditor openOnClass:self andSelector:#addBreakPointIcon
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   503
    "
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   504
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   505
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   506
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   507
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   508
        constantNamed:#'SystemBrowser class addBreakPointIcon'
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   509
        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
   510
!
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   511
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   512
addBreakPointIcon2
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   513
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   514
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   515
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   516
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   517
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   518
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   519
    "
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   520
     self addBreakPointIcon2 inspect
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   521
     ImageEditor openOnClass:self andSelector:#addBreakPointIcon2
4222
e03784758764 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4200
diff changeset
   522
     Icon flushCachedIcons
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   523
    "
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   524
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   525
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   526
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   527
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   528
        constantNamed:#'SystemBrowser class addBreakPointIcon2'
4222
e03784758764 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4200
diff changeset
   529
        ifAbsentPut:[(Depth2Image new) width: 12; height: 21; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'****/??>/:+>/%V>.TA..P@..P@..@@./ B>/:+>/??>/:+>/**>.)V..%U..%U..UU./%V>/:+>/??>****') ; colorMapFromArray:#[255 0 0 63 63 63 0 0 0 127 127 127]; mask:((Depth1Image new) width: 12; height: 21; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??C?<O?0??C?<O?0??C?<O?0??C?<O?0??C?<O?0??C?<O?0??C?<O?0') ; yourself); yourself]
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   530
!
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   531
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   532
canvasIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   533
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   534
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   535
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   536
    "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
   537
     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
   538
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   539
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   540
     ImageEditor openOnClass:self andSelector:#canvasIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   541
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   542
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   543
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   544
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   545
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   546
        constantNamed:#'SystemBrowser canvasIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   547
        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
   548
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   549
4143
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   550
containerClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   551
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   552
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   553
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   554
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   555
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   556
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   557
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   558
     self containerClassIcon inspect
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   559
     ImageEditor openOnClass:self andSelector:#containerClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   560
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   561
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   562
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   563
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   564
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   565
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   566
        constantNamed:#'SystemBrowser class containerClassIcon'
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   567
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'B;.0@K.;@@.;,@B;.0@K,@@@@K,@B;@@@@B;@@.0@@@@.0@K,@@@@K,@B;@@@@B;@@.0@@@@.0@K,@@@@K,@B;.0@K.;@@.;,@B;.0@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]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'^OA8<F@0XCA LF@0XCA LF@0^OA8<@@a') ; yourself); yourself]
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   568
!
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   569
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   570
defaultIcon
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   571
    "This resource specification was automatically generated
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   572
     by the ImageEditor of ST/X."
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   573
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   574
    "Do not manually edit this!! If it is corrupted,
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   575
     the ImageEditor may not be able to read the specification."
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   576
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   577
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   578
     self defaultIcon inspect
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   579
     ImageEditor openOnClass:self andSelector:#defaultIcon
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   580
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   581
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   582
    <resource: #image>
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   583
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   584
    ^Icon
3794
Claus Gittinger <cg@exept.de>
parents: 3780
diff changeset
   585
        constantNamed:#'SystemBrowser class defaultIcon'
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   586
        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
   587
@@@@@@@@@@@@@@@@@@@FY&Y&Y&X0@@@@@@@@@@YDQDQDQB@@@@@@@@@@A$QDQDQDH@@@@@@@@@@CH"H"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@
3794
Claus Gittinger <cg@exept.de>
parents: 3780
diff changeset
   588
@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@A&Y&Y&Y#@@@@@F@"H"HFDQDQDQH@@@@@@@@@@@L"H"H"
Claus Gittinger <cg@exept.de>
parents: 3780
diff changeset
   589
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
   590
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@@B@B@ @@H@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   591
@@@@@@@@@@@@@@@@@@@@@@@@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
   592
??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
   593
QDBD%DQ@!!OH''HHRQEABT$QPP99]7\@@a') ; yourself); yourself]
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   594
!
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   595
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   596
emptyIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   597
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   598
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   599
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   600
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   601
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   602
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   603
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   604
     self emptyIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   605
     ImageEditor openOnClass:self andSelector:#emptyIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   606
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   607
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   608
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   609
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   610
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   611
        constantNamed:#'SystemBrowser class emptyIcon'
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   612
        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
   613
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   614
    "Created: / 5.11.2001 / 09:39:54 / cg"
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   615
!
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   616
4143
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   617
errorClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   618
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   619
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   620
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   621
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   622
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   623
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   624
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   625
     self errorClassIcon inspect
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   626
     ImageEditor openOnClass:self andSelector:#errorClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   627
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   628
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   629
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   630
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   631
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   632
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   633
        constantNamed:#'SystemBrowser class errorClassIcon'
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   634
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@BH@@@@@@@@"@@@@@@@BH"@@@@@@@"H @@@@@@H"H@@@@@@BH"@@@@@@@"H @@@@@@@"@@@@@@@@@@@@@@@@@BH@@@@@@@@"@@@@@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 @F@@<@C0@O@@<@C0@F@@@@A @F@@@a') ; yourself); yourself]
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   635
!
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   636
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   637
exceptionClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   638
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   639
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   640
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   641
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   642
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   643
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   644
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   645
     self exceptionClassIcon inspect
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   646
     ImageEditor openOnClass:self andSelector:#exceptionClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   647
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   648
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   649
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   650
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   651
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   652
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   653
        constantNamed:#'SystemBrowser class exceptionClassIcon'
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   654
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@BH@@@@@@@@"@@@@@@@BH"@@@@@@@"H @@@@@@H"H@@@@@@BH"@@@@@@@"H @@@@@@@"@@@@@@@@@@@@@@@@@BH@@@@@@@@"@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 255 255 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A @F@@<@C0@O@@<@C0@F@@@@A @F@@@a') ; yourself); yourself]
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   655
!
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   656
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   657
fileImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   658
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   659
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   660
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   661
    "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
   662
     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
   663
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   664
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   665
     self fileImageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   666
     ImageEditor openOnClass:self andSelector:#fileImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   667
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   668
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   669
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   670
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   671
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   672
        constantNamed:#'SystemBrowser fileImageIcon'
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   673
        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
   674
!
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   675
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   676
greenCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   677
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   678
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   679
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   680
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   681
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   682
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   683
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   684
     self greenCheckIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   685
     ImageEditor openOnClass:self andSelector:#greenCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   686
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   687
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   688
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   689
    <resource: #image>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   690
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   691
    ^Icon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   692
        constantNamed:#'SystemBrowser class greenCheckIcon'
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   693
        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
   694
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   695
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   696
greenLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   697
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   698
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   699
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   700
    "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
   701
     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
   702
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   703
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   704
     self greenLockIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   705
     ImageEditor openOnClass:self andSelector:#greenLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   706
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   707
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   708
    <resource: #programImage>
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   709
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   710
    ^ self padLockGreenMiniIcon
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   711
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   712
    "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
   713
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   714
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   715
greenThumbUpIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   716
    "This resource specification was automatically generated
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   717
     by the ImageEditor of ST/X."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   718
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   719
    "Do not manually edit this!! If it is corrupted,
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   720
     the ImageEditor may not be able to read the specification."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   721
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   722
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   723
     self greenThumbUpIcon inspect
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   724
     ImageEditor openOnClass:self andSelector:#greenThumbUpIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   725
     Icon flushCachedIcons
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   726
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   727
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   728
    <resource: #image>
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   729
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   730
    ^Icon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   731
        constantNamed:#'SystemBrowser class greenThumbUpIcon'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   732
        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
   733
@@@@@@@@@@@@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
   734
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
   735
!
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   736
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   737
greenThumbUpSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   738
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   739
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   740
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   741
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   742
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   743
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   744
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   745
     self greenThumbUpSmallIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   746
     ImageEditor openOnClass:self andSelector:#greenThumbUpSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   747
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   748
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   749
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   750
    <resource: #image>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   751
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   752
    ^Icon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   753
        constantNamed:#'SystemBrowser class greenThumbUpSmallIcon'
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   754
        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
   755
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   756
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   757
greyCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   758
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   759
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   760
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   761
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   762
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   763
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   764
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   765
     self greyCheckIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   766
     ImageEditor openOnClass:self andSelector:#greyCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   767
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   768
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   769
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   770
    <resource: #image>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   771
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   772
    ^Icon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   773
        constantNamed:#'SystemBrowser class greyCheckIcon'
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   774
        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
   775
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   776
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   777
greyThumbUpIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   778
    "This resource specification was automatically generated
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   779
     by the ImageEditor of ST/X."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   780
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   781
    "Do not manually edit this!! If it is corrupted,
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   782
     the ImageEditor may not be able to read the specification."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   783
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   784
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   785
     self greyThumbUpIcon inspect
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   786
     ImageEditor openOnClass:self andSelector:#greyThumbUpIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   787
     Icon flushCachedIcons
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   788
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   789
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   790
    <resource: #image>
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   791
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   792
    ^Icon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   793
        constantNamed:#'SystemBrowser class greyThumbUpIcon'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   794
        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
   795
@@@@@@@@@@ @@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
   796
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
   797
!
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   798
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   799
helpIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   800
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   801
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   802
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   803
    "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
   804
     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
   805
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   806
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   807
     self helpIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   808
     ImageEditor openOnClass:self andSelector:#helpIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   809
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   810
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   811
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   812
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   813
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   814
        constantNamed:#'SystemBrowser helpIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   815
        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
   816
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   817
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   818
hierarchicalListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   819
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   820
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   821
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   822
    "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
   823
     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
   824
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   825
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   826
     ImageEditor openOnClass:self andSelector:#hierarchicalListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   827
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   828
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   829
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   830
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   831
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   832
        constantNamed:#'SystemBrowser hierarchicalListIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   833
        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
   834
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   835
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   836
imageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   837
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   838
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   839
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   840
    "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
   841
     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
   842
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   843
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   844
     self imageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   845
     ImageEditor openOnClass:self andSelector:#imageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   846
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   847
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   848
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   849
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   850
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   851
        constantNamed:#'SystemBrowser imageIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   852
        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
   853
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   854
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   855
medium_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   856
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   857
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   858
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   859
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   860
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   861
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   862
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   863
     self medium_methodEmptyInheritedIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   864
     ImageEditor openOnClass:self andSelector:#medium_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   865
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   866
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   867
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   868
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   869
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   870
        constantNamed:#'SystemBrowser class medium_methodEmptyInheritedIcon'
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   871
        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
   872
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   873
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   874
medium_methodInheritedFromAboveAndRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   875
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   876
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   877
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   878
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   879
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   880
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   881
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   882
     self medium_methodInheritedFromAboveAndRedefinedBelowIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   883
     ImageEditor openOnClass:self andSelector:#medium_methodInheritedFromAboveAndRedefinedBelowIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
   884
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   885
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   886
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   887
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   888
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   889
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   890
        constantNamed:#'SystemBrowser class medium_methodInheritedFromAboveAndRedefinedBelowIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
   891
        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
   892
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   893
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   894
medium_methodInheritedFromAboveIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   895
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   896
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   897
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   898
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   899
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   900
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   901
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   902
     self medium_methodInheritedFromAboveIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   903
     ImageEditor openOnClass:self andSelector:#medium_methodInheritedFromAboveIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
   904
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   905
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   906
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   907
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   908
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   909
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   910
        constantNamed:#'SystemBrowser class medium_methodInheritedFromAboveIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
   911
        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
   912
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   913
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   914
medium_methodRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   915
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   916
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   917
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   918
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   919
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   920
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   921
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   922
     self medium_methodRedefinedBelowIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   923
     ImageEditor openOnClass:self andSelector:#medium_methodRedefinedBelowIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
   924
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   925
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   926
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   927
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   928
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   929
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   930
        constantNamed:#'SystemBrowser class medium_methodRedefinedBelowIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
   931
        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
   932
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   933
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   934
menuIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   935
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   936
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   937
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   938
    "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
   939
     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
   940
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
     self menuIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   943
     ImageEditor openOnClass:self andSelector:#menuIcon
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
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   947
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   948
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   949
        constantNamed:#'SystemBrowser menuIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   950
        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
   951
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   952
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   953
methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   954
    ^ self small_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   955
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   956
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   957
methodInheritedFromAboveAndRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   958
    ^ self small_methodInheritedFromAboveAndRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   959
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   960
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   961
methodInheritedFromAboveIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   962
    ^ self small_methodInheritedFromAboveIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   963
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   964
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   965
methodRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   966
    ^ self small_methodRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   967
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   968
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   969
nameSpaceIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   970
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   971
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   972
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   973
    "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
   974
     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
   975
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   976
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   977
     self nameSpaceIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   978
     ImageEditor openOnClass:self andSelector:#nameSpaceIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   979
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   980
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   981
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   982
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   983
    ^Icon
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   984
        constantNamed:#'SystemBrowser class nameSpaceIcon'
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   985
        ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@AO8C?DS:"?1D:(/<QN*J?DS*"/1D:(+<QN*J/DR*"+1AJ(*!!@DJJA@@T@E@@@UT@@@a') ; colorMapFromArray:#[0 0 0 190 190 0 194 194 194 255 255 255]; mask:((ImageMask new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@G#1??7??_?=??7??_?=??7??O?8_?@?8@>@b') ; yourself); yourself]
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   986
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   987
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   988
packageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   989
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   990
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   991
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   992
    "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
   993
     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
   994
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   995
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   996
     self packageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   997
     ImageEditor openOnClass:self andSelector:#packageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   998
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   999
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1000
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1001
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1002
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1003
        constantNamed:#'SystemBrowser packageIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1004
        ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ATET@AUEE@APQAP@TDQT@AY%Z@@UUUX@J%*F@@E@I B)Z"X@*V(&@J%*I B)Z"X@*V($@J%*I@B)Z @@@T@@@@a') ; colorMapFromArray:#[0 0 0 132 0 132 255 255 0]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A30O[A%LF?<O?0??G?<??3??O?<??3??O?8??C?8O?@b') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1005
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1006
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1007
padLockBlueMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1008
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1009
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1010
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1011
    "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
  1012
     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
  1013
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1014
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1015
     self padLockBlueMiniIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1016
     ImageEditor openOnClass:self andSelector:#padLockBlueMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1017
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1018
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1019
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1020
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1021
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1022
        constantNamed:#'SystemBrowser padLockBlueMiniIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1023
        ifAbsentPut:[(Depth2Image new) width: 12; height: 12; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?0C??F$?<TEO<S1O<@@O2**#2UUS2TES2VES2UUS<@@O????') ; colorMapFromArray:#[0 0 0 128 128 255 212 212 255 255 255 255]; mask:((Depth1Image new) width: 12; height: 12; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1024
C0@_ C?@N\@?0G? _>A?8G? _>@?0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1025
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1026
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1027
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1028
padLockGrayMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1029
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1030
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1031
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1032
    "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
  1033
     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
  1034
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1035
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1036
     self padLockGrayMiniIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1037
     ImageEditor openOnClass:self andSelector:#padLockGrayMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1038
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1039
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1040
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1041
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1042
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1043
        constantNamed:#'SystemBrowser padLockGrayMiniIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1044
        ifAbsentPut:[(Depth2Image new) width: 12; height: 12; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?0C??F$?<TEO<S1O<@@O2**#2UUS2TES2VES2UUS<@@O????') ; colorMapFromArray:#[0 0 0 128 128 128 212 212 212 255 255 255]; mask:((Depth1Image new) width: 12; height: 12; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1045
C0@_ C?@N\@?0G? _>A?8G? _>@?0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1046
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]
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
padLockGreenMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1050
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1051
     by the ImageEditor of ST/X."
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
    "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
  1054
     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
  1055
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1056
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1057
     self padLockGreenMiniIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1058
     ImageEditor openOnClass:self andSelector:#padLockGreenMiniIcon
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
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1061
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1062
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1063
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1064
        constantNamed:#'SystemBrowser padLockGreenMiniIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1065
        ifAbsentPut:[(Depth2Image new) width: 12; height: 12; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?0C??F$?<TEO<S1O<@@O2**#2UUS2TES2VES2UUS<@@O????') ; colorMapFromArray:#[0 0 0 128 255 128 212 255 212 255 255 255]; mask:((Depth1Image new) width: 12; height: 12; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1066
C0@_ C?@N\@?0G? _>A?8G? _>@?0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1067
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1068
!
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
padLockRedMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1071
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1072
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1073
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1074
    "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
  1075
     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
  1076
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1077
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1078
     self padLockRedMiniIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1079
     ImageEditor openOnClass:self andSelector:#padLockRedMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1080
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1081
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1082
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1083
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1084
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1085
        constantNamed:#'SystemBrowser padLockRedMiniIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1086
        ifAbsentPut:[(Depth2Image new) width: 12; height: 12; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?0C??F$?<TEO<S1O<@@O2**#2UUS2TES2VES2UUS<@@O????') ; colorMapFromArray:#[0 0 0 255 128 128 255 212 212 255 255 255]; mask:((Depth1Image new) width: 12; height: 12; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1087
C0@_ C?@N\@?0G? _>A?8G? _>@?0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1088
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1089
!
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
privateMethodIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1092
    <resource: #programImage>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1093
2748
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
  1094
    ^ self padLockRedMiniIcon
2743
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
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1097
programImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1098
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1099
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1100
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1101
    "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
  1102
     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
  1103
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1104
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1105
     self programImageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1106
     ImageEditor openOnClass:self andSelector:#programImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1107
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1108
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1109
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1110
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1111
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1112
        constantNamed:#'SystemBrowser programImageIcon'
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1113
        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
  1114
!
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1115
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1116
programMenuIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1117
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1118
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1119
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1120
    "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
  1121
     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
  1122
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1123
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1124
     self programMenuIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1125
     ImageEditor openOnClass:self andSelector:#programMenuIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1126
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1127
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1128
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1129
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1130
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1131
        constantNamed:#'SystemBrowser programMenuIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1132
        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
  1133
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1134
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1135
protectedMethodIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1136
    <resource: #programImage>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1137
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1138
    ^ self padLockGreenMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1139
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1140
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1141
redCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1142
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1143
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1144
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1145
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1146
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1147
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1148
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1149
     self redCheckIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1150
     ImageEditor openOnClass:self andSelector:#redCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1151
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1152
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1153
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1154
    <resource: #image>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1155
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1156
    ^Icon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1157
        constantNamed:#'SystemBrowser class redCheckIcon'
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1158
        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
  1159
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1160
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1161
redLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1162
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1163
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1164
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1165
    "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
  1166
     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
  1167
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1168
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1169
     self redLockIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1170
     ImageEditor openOnClass:self andSelector:#redLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1171
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1172
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1173
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1174
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1175
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1176
        constantNamed:#'SystemBrowser redLockIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1177
        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
  1178
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1179
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1180
redThumbDownIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1181
    "This resource specification was automatically generated
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1182
     by the ImageEditor of ST/X."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1183
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1184
    "Do not manually edit this!! If it is corrupted,
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1185
     the ImageEditor may not be able to read the specification."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1186
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1187
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1188
     self redThumbDownIcon inspect
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1189
     ImageEditor openOnClass:self andSelector:#redThumbDownIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1190
     Icon flushCachedIcons
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1191
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1192
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1193
    <resource: #image>
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1194
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1195
    ^Icon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1196
        constantNamed:#'SystemBrowser class redThumbDownIcon'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1197
        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
  1198
@@@@@@@@@@@@@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
  1199
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
  1200
!
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1201
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1202
redThumbDownSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1203
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1204
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1205
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1206
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1207
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1208
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1209
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1210
     self redThumbDownSmallIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1211
     ImageEditor openOnClass:self andSelector:#redThumbDownSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1212
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1213
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1214
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1215
    <resource: #image>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1216
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1217
    ^Icon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1218
        constantNamed:#'SystemBrowser class redThumbDownSmallIcon'
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  1219
        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
  1220
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1221
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1222
removeBreakPointIcon2
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1223
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1224
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1225
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1226
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1227
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1228
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1229
    "
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1230
     self removeBreakPointIcon2 inspect
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1231
     ImageEditor openOnClass:self andSelector:#removeBreakPointIcon2
4222
e03784758764 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4200
diff changeset
  1232
     Icon flushCachedIcons
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1233
    "
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1234
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1235
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1236
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1237
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1238
        constantNamed:#'SystemBrowser class removeBreakPointIcon2'
4222
e03784758764 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4200
diff changeset
  1239
        ifAbsentPut:[(Depth2Image new) width: 12; height: 21; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'****/??>/:+>/**>.)V..%U..%U..UU./%V>/:+>/??>/:+>/%V>.TA..P@..P@..@@./ B>/:+>/??>****') ; colorMapFromArray:#[0 255 0 63 63 63 0 0 0 127 127 127]; mask:((Depth1Image new) width: 12; height: 21; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??C?<O?0??C?<O?0??C?<O?0??C?<O?0??C?<O?0??C?<O?0??C?<O?0') ; yourself); yourself]
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1240
!
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1241
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1242
small_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1243
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1244
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1245
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1246
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1247
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1248
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1249
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1250
     self small_methodEmptyInheritedIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1251
     ImageEditor openOnClass:self andSelector:#small_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1252
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1253
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1254
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1255
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1256
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1257
        constantNamed:#'SystemBrowser class small_methodEmptyInheritedIcon'
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1258
        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
  1259
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1260
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1261
small_methodInheritedFromAboveAndRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1262
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1263
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1264
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1265
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1266
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1267
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1268
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1269
     self small_methodInheritedFromAboveAndRedefinedBelowIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1270
     ImageEditor openOnClass:self andSelector:#small_methodInheritedFromAboveAndRedefinedBelowIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1271
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1272
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1273
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1274
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1275
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1276
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1277
        constantNamed:#'SystemBrowser class small_methodInheritedFromAboveAndRedefinedBelowIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1278
        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
  1279
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1280
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1281
small_methodInheritedFromAboveIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1282
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1283
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1284
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1285
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1286
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1287
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1288
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1289
     self small_methodInheritedFromAboveIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1290
     ImageEditor openOnClass:self andSelector:#small_methodInheritedFromAboveIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1291
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1292
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1293
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1294
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1295
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1296
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1297
        constantNamed:#'SystemBrowser class small_methodInheritedFromAboveIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1298
        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
  1299
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1300
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1301
small_methodRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1302
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1303
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1304
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1305
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1306
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1307
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1308
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1309
     self small_methodRedefinedBelowIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1310
     ImageEditor openOnClass:self andSelector:#small_methodRedefinedBelowIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1311
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1312
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1313
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1314
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1315
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1316
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1317
        constantNamed:#'SystemBrowser class small_methodRedefinedBelowIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1318
        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
  1319
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1320
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1321
startableClassIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1322
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1323
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1324
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1325
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1326
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1327
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1328
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1329
     self startableClassIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1330
     ImageEditor openOnClass:self andSelector:#startableClassIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1331
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1332
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1333
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1334
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1335
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1336
        constantNamed:#'SystemBrowser class startableClassIcon'
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1337
        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
  1338
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1339
    "Created: / 5.11.2001 / 09:50:16 / cg"
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1340
!
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1341
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1342
startableVisualAppIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1343
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1344
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1345
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1346
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1347
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1348
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1349
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1350
     self startableVisualAppIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1351
     ImageEditor openOnClass:self andSelector:#startableVisualAppIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1352
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1353
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1354
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1355
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1356
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1357
        constantNamed:#'SystemBrowser class startableVisualAppIcon'
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1358
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@A@P@@@@9&XPE&XP@NY!!C E&D@C&DN; E!!@@9!!@N@AXP@NXP8N@VD@C&DN; E!!@@9!!A&XAXP@NXPY&@VD@C1DVI!!DQ@@@@D"HP@@@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
  1359
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1360
    "Created: / 5.11.2001 / 09:49:00 / cg"
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1361
!
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1362
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1363
stopIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1364
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1365
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1366
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1367
    "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
  1368
     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
  1369
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
     self stopIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1372
     ImageEditor openOnClass:self andSelector:#stopIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1373
    "
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
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1376
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1377
    ^Icon
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1378
        constantNamed:#'SystemBrowser class stopIcon'
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1379
        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
  1380
!
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
tabListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1383
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1384
     by the ImageEditor of ST/X."
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
    "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
  1387
     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
  1388
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1389
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1390
     self tabListIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1391
     ImageEditor openOnClass:self andSelector:#tabListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1392
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1393
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1394
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1395
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1396
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1397
        constantNamed:#'SystemBrowser tabListIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1398
        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
  1399
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1400
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1401
tableColumnsIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1402
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1403
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1404
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1405
    "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
  1406
     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
  1407
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1408
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1409
     self tableColumnsIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1410
     ImageEditor openOnClass:self andSelector:#tableColumnsIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1411
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1412
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1413
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1414
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1415
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1416
        constantNamed:#'SystemBrowser tableColumnsIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1417
        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
  1418
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1419
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1420
testCaseClassIcon
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1421
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1422
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1423
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1424
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1425
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1426
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1427
    "
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1428
     self testCaseClassIcon inspect
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1429
     ImageEditor openOnClass:self andSelector:#testCaseClassIcon
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1430
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1431
    "
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1432
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1433
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1434
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1435
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1436
        constantNamed:#'SystemBrowser class testCaseClassIcon'
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1437
        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]
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1438
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1439
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1440
testCaseClassIconFor:cls
4167
588e05d2124d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4166
diff changeset
  1441
    <resource: #programImage>
588e05d2124d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4166
diff changeset
  1442
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1443
    |lastResult|
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1444
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  1445
    lastResult := cls lastTestRunResultOrNil.
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1446
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1447
    lastResult == true ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1448
        ^ self testCasePassedIcon
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1449
    ].
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1450
    lastResult == false ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1451
        ^ self testCaseFailedIcon
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1452
    ].
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1453
    ^ self testCaseUnknownResultIcon
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1454
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1455
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1456
testCaseFailedIcon
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1457
    <resource: #programImage>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1458
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1459
"/    ^ self redThumbDownIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1460
    ^ self redThumbDownSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1461
"/    ^ self redCheckIcon
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1462
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1463
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1464
testCasePassedIcon
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1465
   <resource: #programImage>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1466
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1467
"/    ^ self greenThumbUpIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1468
    ^ self greenThumbUpSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1469
"/    ^ self greenCheckIcon
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1470
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1471
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1472
testCaseUnknownResultIcon
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1473
    <resource: #programImage>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1474
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1475
"/    ^ self greyThumbUpIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1476
    ^ self greyCheckIcon
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1477
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1478
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1479
timeIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1480
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1481
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1482
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1483
    "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
  1484
     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
  1485
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1486
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1487
     self timeIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1488
     ImageEditor openOnClass:self andSelector:#timeIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1489
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1490
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1491
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1492
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1493
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1494
        constantNamed:#'SystemBrowser timeIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1495
        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
  1496
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1497
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1498
traceIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1499
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1500
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1501
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1502
    "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
  1503
     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
  1504
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1505
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1506
     self traceIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1507
     ImageEditor openOnClass:self andSelector:#traceIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1508
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1509
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1510
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1511
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1512
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1513
        constantNamed:#'SystemBrowser traceIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1514
        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
  1515
!
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1516
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1517
visualStartableClassIcon
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1518
    "This resource specification was automatically generated
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1519
     by the ImageEditor of ST/X."
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1520
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1521
    "Do not manually edit this!! If it is corrupted,
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1522
     the ImageEditor may not be able to read the specification."
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1523
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1524
    "
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1525
     self visualStartableClassIcon inspect
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1526
     ImageEditor openOnClass:self andSelector:#visualStartableClassIcon
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1527
    "
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1528
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1529
    <resource: #image>
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1530
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1531
    ^Icon
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1532
        constantNamed:#'SystemBrowser class visualStartableClassIcon'
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1533
        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
  1534
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1535
    "Modified: / 5.11.2001 / 09:49:30 / cg"
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1536
!
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1537
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1538
watchIcon
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1539
    "This resource specification was automatically generated
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1540
     by the ImageEditor of ST/X."
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1541
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1542
    "Do not manually edit this!! If it is corrupted,
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1543
     the ImageEditor may not be able to read the specification."
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1544
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1545
    "
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1546
     self watchIcon inspect
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1547
     ImageEditor openOnClass:self andSelector:#watchIcon
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1548
    "
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1549
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1550
    <resource: #image>
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1551
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1552
    ^Icon
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1553
        constantNamed:#'SystemBrowser class watchIcon'
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1554
        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
  1555
!
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1556
4143
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1557
windowClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1558
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1559
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1560
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1561
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1562
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1563
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1564
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1565
     self windowClassIcon inspect
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1566
     ImageEditor openOnClass:self andSelector:#windowClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1567
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1568
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1569
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1570
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1571
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1572
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1573
        constantNamed:#'SystemBrowser class windowClassIcon'
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1574
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@;.;.;.8P@N??????D@C/?????1@@;?????<P@N??????D@C/?????1@@;?????<P@N??????D@@QDQDQDQ@@@@@@@@@@@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: 4130
diff changeset
  1575
!
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1576
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1577
windowIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1578
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1579
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1580
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1581
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1582
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1583
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1584
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1585
     self windowIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1586
     ImageEditor openOnClass:self andSelector:#windowIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1587
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1588
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1589
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1590
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1591
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1592
        constantNamed:#'SystemBrowser class windowIcon'
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1593
        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
  1594
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1595
    "Created: / 5.11.2001 / 09:39:03 / cg"
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1596
! !
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  1597
1203
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1598
!SystemBrowser class methodsFor:'interface specs'!
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1599
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1600
metaSpec
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1601
        "UIPainter new openOnClass: self andSelector: #metaSpec"
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1602
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1603
        <resource: #canvas>
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1604
        ^#(#FullSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1605
                #window: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1606
                #(#WindowSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1607
                        #label: 'Unlabeled Canvas' 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1608
                        #bounds: #(#Rectangle 27 249 325 334 ) ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1609
                #component: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1610
                #(#SpecCollection 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1611
                        #collection: #(
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1612
                                #(#RadioButtonSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1613
                                        #layout: #(#LayoutFrame 0 0 4 0 -1 0.575 20 0 ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1614
                                        #name: #instanceSwitch 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1615
                                        #model: #metaHolder 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1616
                                        #callbacksSpec: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1617
                                        #(#UIEventCallbackSubSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1618
                                                #requestValueChangeSelector: #changeRequest ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1619
                                        #label: 'instance' 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1620
                                        #select: false ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1621
                                #(#RadioButtonSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1622
                                        #layout: #(#LayoutFrame 1 0.575 4 0 -1 1 20 0 ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1623
                                        #name: #classSwitch 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1624
                                        #model: #metaHolder 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1625
                                        #callbacksSpec: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1626
                                        #(#UIEventCallbackSubSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1627
                                                #requestValueChangeSelector: #changeRequest ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1628
                                        #label: 'class' 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1629
                                        #select: true ) ) ) )
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1630
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1631
    "Created: / 30.10.1997 / 19:07:29 / cg"
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1632
!
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1633
1203
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1634
methodMoveDialogSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1635
    "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
  1636
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1637
    "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
  1638
     handle the specification if its corrupted."
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1639
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1640
    "
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1641
     UIPainter new openOnClass:SystemBrowser andSelector:#methodMoveDialogSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1642
     SystemBrowser new openDialogInterface:#methodMoveDialogSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1643
    "
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1644
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1645
    <resource: #canvas>
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1646
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1647
    ^
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1648
     
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1649
       #(#FullSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1650
          #'window:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1651
           #(#WindowSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1652
              #'name:' 'uIPainterView'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1653
              #'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
  1654
              #'label:' 'move method'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1655
              #'bounds:' #(#Rectangle 0 0 279 118)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1656
          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1657
          #'component:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1658
           #(#SpecCollection
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1659
              #'collection:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1660
               #(
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1661
                 #(#HorizontalPanelViewSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1662
                    #'name:' 'horizontalPanelView'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1663
                    #'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
  1664
                    #'component:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1665
                     #(#SpecCollection
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1666
                        #'collection:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1667
                         #(
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1668
                           #(#ActionButtonSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1669
                              #'name:' 'actionButton2'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1670
                              #'label:' 'cancel'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1671
                              #'tabable:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1672
                              #'model:' #cancel
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1673
                              #'extent:' #(#Point 133 27)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1674
                          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1675
                           #(#ActionButtonSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1676
                              #'name:' 'actionButton1'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1677
                              #'label:' 'move'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1678
                              #'tabable:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1679
                              #'isDefault:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1680
                              #'model:' #accept
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1681
                              #'extent:' #(#Point 134 27)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1682
                          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1683
                        )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1684
                    )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1685
                    #'level:' 0
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1686
                    #'horizontalLayout:' #fitSpace
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1687
                    #'verticalLayout:' #center
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1688
                    #'horizontalSpace:' 4
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1689
                    #'verticalSpace:' 4
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1690
                )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1691
                 #(#LabelSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1692
                    #'name:' 'label'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1693
                    #'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
  1694
                    #'label:' 'move current method to which class:'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1695
                    #'style:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1696
                     #(#Font
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1697
                        'helvetica' 'medium'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1698
                        'roman' 12
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1699
                    )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1700
                    #'foregroundColor:' #(#Color 0.0 0.0 0.0)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1701
                    #'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1702
                    #'adjust:' #left
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1703
                )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1704
                 #(#ComboBoxSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1705
                    #'name:' 'comboBox1'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1706
                    #'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
  1707
                    #'tabable:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1708
                    #'model:' #className
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1709
                    #'comboList:' #classList
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1710
                )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1711
              )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1712
          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1713
      )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1714
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1715
    "Created: 25.6.1997 / 13:45:20 / cg"
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1716
    "Modified: 25.6.1997 / 13:46:44 / cg"
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1717
! !
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1718
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1719
!SystemBrowser class methodsFor:'private helpers'!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1720
2880
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1721
askForPackageChangeFrom:oldPkg to:newPkg
3626
abf84bdbfdb2 Remove unused method vars
Stefan Vogel <sv@exept.de>
parents: 3621
diff changeset
  1722
    |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
  1723
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1724
    box := OptionBox 
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1725
                title:
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1726
('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
  1727
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
  1728
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
  1729
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
  1730
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
  1731
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
  1732
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
  1733
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1734
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
  1735
                        bindWith:(oldPkg allBold)
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1736
                            with:(newPkg allBold))
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1737
                numberOfOptions:3.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1738
3476
685f67f7e818 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
  1739
    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
  1740
    box defaultButtonIndex:3. 
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1741
    box action:[:n | answer := #(#cancel #keep #continue) at:n].
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1742
    box label:'Method redefinition'; form:(WarningBox iconBitmap).
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1743
    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
  1744
    box addVerticalSpace:10.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1745
    chk := box addCheckBox:'Dont show this dialog again (never keep)' on:(notAgain := false asValue).
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1746
    box preferredExtent:(box preferredExtent + (0 @ chk preferredExtent y) + (0@10)).
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1747
    box resize.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1748
    box showAtPointer.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1749
    box destroy.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1750
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1751
    (answer ~~ #cancel) ifTrue:[
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1752
        notAgain value ifTrue:[
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1753
            Class catchMethodRedefinitions:false.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1754
        ].
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1755
    ].
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1756
    ^ answer.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1757
!
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1758
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1759
showNoneFound
3244
1e41eccb08b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3241
diff changeset
  1760
    self warn:(self classResources string:'None found.').
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1761
!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1762
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1763
showNoneFound:what
1620
51341ec8360b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1573
diff changeset
  1764
    |rs|
51341ec8360b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1573
diff changeset
  1765
51341ec8360b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1573
diff changeset
  1766
    rs := self classResources.
3244
1e41eccb08b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3241
diff changeset
  1767
    self information:((rs string:what) , (rs string:'...\\... none found.')) withCRs.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1768
! !
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1769
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1770
!SystemBrowser class methodsFor:'private instance creation'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1771
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1772
newWithLabel:aString setupBlock:aBlock
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1773
    "common helper method for all creation methods"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1774
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1775
    ^ self newWithLabel:aString setupBlock:aBlock onDevice:Screen current
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1776
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1777
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1778
newWithLabel:aString setupBlock:aBlock onDevice:aWorkstation
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1779
    "common helper method for all creation methods"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1780
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1781
    |newBrowser|
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  1782
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1783
    newBrowser := BrowserView onDevice:aWorkstation.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1784
    newBrowser title:aString.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1785
    aBlock value:newBrowser.
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  1786
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1787
    newBrowser open.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1788
    ^ newBrowser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1789
!
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  1790
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1791
newWithLabel:aString setupSelector:aSymbol arg:arg
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1792
    "common helper method for all creation methods"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1793
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1794
    ^ self newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:Screen current 
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1795
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1796
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1797
newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:aWorkstation
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1798
    "common helper method for all creation methods"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1799
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1800
    |newBrowser|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1801
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1802
    newBrowser := BrowserView onDevice:aWorkstation.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1803
    newBrowser title:aString.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1804
    newBrowser perform:aSymbol with:arg.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1805
    newBrowser open.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1806
    ^ newBrowser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1807
! !
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1808
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1809
!SystemBrowser class methodsFor:'special search startup'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1810
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1811
allCallsOn:aSelectorString
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1812
    "return a collection of methods which send aSelector."
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1813
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1814
    ^ 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
  1815
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1816
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1817
     SystemBrowser allCallsOn:#at:put:
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1818
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1819
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1820
    "Created: 24.1.1997 / 19:42:57 / cg"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1821
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1822
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1823
allCallsOn:aSelectorString in:aCollectionOfClasses
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1824
    "return a collection of methods which send aSelector.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1825
     Methods from classes in aCollectionOfClasses are searched only."
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1826
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1827
    ^ 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
  1828
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1829
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1830
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
  1831
    "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
  1832
     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
  1833
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1834
    ^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1835
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1836
    "
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1837
     SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses)
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1838
    "
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1839
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1840
    "Modified: 18.4.1997 / 10:32:50 / cg"
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1841
!
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1842
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1843
allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1844
    "return a collection of methods which send aSelector.
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1845
     Methods from classes in aCollectionOfClasses are searched only."
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1846
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  1847
    |sel searchBlock classesSearched|
3471
4c4b41516d96 care for empty selector in allCallsOn.
Claus Gittinger <cg@exept.de>
parents: 3470
diff changeset
  1848
4c4b41516d96 care for empty selector in allCallsOn.
Claus Gittinger <cg@exept.de>
parents: 3470
diff changeset
  1849
    aSelectorString size == 0 ifTrue:[ ^ #() ].
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1850
    doMatch ifFalse:[
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1851
        sel := aSelectorString asSymbolIfInterned.
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1852
        sel isNil ifTrue:[
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1853
            ^ #()    "/ none (no such selector)
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1854
        ].
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1855
    ]. 
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  1856
2901
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1857
    classesSearched := aCollectionOfClasses.
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1858
    (doMatch and:[aSelectorString includesMatchCharacters]) ifFalse:[
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  1859
        "/ exclude javaClasses, if selector cannot be a valid java-selector
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1860
        (aSelectorString includes:$() ifFalse:[
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  1861
            classesSearched := classesSearched select:[:eachClass | eachClass theNonMetaclass isJavaClass not].
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1862
        ].
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1863
    ].
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  1864
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  1865
    searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch.
2901
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1866
    ^ self allMethodsIn:classesSearched where:searchBlock
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1867
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1868
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1869
     SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1870
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1871
1143
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1872
    "Modified: 18.4.1997 / 10:32:50 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1873
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1874
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1875
allMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1876
    "return a collection of methods which pass the given test.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1877
     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
  1878
     considered.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1879
     Only classes in aCollectionOfClasses are inspected in the search"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1880
2769
768b6aa2fb5f eliminated a message
Claus Gittinger <cg@exept.de>
parents: 2748
diff changeset
  1881
    |list activePriority|
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1882
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1883
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1884
     since this may take a long time, lower my priority ...
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1885
    "
2769
768b6aa2fb5f eliminated a message
Claus Gittinger <cg@exept.de>
parents: 2748
diff changeset
  1886
    activePriority := Processor activePriority.
2295
4e05198e7dd8 execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  1887
    Processor activeProcess 
2769
768b6aa2fb5f eliminated a message
Claus Gittinger <cg@exept.de>
parents: 2748
diff changeset
  1888
        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
  1889
    do:[
2484
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  1890
        |checkedClasses checkBlock detectedMethods|
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1891
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1892
        checkedClasses := IdentitySet new.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1893
        list := OrderedCollection new.
2484
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  1894
        detectedMethods := IdentitySet new.
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1895
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1896
        checkBlock := [:cls |
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1897
            (checkedClasses includes:cls) ifFalse:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1898
                cls isObsolete ifTrue:[
2882
2a12342fef79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2880
diff changeset
  1899
                    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
  1900
                ] ifFalse:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1901
                    cls methodDictionary keysAndValuesDo:[:sel :method |
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1902
                        (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
  1903
                            "/ 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
  1904
                            (detectedMethods includes:method) ifFalse:[
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  1905
                                list add:method.
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  1906
                                detectedMethods add:method
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  1907
                            ]
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1908
                        ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1909
                    ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1910
                    checkedClasses add:cls.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1911
                ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1912
            ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1913
        ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1914
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1915
        aCollectionOfClasses do:[:aClass |
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1916
            "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1917
             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
  1918
             implementors or senders)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1919
            "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1920
            wantInst ifTrue:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1921
"/                Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1922
                checkBlock value:aClass
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1923
            ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1924
            wantClass ifTrue:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1925
"/                Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1926
                checkBlock value:(aClass class)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1927
            ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1928
            Processor yield
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1929
        ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1930
    ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1931
    ^ list
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1932
2484
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  1933
    "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
  1934
    "Modified: / 14.12.1999 / 14:59:02 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1935
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1936
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1937
allMethodsIn:aCollectionOfClasses where:aBlock
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1938
    "return a collection of methods which pass the given test.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1939
     Only classes in aCollectionOfClasses are inspected in the search"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1940
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1941
    ^ self
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1942
        allMethodsIn:aCollectionOfClasses 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1943
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1944
        class:true
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1945
        where:aBlock
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1946
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1947
    "Created: 24.1.1997 / 19:41:49 / cg"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1948
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1949
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1950
aproposSearch:aString
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  1951
    "browse all methods, which have aString in their selector."
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1952
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1953
    ^ self aproposSearch:aString in:(Smalltalk allClasses)
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  1954
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1955
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1956
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1957
aproposSearch:aString in:aCollectionOfClasses
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  1958
    "browse all methods, which have aString.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1959
     This is relatively slow, since all source must be processed."
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1960
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1961
    |matchString list s searchBlock browser|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1962
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1963
    matchString := '*' , aString , '*'.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1964
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1965
    list := OrderedCollection new.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1966
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1967
    (aString includesMatchCharacters) ifTrue:[
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  1968
        s := '*' , aString asLowercase , '*'.
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1969
        "a matchString"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1970
        searchBlock := [:text | (text asCollectionOfLinesfindFirst:[:line | s match:line]) ~~ 0].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1971
    ] ifFalse:[
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  1972
        searchBlock := [:source | (source findString:aString asLowercase) ~~ 0]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1973
    ].
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1974
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1975
    browser := self browseMethodsIn:aCollectionOfClasses 
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1976
                     where:[:class :method :sel |
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1977
                                |comment|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1978
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  1979
                                (searchBlock value:sel asLowercase)
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1980
                           ]
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  1981
                     title:(self classResources string:'selectors containing: %1' with:aString).
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1982
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1983
    browser notNil ifTrue:[
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1984
        browser autoSearch:aString 
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1985
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1986
    ^ browser
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1987
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1988
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1989
     SystemBrowser aproposSearch:'append' in:(Collection withAllSubclasses)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1990
     SystemBrowser aproposSearch:'add'    in:(Collection withAllSubclasses)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1991
     SystemBrowser aproposSearch:'sort'   in:(Collection withAllSubclasses)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1992
     SystemBrowser aproposSearch:'[Aa]bsent' in:(Collection withAllSubclasses)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1993
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1994
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1995
    "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
  1996
!
6f4460d5a09d added supersend searches; offer comparing the current version with the
Claus Gittinger <cg@exept.de>
parents: 203
diff changeset
  1997
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1998
browseAllCallsOn:aSelectorString
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1999
    "launch a browser for all senders of aSelector"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2000
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2001
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2002
        browseAllCallsOn:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2003
        in:(Smalltalk allClasses)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2004
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2005
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2006
     SystemBrowser browseAllCallsOn:#+
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2007
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2008
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2009
    "Created: 9.12.1995 / 18:00:41 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2010
    "Modified: 10.7.1996 / 10:26:15 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2011
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2012
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2013
browseAllCallsOn:aSelectorString in:aSetOfClasses
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2014
    "launch a browser for all senders of aSelector"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2015
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2016
    ^ self
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2017
        browseAllCallsOn:aSelectorString 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2018
        in:aSetOfClasses
4200
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2019
        title:(self classResources string:'Senders of: %1' with:aSelectorString)
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2020
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2021
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2022
     SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses)
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2023
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2024
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2025
    "Created: 10.7.1996 / 10:25:49 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2026
    "Modified: 24.1.1997 / 19:49:34 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2027
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2028
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2029
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
  2030
    "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
  2031
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2032
    ^ self
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2033
        browseAllCallsOn:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2034
        in:aSetOfClasses
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2035
        ignoreCase:ignoreCase
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2036
        title:(self classResources string:'senders of: %1' with:aSelectorString)
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2037
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2038
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2039
     SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses)
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2040
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2041
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2042
    "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
  2043
    "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
  2044
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2045
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2046
browseAllCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:title
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2047
    "launch a browser for all senders of aSelector in aCollectionOfClasses"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2048
4200
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2049
    |list browser|
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2050
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2051
    list := self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true.
4200
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2052
    list isEmpty ifTrue:[
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2053
        self showNoneFound:title.
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2054
        ^ nil
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2055
    ].
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2056
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2057
    browser := self browseMethods:list title:title.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2058
    browser notNil ifTrue:[
648
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2059
        |s|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2060
648
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2061
        "
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2062
         kludge for now, if its a multipart selector,
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2063
         no easy search is (as yet) possible
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2064
        "
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2065
        s := aSelectorString.
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2066
        (s includes:$:) ifTrue:[
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2067
            s := s copyTo:(s indexOf:$:)
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2068
        ].
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2069
        browser autoSearch:s 
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2070
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2071
    ^ browser
648
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2072
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2073
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2074
     SystemBrowser
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2075
        browseAllCallsOn:#+ 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2076
        in:(Number withAllSubclasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2077
        title:'just a test'
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2078
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2079
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2080
    "Modified: 24.1.1997 / 19:48:54 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2081
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2082
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2083
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
  2084
    "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
  2085
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2086
    ^ self
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2087
        browseAllCallsOn:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2088
        in:aCollectionOfClasses 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2089
        ignoreCase:false 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2090
        title:title
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2091
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2092
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2093
     SystemBrowser
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2094
        browseAllCallsOn:#+ 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2095
        in:(Number withAllSubclasses) 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2096
        title:'just a test'
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2097
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2098
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2099
    "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
  2100
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2101
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2102
browseCallsOn:aSelectorString under:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2103
    "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
  2104
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2105
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2106
        browseAllCallsOn:aSelectorString
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2107
                      in:(aClass withAllSubclasses)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2108
                   title:(self classResources 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2109
                                string:'senders of: %1 (in and below %2)'
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2110
                                with:aSelectorString 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2111
                                with:aClass name)
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2112
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2113
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2114
     SystemBrowser browseCallsOn:#+ under:Number
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2115
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2116
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2117
    "Created: 9.12.1995 / 17:59:57 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2118
    "Modified: 24.1.1997 / 19:50:33 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2119
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2120
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2121
browseClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2122
    "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
  2123
     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
  2124
     classvar is modified"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2125
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2126
    ^ self browseRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2127
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2128
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2129
browseClassRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2130
    "launch a browser for all methods in aCollectionOfClasses,
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2131
     where the classVar named aString is referenced; 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2132
     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
  2133
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2134
    ^ self browseRefsTo:varName classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2135
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2136
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2137
browseClassRefsTo:aString under:aClass modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2138
    "launch a browser for all methods in aClass and subclasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2139
     where the classVar named aString is referenced; 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2140
     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
  2141
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2142
    ^ self browseClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2143
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2144
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2145
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2146
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
  2147
    "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
  2148
     resource in aCollectionOfClasses.
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2149
     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
  2150
     are parsed.
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2151
     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
  2152
        browseForResource:#style containing:nil in:... title:...
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2153
     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
  2154
        browseForResource:#style containing:'arrowButtonDownForm' in:... title:..."
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2155
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 675
diff changeset
  2156
    |browser searchBlock|
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2157
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2158
    "/ search for any resource can be done without looking
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2159
    "/ at the source ...
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2160
    (aResourceSymbol isNil and:[item isNil]) ifTrue:[
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2161
        searchBlock := [:class :method :s | method hasResource]
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2162
    ] ifFalse:[
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2163
        searchBlock := [:class :method :s |
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2164
                            |rsrc val found|
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2165
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2166
                            found := false.
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2167
                            method hasResource ifTrue:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2168
                                rsrc := method resources.
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2169
                                rsrc notNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2170
                                    aResourceSymbol isNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2171
                                        item isNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2172
                                            found := true
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2173
                                        ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2174
                                            rsrc isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2175
                                                rsrc keysAndValuesDo:[:rsrc :val |
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2176
                                                    val isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2177
                                                        val do:[:v |
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2178
                                                            found := item match:v printString 
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2179
                                                        ]
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2180
                                                    ] ifFalse:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2181
                                                        found := item match:val printString 
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2182
                                                    ]
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2183
                                                ]
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2184
                                            ] ifFalse:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2185
                                                found := item match:rsrc printString
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2186
                                            ]
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2187
                                        ]
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2188
                                    ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2189
                                        (rsrc includesKey:aResourceSymbol) ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2190
                                            item isNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2191
                                                found := true
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2192
                                            ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2193
                                                rsrc isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2194
                                                    val := rsrc at:aResourceSymbol.
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2195
                                                    val isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2196
                                                        val do:[:v |
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2197
                                                            found := item match:v printString 
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2198
                                                        ]
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2199
                                                    ] ifFalse:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2200
                                                        found := item match:val printString 
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2201
                                                    ]
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2202
                                                ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2203
                                                    found := item match:rsrc printString
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2204
                                                ]
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2205
                                            ]
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2206
                                        ]
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2207
                                    ]
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2208
                                ].
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2209
                            ].
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2210
                            found
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2211
                       ].
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2212
    ].
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2213
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2214
    browser := self browseMethodsIn:aCollectionOfClasses
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2215
                              where:searchBlock
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2216
                              title:title.
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2217
    browser notNil ifTrue:[
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2218
        browser autoSearch:'resource:' 
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2219
    ].
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2220
    ^ browser
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2221
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2222
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2223
     SystemBrowser
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2224
        browseForResource:nil
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2225
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2226
        title:'methods with a resource'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2227
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2228
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2229
     SystemBrowser
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2230
        browseForResource:#style
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2231
        containing:nil
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2232
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2233
        title:'methods with a #style resource'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2234
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2235
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2236
     SystemBrowser
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2237
        browseForResource:#style
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2238
        containing:'arrowButton*'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2239
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2240
        title:'methods with a #style resource'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2241
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2242
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2243
    "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
  2244
!
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2245
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2246
browseForResource:aResourceSymbol in:aCollectionOfClasses title:title
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2247
    "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
  2248
     resource in aCollectionOfClasses"
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2249
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2250
    ^ self
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2251
        browseForResource:aResourceSymbol
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2252
        containing:nil
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2253
        in:aCollectionOfClasses 
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2254
        title:title
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2255
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2256
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2257
     SystemBrowser
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2258
        browseForResource:#style
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2259
        in:Smalltalk allClasses
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2260
        title:'methods accessing styleSheet values'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2261
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2262
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2263
     SystemBrowser
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2264
        browseForResource:#keyboard
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2265
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2266
        title:'methods handling keyboard events'
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2267
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2268
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2269
     SystemBrowser
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2270
        browseForResource:nil
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2271
        in:Smalltalk allClasses
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2272
        title:'methods with a resource'
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2273
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2274
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2275
    "Modified: 9.1.1997 / 12:44:38 / cg"
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2276
!
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2277
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2278
browseForString:aString
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2279
    "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
  2280
     This may be slow, since source-code has to be scanned."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2281
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2282
    ^ self browseForString:aString in:(Smalltalk allClasses) ignoreCase:false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2283
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2284
    "Modified: / 18.6.1998 / 16:42:39 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2285
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2286
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2287
browseForString:aString in:aCollectionOfClasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2288
    "launch a browser for all methods in aCollectionOfClasses  
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2289
     containing a string in their source.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2290
     This may be slow, since source-code has to be scanned."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2291
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2292
    ^ self
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2293
        browseForString:aString 
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2294
        in:aCollectionOfClasses 
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2295
        ignoreCase:false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2296
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2297
    "
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2298
     SystemBrowser browseForString:'all'      in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2299
     SystemBrowser browseForString:'should'   in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2300
     SystemBrowser browseForString:'[eE]rror' in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2301
    "
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2302
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2303
    "Created: / 9.12.1995 / 18:03:12 / cg"
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2304
    "Modified: / 18.6.1998 / 16:43:27 / cg"
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2305
!
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2306
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2307
browseForString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2308
    "launch a browser for all methods in aCollectionOfClasses  
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2309
     containing a string in their source.
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2310
     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
  2311
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2312
    |browser searchBlock title s|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2313
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2314
    title := self classResources string:'methods containing: %1' with:aString displayString.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2315
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2316
    (aString includesMatchCharacters
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2317
    or:[ignoreCase]) ifTrue:[
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2318
        s := '*' , aString , '*'.
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2319
        "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
  2320
        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
  2321
                            |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
  2322
                            src := m source.
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2323
                            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
  2324
                                ('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
  2325
                                false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2326
                            ] ifFalse:[
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2327
                                s match:src ignoreCase:ignoreCase
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2328
                            ]
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
  2329
                       ]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2330
    ] 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
  2331
        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
  2332
                            |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
  2333
b14b3ab39af6 dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents: 436
diff changeset
  2334
                            src := m source.
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2335
                            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
  2336
                                ('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
  2337
                                false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2338
                            ] ifFalse:[
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2339
                                (src findString:aString) ~~ 0
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2340
                            ]
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
  2341
                       ]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2342
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2343
    browser := self browseMethodsIn:aCollectionOfClasses where:searchBlock title:title.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2344
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2345
    browser notNil ifTrue:[
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2346
        browser autoSearch:aString ignoreCase:ignoreCase
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2347
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2348
    ^ browser
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
    "
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2351
     SystemBrowser browseForString:'all'      in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2352
     SystemBrowser browseForString:'should'   in:(Array with:Object)
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2353
     SystemBrowser browseForString:'[eE]rror' in:(Array with:Object)
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
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2356
    "Created: / 18.6.1998 / 16:42:50 / cg"
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2357
    "Modified: / 18.6.1998 / 16:51:25 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2358
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2359
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2360
browseForSymbol:aSymbol
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2361
    "launch a browser for all methods referencing aSymbol"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2362
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2363
    ^ self 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2364
        browseForSymbol:aSymbol 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2365
        title:(self classResources string:'users of: %1' with:aSymbol) 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2366
        warnIfNone:true
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2367
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2368
    "Created: 9.12.1995 / 18:04:34 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2369
    "Modified: 10.7.1996 / 10:35:34 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2370
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2371
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2372
browseForSymbol:aSymbol in:aSetOfClasses title:title warnIfNone:doWarn
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2373
    "launch a browser for all methods referencing aSymbol"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2374
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2375
    |browser searchBlock sym|
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2376
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2377
    (aSymbol includesMatchCharacters) ifTrue:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2378
        "a matchString"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2379
        searchBlock := [:c :m :s |
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2380
                            (m literalsDetect:[:aLiteral|
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2381
                                (aLiteral isMemberOf:Symbol) 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2382
                                  and:[aSymbol match:aLiteral]
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2383
                            ] ifNone:nil) notNil
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2384
                       ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2385
    ] ifFalse:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2386
        "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2387
         can do a faster search
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2388
        "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2389
        sym := aSymbol asSymbolIfInterned.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2390
        sym isNil ifTrue:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2391
            self showNoneFound:title.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2392
            ^ nil
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2393
        ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2394
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2395
        searchBlock := [:c :m :s |
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2396
                            (m literalsDetect:[:aLiteral|
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2397
                                (sym == aLiteral) 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2398
                            ] ifNone:nil) notNil
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2399
                       ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2400
    ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2401
    doWarn ifFalse:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2402
        WarningSignal ignoreIn:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2403
            browser := self browseMethodsIn:aSetOfClasses where:searchBlock title:title.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2404
        ]
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2405
    ] ifTrue:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2406
        browser := self browseMethodsIn:aSetOfClasses where:searchBlock title:title.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2407
    ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2408
    browser notNil ifTrue:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2409
        browser autoSearch:aSymbol
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2410
    ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2411
    ^ browser
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2412
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2413
    "Modified: 24.6.1996 / 14:39:07 / stefan"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2414
    "Modified: 30.6.1996 / 16:45:25 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2415
    "Created: 10.7.1996 / 10:36:36 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2416
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2417
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2418
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
  2419
    "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
  2420
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2421
    |browser searchBlock sym|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2422
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2423
    (aSymbol includesMatchCharacters) ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2424
        "a matchString"
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2425
        searchBlock := [:c :m :s |
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2426
                            (m literalsDetect:[:aLiteral|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2427
                                (aLiteral isMemberOf:Symbol) 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2428
                                  and:[aSymbol match:aLiteral]
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2429
                            ] ifNone:nil) notNil
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2430
                       ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2431
    ] ifFalse:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2432
        "
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2433
         can do a faster search
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2434
        "
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2435
        sym := aSymbol asSymbolIfInterned.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2436
        sym isNil ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2437
            self showNoneFound:title.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2438
            ^ nil
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2439
        ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2440
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2441
        searchBlock := [:c :m :s |
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2442
                            (m literalsDetect:[:aLiteral|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2443
                                (sym == aLiteral) 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2444
                            ] ifNone:nil) notNil
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2445
                       ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2446
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2447
    doWarn ifFalse:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2448
        WarningSignal ignoreIn:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2449
            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
  2450
        ]
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2451
    ] ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2452
        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
  2453
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2454
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2455
    (browser notNil 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2456
    and:[searchString notNil]) ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2457
        browser autoSearch:searchString
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2458
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2459
    ^ browser
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2460
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2461
    "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
  2462
    "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
  2463
    "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
  2464
!
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2465
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2466
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
  2467
    "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
  2468
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2469
    |browser searchBlock sym|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2470
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2471
    (aSymbol includesMatchCharacters) ifTrue:[
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2472
        "a matchString"
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2473
        searchBlock := [:c :m :s |
2439
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2474
                            m referencesGlobalMatching:aSymbol
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2475
"/                            (m literalsDetect:[:aLiteral|
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2476
"/                                (aLiteral isMemberOf:Symbol) 
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2477
"/                                  and:[aSymbol match:aLiteral]
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2478
"/                            ] ifNone:nil) notNil
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2479
                       ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2480
    ] ifFalse:[
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2481
        "
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2482
         can do a faster search
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2483
        "
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2484
        sym := aSymbol asSymbolIfInterned.
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2485
        sym isNil ifTrue:[
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2486
            actionIfNoneFound value.
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2487
            ^ nil
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2488
        ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2489
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2490
        searchBlock := [:c :m :s |
2439
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2491
                            m referencesGlobal:sym
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2492
"/                            (m literalsDetect:[:aLiteral|
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2493
"/                                (sym == aLiteral) 
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2494
"/                            ] ifNone:nil) notNil
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2495
                       ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2496
    ].
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2497
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2498
    WarningSignal ignoreIn:[
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2499
        InformationSignal ignoreIn:[
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2500
            browser := self browseMethodsWhere:searchBlock title:title.
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2501
        ]
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2502
    ].
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2503
    browser isNil ifTrue:[
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2504
        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
  2505
    ].
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2506
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2507
    (browser notNil 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2508
    and:[searchString notNil]) ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2509
        browser autoSearch:searchString
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2510
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2511
    ^ browser
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2512
2439
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2513
    "Modified: / 24.6.1996 / 14:39:07 / stefan"
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2514
    "Created: / 31.10.1996 / 14:45:08 / cg"
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2515
    "Modified: / 9.11.1999 / 17:04:30 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2516
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2517
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2518
browseForSymbol:aSymbol title:title warnIfNone:doWarn
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2519
    "launch a browser for all methods referencing aSymbol"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2520
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2521
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2522
        browseForSymbol:aSymbol 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2523
        title:title 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2524
        warnIfNone:doWarn 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2525
        searchFor:aSymbol
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2526
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2527
    "Modified: 31.10.1996 / 14:45:38 / cg"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2528
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2529
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2530
browseForSymbol:aSymbol title:title warnIfNone:doWarn searchFor:searchString
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2531
    "launch a browser for all methods referencing aSymbol"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2532
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2533
    |b|
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2534
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2535
    doWarn ifTrue: [
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2536
        b := [self showNoneFound:title]
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2537
    ].
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2538
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2539
        browseForSymbol:aSymbol 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2540
        title:title 
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2541
        ifNone:b
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2542
        searchFor:searchString
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2543
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2544
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2545
browseImplementorsMatching:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2546
    "launch a browser for all implementors of aSelector"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2547
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2548
    ^ self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2549
        browseImplementorsMatching:aSelectorString 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2550
        in:(Smalltalk allClasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2551
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2552
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2553
     SystemBrowser browseImplementorsOf:#+
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2554
     NewSystemBrowser browseImplementorsOf:#+
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2555
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2556
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2557
    "Created: / 9.12.1995 / 18:01:18 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2558
    "Modified: / 5.11.2001 / 17:31:11 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2559
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2560
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2561
browseImplementorsMatching:aSelectorString in:aSetOfClasses
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2562
    "launch a browser for all implementors of aSelector"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2563
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2564
    ^ self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2565
        browseImplementorsMatching:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2566
        in:aSetOfClasses
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2567
        title:(self classResources string:'implementors of: %1' with:aSelectorString)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2568
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2569
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2570
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2571
     NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2572
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2573
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2574
    "Created: / 10.7.1996 / 10:20:59 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2575
    "Modified: / 5.11.2001 / 17:30:57 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2576
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2577
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2578
browseImplementorsMatching:aSelectorString in:aSetOfClasses ignoreCase:ignoreCase
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2579
    "launch a browser for all implementors of aSelector"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2580
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2581
    ^ self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2582
        browseImplementorsMatching:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2583
        in:aSetOfClasses
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2584
        ignoreCase:ignoreCase
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2585
        title:(self classResources string:'implementors of: %1' with:aSelectorString)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2586
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2587
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2588
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2589
     NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2590
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2591
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2592
    "Created: / 10.7.1996 / 10:20:59 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2593
    "Modified: / 5.11.2001 / 17:30:43 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2594
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2595
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2596
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:title
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2597
    "launch a browser for all implementors of aSelector in
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2598
     the classes contained in aCollectionOfClasses and its metaclasses"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2599
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2600
    |list|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2601
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2602
    list := self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2603
                findImplementorsMatching:aSelectorString 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2604
                in:aCollectionOfClasses 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2605
                ignoreCase:ignoreCase.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2606
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2607
    list size == 0 ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2608
        self showNoneFound:title.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2609
        ^ nil
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2610
    ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2611
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2612
    ^ self browseMethods:list asOrderedCollection title:title
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2613
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2614
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2615
     SystemBrowser browseImplementorsOf:#+
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2616
                                     in:(Array with:Number
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2617
                                               with:Float
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2618
                                               with:SmallInteger)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2619
                                  title:'some implementors of +'
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2620
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2621
     NewSystemBrowser browseImplementorsOf:#+
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2622
                                     in:(Array with:Number
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2623
                                               with:Float
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2624
                                               with:SmallInteger)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2625
                                  title:'some implementors of +'
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2626
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2627
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2628
    "Modified: / 4.9.1995 / 17:33:39 / claus"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2629
    "Modified: / 19.6.1996 / 14:19:02 / stefan"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2630
    "Modified: / 5.11.2001 / 17:30:38 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2631
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2632
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2633
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses title:title
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2634
    "launch a browser for all implementors of aSelector in
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2635
     the classes contained in aCollectionOfClasses and its metaclasses"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2636
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2637
    ^ self
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2638
        browseImplementorsMatching:aSelectorString 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2639
        in:aCollectionOfClasses 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2640
        ignoreCase:false
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2641
        title:title
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2642
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2643
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2644
browseImplementorsMatching:aSelectorString under:aClass
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2645
    "launch a browser for all implementors of aSelector in aClass
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2646
     and its subclasses"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2647
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2648
    ^ self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2649
        browseImplementorsMatching:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2650
        in:(aClass withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2651
        title:(self classResources 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2652
                string:'implementors of: %1 (in and below %2)' 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2653
                with:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2654
                with:aClass name)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2655
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2656
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2657
     SystemBrowser browseImplementorsOf:#+ under:Integer
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2658
     NewSystemBrowser browseImplementorsOf:#+ under:Integer
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2659
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2660
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2661
    "Created: / 9.12.1995 / 18:06:09 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2662
    "Modified: / 5.11.2001 / 17:30:15 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2663
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2664
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2665
browseImplementorsOf:aSelectorString
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2666
    "launch a browser for all implementors of aSelector"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2667
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2668
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2669
        browseImplementorsOf:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2670
        in:(Smalltalk allClasses)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2671
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2672
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2673
     SystemBrowser browseImplementorsOf:#+
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2674
     NewSystemBrowser browseImplementorsOf:#+
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2675
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2676
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2677
    "Created: / 9.12.1995 / 18:01:18 / cg"
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2678
    "Modified: / 5.11.2001 / 17:31:11 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2679
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2680
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2681
browseImplementorsOf:aSelectorString in:aSetOfClasses
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2682
    "launch a browser for all implementors of aSelector"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2683
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2684
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2685
        browseImplementorsOf:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2686
        in:aSetOfClasses
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2687
        title:(self classResources string:'implementors of: %1' with:aSelectorString)
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2688
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2689
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2690
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2691
     NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2692
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2693
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2694
    "Created: / 10.7.1996 / 10:20:59 / cg"
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2695
    "Modified: / 5.11.2001 / 17:30:57 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2696
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2697
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2698
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
  2699
    "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
  2700
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2701
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2702
        browseImplementorsOf:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2703
        in:aSetOfClasses
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2704
        ignoreCase:ignoreCase
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2705
        title:(self classResources string:'implementors of: %1' with:aSelectorString)
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2706
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2707
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2708
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2709
     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
  2710
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2711
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2712
    "Created: / 10.7.1996 / 10:20:59 / cg"
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2713
    "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
  2714
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2715
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2716
browseImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:title
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2717
    "launch a browser for all implementors of aSelector in
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2718
     the classes contained in aCollectionOfClasses and its metaclasses"
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2719
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2720
    |list|
270
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  2721
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2722
    list := self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2723
                findImplementorsOf:aSelectorString 
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2724
                in:aCollectionOfClasses 
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2725
                ignoreCase:ignoreCase.
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  2726
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2727
    list size == 0 ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2728
        self showNoneFound:title.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2729
        ^ nil
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2730
    ].
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2731
270
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  2732
    ^ self browseMethods:list asOrderedCollection title:title
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2733
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2734
    "
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2735
     SystemBrowser browseImplementorsOf:#+
270
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  2736
                                     in:(Array with:Number
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  2737
                                               with:Float
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  2738
                                               with:SmallInteger)
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  2739
                                  title:'some implementors of +'
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2740
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2741
     NewSystemBrowser browseImplementorsOf:#+
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2742
                                     in:(Array with:Number
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2743
                                               with:Float
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2744
                                               with:SmallInteger)
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2745
                                  title:'some implementors of +'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2746
    "
132
claus
parents: 118
diff changeset
  2747
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  2748
    "Modified: / 4.9.1995 / 17:33:39 / claus"
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  2749
    "Modified: / 19.6.1996 / 14:19:02 / stefan"
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2750
    "Modified: / 5.11.2001 / 17:30:38 / cg"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2751
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2752
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2753
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
  2754
    "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
  2755
     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
  2756
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2757
    ^ self
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2758
        browseImplementorsOf:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2759
        in:aCollectionOfClasses 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2760
        ignoreCase:false
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2761
        title:title
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2762
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2763
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2764
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2765
browseImplementorsOf:aSelectorString under:aClass
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2766
    "launch a browser for all implementors of aSelector in aClass
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2767
     and its subclasses"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2768
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2769
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2770
        browseImplementorsOf:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2771
        in:(aClass withAllSubclasses)
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2772
        title:(self classResources 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2773
                string:'implementors of: %1 (in and below %2)' 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2774
                with:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2775
                with:aClass name)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2776
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2777
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2778
     SystemBrowser browseImplementorsOf:#+ under:Integer
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2779
     NewSystemBrowser browseImplementorsOf:#+ under:Integer
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2780
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2781
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2782
    "Created: / 9.12.1995 / 18:06:09 / cg"
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2783
    "Modified: / 5.11.2001 / 17:30:15 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2784
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2785
3663
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2786
browseImplementorsOfAny:setOfSelectors 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2787
    "launch a browser for all implementors of aSelector"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2788
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2789
    ^ self 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2790
        browseImplementorsOfAny:setOfSelectors
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2791
        in:(Smalltalk allClasses)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2792
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2793
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2794
     SystemBrowser browseImplementorsOfAny:#( #+ #- )
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2795
     NewSystemBrowser browseImplementorsOfAny:#( #+ #- )
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2796
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2797
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2798
    "Created: / 9.12.1995 / 18:01:18 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2799
    "Modified: / 5.11.2001 / 17:31:11 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2800
!
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2801
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2802
browseImplementorsOfAny:setOfSelectors in:aSetOfClasses
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2803
    "launch a browser for all implementors of aSelector"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2804
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2805
    ^ self 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2806
        browseImplementorsOfAny:setOfSelectors
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2807
        in:aSetOfClasses
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2808
        title:(self classResources string:'implementors of some')
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2809
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2810
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2811
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2812
     NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2813
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2814
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2815
    "Created: / 10.7.1996 / 10:20:59 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2816
    "Modified: / 5.11.2001 / 17:30:57 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2817
!
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2818
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2819
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase title:title
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2820
    "launch a browser for all implementors of aSelector in
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2821
     the classes contained in aCollectionOfClasses and its metaclasses"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2822
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2823
    |list|
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2824
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2825
    list := self 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2826
                findImplementorsOfAny:setOfSelectors 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2827
                in:aCollectionOfClasses 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2828
                ignoreCase:ignoreCase.
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2829
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2830
    list size == 0 ifTrue:[
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2831
        self showNoneFound:title.
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2832
        ^ nil
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2833
    ].
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2834
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2835
    ^ self browseMethods:list asOrderedCollection title:title
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2836
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2837
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2838
     SystemBrowser browseImplementorsOf:#+
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2839
                                     in:(Array with:Number
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2840
                                               with:Float
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2841
                                               with:SmallInteger)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2842
                                  title:'some implementors of +'
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2843
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2844
     NewSystemBrowser browseImplementorsOf:#+
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2845
                                     in:(Array with:Number
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2846
                                               with:Float
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2847
                                               with:SmallInteger)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2848
                                  title:'some implementors of +'
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2849
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2850
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2851
    "Modified: / 4.9.1995 / 17:33:39 / claus"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2852
    "Modified: / 19.6.1996 / 14:19:02 / stefan"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2853
    "Modified: / 5.11.2001 / 17:30:38 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2854
!
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2855
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2856
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses title:title
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2857
    "launch a browser for all implementors of aSelector in
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2858
     the classes contained in aCollectionOfClasses and its metaclasses"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2859
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2860
    ^ self
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2861
        browseImplementorsOfAny:setOfSelectors 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2862
        in:aCollectionOfClasses 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2863
        ignoreCase:false
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2864
        title:title
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2865
!
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  2866
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2867
browseInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2868
    "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
  2869
     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
  2870
     instvar is modified"
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  2871
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2872
    ^ self browseRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2873
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2874
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2875
browseInstRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2876
    "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
  2877
     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
  2878
     instvar is modified"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2879
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2880
    ^ self browseRefsTo:varName classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly title:title
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2881
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2882
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2883
browseInstRefsTo:aString under:aClass modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2884
    "launch a browser for all methods in aClass and subclasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2885
     where the instVar named aString is referenced; 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2886
     if modsOnly is true, browse only methods where the instvar is modified"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2887
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2888
    ^ self browseInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2889
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2890
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2891
browseReferendsOf:aGlobalName
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2892
    "launch a browser for all methods referencing a global
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2893
     named aGlobalName. The argument may be a symbol, a string or
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2894
     a matchPattern.
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2895
    "
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2896
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2897
    ^ self browseReferendsOf:aGlobalName warnIfNone:true 
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2898
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2899
   "
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2900
    Browser browseReferendsOf:#Transcript
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2901
    Browser browseReferendsOf:'Tr*'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2902
   "
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  2903
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2904
    "Modified: / 30.10.1997 / 23:45:52 / cg"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2905
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2906
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2907
browseReferendsOf:aGlobalName ifNone:actionIfNone
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2908
    "launch a browser for all methods referencing a global
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2909
     named aGlobalName.
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2910
    "
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2911
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2912
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2913
        browseReferendsOf:aGlobalName 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2914
        title:(self classResources string:'users of: %1' with:aGlobalName)
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2915
        ifNone:actionIfNone
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2916
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2917
    "Modified: / 31.10.1997 / 15:42:05 / cg"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2918
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2919
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2920
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2921
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2922
browseReferendsOf:aGlobalName in:aSetOfClasses
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2923
    "launch a browser for all methods referencing a global
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2924
     named aGlobalName.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2925
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2926
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2927
    ^ self browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:true 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2928
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2929
   "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2930
    Browser browseReferendsOf:#Transcript
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2931
   "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2932
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2933
    "Created: 10.7.1996 / 10:37:30 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2934
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2935
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2936
browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:doWarn
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2937
    "launch a browser for all methods referencing a global
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2938
     named aGlobalName.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2939
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2940
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2941
    |globalsPlainName idx|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2942
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2943
    globalsPlainName := aGlobalName.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2944
    (idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2945
        globalsPlainName := globalsPlainName copyFrom:idx+1
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2946
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2947
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2948
    ^ self browseForSymbol:aGlobalName
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2949
                        in:aSetOfClasses
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2950
                     title:(self classResources string:'users of: %1' with:aGlobalName) 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2951
                warnIfNone:doWarn
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2952
                 searchFor:globalsPlainName
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2953
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2954
    "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
  2955
    "Modified: 31.10.1996 / 14:56:38 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2956
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2957
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2958
browseReferendsOf:aGlobalName title:title ifNone:actionIfNone
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2959
    "launch a browser for all methods referencing a global
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2960
     named aGlobalName.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2961
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2962
2828
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2963
    |globalsPlainName idx searchBlock
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2964
     sym browser|
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2965
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2966
    globalsPlainName := aGlobalName.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2967
    (idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2968
        globalsPlainName := globalsPlainName copyFrom:idx+1.
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2969
        (globalsPlainName size == 0
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2970
        or:[globalsPlainName = '*']) ifTrue:[
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2971
            globalsPlainName := aGlobalName
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2972
        ]
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2973
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2974
3125
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2975
    (sym := aGlobalName asSymbolIfInterned) notNil ifTrue:[
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2976
        searchBlock := [:cls :mthd :sel | |mSource|
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2977
                        "/ kludge: Lazy methods do not include symbols in the literal array - sigh
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2978
                        mthd isLazyMethod ifTrue:[
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2979
                            mSource := mthd source.
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2980
                            (mSource notNil
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2981
                            and:[(mSource includesString:sym)
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2982
                            and:[mthd usedGlobals includes:sym]])
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2983
                        ] ifFalse:[ 
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2984
                            ((mthd refersToLiteral:sym)
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2985
                             and:[mthd usedGlobals includes:sym])
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2986
                        ]
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2987
                      ]
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2988
    ] ifFalse:[
2828
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2989
        aGlobalName includesMatchCharacters ifFalse:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2990
            actionIfNone value.
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2991
            ^ nil
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2992
        ].
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2993
        searchBlock := [:cls :mthd :sel | |mSource|
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2994
                        "/ kludge: Lazy methods do not include symbols in the literal array - sigh
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2995
                        mthd isLazyMethod ifTrue:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2996
                            mSource := mthd source.
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2997
                            (mSource notNil
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2998
                            and:[mthd usedGlobals contains:[:lit | aGlobalName match:lit]])
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2999
                        ] ifFalse:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3000
                            ((mthd literals contains:[:lit | aGlobalName match:lit])
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3001
                             and:[mthd usedGlobals contains:[:lit | aGlobalName match:lit] ])
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3002
                        ]
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3003
                      ]
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3004
    ].
3780
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  3005
    "/ WarningSignal ignoreIn:[
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  3006
        "/ InformationSignal ignoreIn:[
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  3007
            browser := self browseMethodsWhere:searchBlock title:title ifNone:[actionIfNone value. ^ nil].
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  3008
        "/ ].
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  3009
    "/ ].
2828
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3010
    browser isNil ifTrue:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3011
        actionIfNone value
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3012
    ] ifFalse:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3013
        browser autoSearch:globalsPlainName
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3014
    ].
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3015
    ^ browser
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3016
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3017
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3018
browseReferendsOf:aGlobalName title:title warnIfNone:doWarn
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3019
    "launch a browser for all methods referencing a global
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3020
     named aGlobalName.
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3021
    "
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3022
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3023
    |b|
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3024
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3025
    doWarn ifTrue: [
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3026
        b := [self showNoneFound:title]
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3027
    ].
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3028
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3029
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3030
        browseReferendsOf:aGlobalName 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3031
        title:title 
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3032
        ifNone:b
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3033
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3034
!
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3035
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3036
browseReferendsOf:aGlobalName warnIfNone:doWarn
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3037
    "launch a browser for all methods referencing a global
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3038
     named aGlobalName.
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3039
    "
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3040
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3041
    ^ self
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3042
        browseReferendsOf:aGlobalName 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3043
        title:(self classResources string:'users of: %1' with:aGlobalName)
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3044
        warnIfNone:doWarn
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3045
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3046
    "Modified: / 31.10.1997 / 15:42:05 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3047
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3048
4198
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3049
browseReferendsOfUnboundGlobalsWithTitle:title ifNone:actionIfNone
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3050
    "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
  3051
    "
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3052
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3053
    |globalsPlainName searchBlock browser|
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3054
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3055
    searchBlock := [:cls :mthd :sel | 
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3056
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3057
                    |mSource globals potentialNames|
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3058
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3059
                    "/ 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
  3060
                    mthd isLazyMethod ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3061
                        mSource := mthd source.
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3062
                        mSource notNil ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3063
                            globals := mthd usedGlobals.
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3064
                        ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3065
                    ] ifFalse:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3066
                        "/ try hard to avoid the usedGlobals - its expensive
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3067
                        potentialNames := mthd literals select:[:lit | lit isSymbol and:[lit size > 0 and:[lit first isUppercase]]].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3068
                        potentialNames notEmpty ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3069
                            potentialNames := potentialNames select:[:lit | (Smalltalk at:lit) isNil].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3070
                            potentialNames notEmpty ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3071
                                globals := mthd usedGlobals.
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3072
                            ]
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3073
                        ]
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3074
                    ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3075
                    globals notNil ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3076
                        globals contains:[:aGlobalKey | (Smalltalk at:aGlobalKey asSymbol) isNil].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3077
                    ] ifFalse:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3078
                        false
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3079
                    ]
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3080
                  ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3081
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3082
    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
  3083
    browser isNil ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3084
        actionIfNone value
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3085
    ] ifFalse:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3086
        browser autoSearch:globalsPlainName
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3087
    ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3088
    ^ browser
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3089
!
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3090
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3091
browseReferendsOfUnboundGlobalsWithTitle:title warnIfNone:doWarn
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3092
    "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
  3093
    "
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3094
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3095
    |b|
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3096
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3097
    doWarn ifTrue: [
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3098
        b := [self showNoneFound:title]
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3099
    ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3100
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3101
    ^ self
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3102
        browseReferendsOfUnboundGlobalsWithTitle:title 
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3103
        ifNone:b
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3104
!
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3105
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3106
browseRefsTo:aString classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3107
    "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
  3108
     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
  3109
     instvar is modified"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3110
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3111
    |title|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3112
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3113
    modsOnly ifTrue:[
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3114
        title := 'modifications of: %1'
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3115
    ] ifFalse:[
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3116
        title := 'references to: %1 '
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3117
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3118
    ^ self 
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3119
        browseRefsTo:aString 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3120
        classVars:classVars 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3121
        in:aCollectionOfClasses 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3122
        modificationsOnly:modsOnly 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3123
        title:(self classResources string:title with:aString)
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3124
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3125
    "Created: 9.12.1995 / 18:07:05 / cg"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3126
    "Modified: 9.12.1995 / 18:11:49 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3127
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3128
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3129
browseRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3130
    "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
  3131
     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
  3132
     instvar is modified"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3133
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3134
    |filter browser pattern|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3135
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3136
    filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly.
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3137
    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
  3138
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3139
    browser notNil ifTrue:[
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3140
        modsOnly ifTrue:[
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3141
            pattern := varName , ' :='
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3142
        ] ifFalse:[
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3143
            pattern := varName
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3144
        ].
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3145
        browser autoSearch:pattern 
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3146
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3147
    ^ browser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3148
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3149
3407
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3150
browseSendersOf:aSelectorString
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3151
    "launch a browser for all senders of aSelector"
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3152
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3153
    ^ self browseAllCallsOn:aSelectorString
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3154
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3155
    "
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3156
     SystemBrowser browseSendersOf:#+
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3157
    "
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3158
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3159
    "Modified: / 10.7.1996 / 10:26:15 / cg"
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3160
    "Created: / 13.11.2001 / 13:52:12 / cg"
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3161
!
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3162
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3163
browseSuperCallsIn:aCollectionOfClasses title:title
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3164
    "launch a browser for all super sends in aCollectionOfClasses"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3165
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 675
diff changeset
  3166
    |browser searchBlock|
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3167
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3168
    searchBlock := [:class :method :s | 
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3169
        |src parser|
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3170
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3171
        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
  3172
        (src notNil and:[src findString:'super']) ~~ 0 ifTrue:[
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3173
            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
  3174
                        parseMethod:src 
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3175
                        in:class 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3176
                        ignoreErrors:true 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3177
                        ignoreWarnings:true.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3178
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3179
            parser notNil and:[parser usesSuper]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3180
        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3181
            false
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3182
        ]
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3183
    ].
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3184
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3185
    browser := self browseMethodsIn:aCollectionOfClasses
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3186
                              where:searchBlock
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3187
                              title:title.
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3188
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3189
    browser notNil ifTrue:[
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3190
        browser autoSearch:'super' 
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3191
    ].
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3192
    ^ browser
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3193
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3194
    "
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3195
     SystemBrowser
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3196
         browseSuperCallsIn:(Array with:SortedCollection)
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3197
                      title:'superSends in SortedCollection'
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3198
    "
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3199
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3200
    "Created: 23.11.1995 / 14:08:55 / cg"
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3201
    "Modified: 24.4.1996 / 13:25:31 / cg"
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3202
!
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3203
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3204
browseSuperCallsUnder:aClass
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3205
    "launch a browser for all supersends in aClass and subclasses"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3206
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3207
    ^ self browseSuperCallsIn:(aClass withAllSubclasses)
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3208
                        title:(self classResources string:'supersends (in and below %1)' with:aClass name)
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3209
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3210
    "
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3211
     SystemBrowser browseSuperCallsUnder:Number
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3212
    "
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3213
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3214
    "Created: 23.11.1995 / 12:06:06 / cg"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3215
    "Modified: 9.12.1995 / 18:11:59 / cg"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3216
!
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3217
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3218
browseUsesOf:aClass
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3219
    |dict owners offsets
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3220
     sz  "{ Class: SmallInteger }"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3221
     n   "{ Class: SmallInteger }"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3222
     removeSet newDict|
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3223
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3224
    owners := ObjectMemory whoReferencesInstancesOf:aClass.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3225
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3226
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3227
     collect set of offsets in dict; key is class
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3228
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3229
    dict := IdentityDictionary new.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3230
    owners do:[:someObject |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3231
        |cls create|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3232
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3233
        someObject isContext ifFalse:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3234
            "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3235
             someObject refers to an instance of aClass;
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3236
             find out, which instVar(s)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3237
            "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3238
            cls := someObject class.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3239
            cls ~~ Array ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3240
                n := cls instSize.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3241
                create := [|s| s := Set new. dict at:cls put:s. s].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3242
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3243
                1 to:n do:[:i |
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3244
                    |ref|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3245
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3246
                    ref := someObject instVarAt:i.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3247
                    (ref isMemberOf:aClass) ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3248
                        offsets := dict at:cls ifAbsent:create.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3249
                        offsets add:i.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3250
                    ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3251
                ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3252
                cls isVariable ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3253
                    cls isPointers ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3254
                        | idx "{ Class: SmallInteger }" |
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3255
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3256
                        sz := someObject basicSize.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3257
                        idx := 1.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3258
                        [idx <= sz] whileTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3259
                            |ref|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3260
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3261
                            ref := someObject basicAt:idx.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3262
                            (ref isMemberOf:aClass) ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3263
                                offsets := dict at:cls ifAbsent:create.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3264
                                offsets add:0.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3265
                                idx := sz
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3266
                            ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3267
                            idx := idx + 1
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3268
                        ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3269
                    ]        
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3270
                ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3271
            ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3272
        ]
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3273
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3274
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3275
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3276
     merge with superclass refs
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3277
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3278
    dict keysAndValuesDo:[:cls :set |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3279
        cls allSuperclasses do:[:aSuperclass |
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3280
            |superSet|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3281
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3282
            superSet := dict at:aSuperclass ifAbsent:[].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3283
            superSet notNil ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3284
                |removeSet|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3285
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3286
                superSet := dict at:aSuperclass.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3287
                removeSet := Set new.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3288
                set do:[:offset |
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3289
                    (superSet includes:offset) ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3290
                        removeSet add:offset
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3291
                    ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3292
                ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3293
                set removeAll:removeSet
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3294
            ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3295
        ]
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3296
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3297
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3298
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3299
     remove empty ones
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3300
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3301
    removeSet := Set new.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3302
    dict keysAndValuesDo:[:cls :set |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3303
        set isEmpty ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3304
            removeSet add:cls
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3305
        ]
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3306
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3307
    removeSet do:[:cls |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3308
        dict removeKey:cls
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3309
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3310
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3311
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3312
     replace the indices by real names
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3313
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3314
    newDict := IdentityDictionary new.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3315
    dict keysAndValuesDo:[:cls :set |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3316
        |newSet names|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3317
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3318
        names := cls allInstVarNames.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3319
        newSet := set collect:[:index | 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3320
                index == 0 ifTrue:['*indexed*'] ifFalse:[names at:index].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3321
        ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3322
        newDict at:cls put:newSet
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3323
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3324
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3325
    newDict inspect
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3326
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  3327
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3328
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3329
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3330
filterToSearchRefsTo:varName classVars:classVars access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3331
    "return a searchblock for variable references"
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3332
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3333
    |searchBlock|
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3334
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3335
    searchBlock := [:c :m :s |
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3336
        |src result parser vars needMatch|
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3337
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3338
        needMatch := varName includesMatchCharacters.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3339
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3340
        src := m source.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3341
        src isNil ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3342
            result := false
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3343
        ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3344
            needMatch ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3345
                "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3346
                 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
  3347
                 methods source for the variables name ...
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3348
                "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3349
                result := (src findString:varName) ~~ 0.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3350
            ] ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3351
                result := true.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3352
            ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3353
            result ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3354
                result := false.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3355
                parser := Parser
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3356
                                parseMethod:src 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3357
                                in:c 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3358
                                ignoreErrors:true 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3359
                                ignoreWarnings:true.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3360
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3361
                (parser notNil and:[parser ~~ #Error]) ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3362
                    classVars ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3363
                        accessType == #read ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3364
                            vars := parser readInstVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3365
                        ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3366
                            accessType == #write ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3367
                                vars := parser modifiedInstVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3368
                            ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3369
                                vars := parser usedInstVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3370
                            ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3371
                        ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3372
                    ] ifTrue:[    
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3373
                        accessType == #read ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3374
                            vars := parser readClassVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3375
                        ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3376
                            accessType == #write ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3377
                                vars := parser modifiedClassVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3378
                            ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3379
                                vars := parser usedClassVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3380
                            ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3381
                        ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3382
                    ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3383
                    vars size > 0 ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3384
                        needMatch ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3385
                            vars do:[:cv |
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3386
                                (varName match:cv) ifTrue:[result := true]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3387
                            ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3388
                        ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3389
                            result := vars includes:varName
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3390
                        ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3391
                    ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3392
                ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3393
            ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3394
        ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3395
        Processor yield.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3396
        result
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3397
    ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3398
    ^ searchBlock
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3399
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3400
    "Modified: 19.6.1997 / 18:27:57 / cg"
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3401
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3402
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3403
filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3404
    "return a searchblock for variable references"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3405
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3406
    |searchBlock|
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  3407
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3408
    searchBlock := [:c :m :s |
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3409
        |src result parser vars needMatch|
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
        needMatch := varName includesMatchCharacters.
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3412
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3413
        src := m source.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3414
        src isNil ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3415
            result := false
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3416
        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3417
            needMatch ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3418
                "
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3419
                 before doing a slow parse, quickly scan the
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3420
                 methods source for the variables name ...
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3421
                "
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3422
                result := (src findString:varName) ~~ 0.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3423
            ] ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3424
                result := true.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3425
            ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3426
            result ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3427
                result := false.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3428
                parser := Parser
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3429
                                parseMethod:src 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3430
                                in:c 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3431
                                ignoreErrors:true 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3432
                                ignoreWarnings:true.
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3433
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3434
                (parser notNil and:[parser ~~ #Error]) ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3435
                    classVars ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3436
                        modsOnly ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3437
                            vars := parser modifiedInstVars
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3438
                        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3439
                            vars := parser usedInstVars
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3440
                        ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3441
                    ] ifTrue:[    
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3442
                        modsOnly ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3443
                            vars := parser modifiedClassVars
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3444
                        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3445
                            vars := parser usedClassVars
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3446
                        ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3447
                    ].
1190
d265f77ecbc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1143
diff changeset
  3448
                    vars size > 0 ifTrue:[
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3449
                        needMatch ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3450
                            vars do:[:cv |
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3451
                                (varName match:cv) ifTrue:[result := true]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3452
                            ]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3453
                        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3454
                            result := vars includes:varName
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3455
                        ]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3456
                    ]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3457
                ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3458
            ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3459
        ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3460
        Processor yield.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3461
        result
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3462
    ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3463
    ^ searchBlock
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3464
1190
d265f77ecbc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1143
diff changeset
  3465
    "Modified: 19.6.1997 / 18:27:57 / cg"
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3466
!
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3467
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3468
findAnyResourceIn:aCollectionOfClasses 
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3469
    "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
  3470
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3471
    ^ 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
  3472
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3473
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3474
     SystemBrowser findAnyResourceIn:(ApplicationModel withAllSubclasses)
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3475
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3476
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3477
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3478
findClassRefsTo:aString in:aCollectionOfClasses access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3479
    "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
  3480
     aString is referenced; 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3481
     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
  3482
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3483
    ^ 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
  3484
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3485
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3486
findClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3487
    "return all methods in aCollectionOfClasses where the classVar named
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3488
     aString is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3489
     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
  3490
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3491
    ^ self findRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3492
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3493
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3494
findClassRefsTo:aString inClass:aClass access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3495
    "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
  3496
     aString is referenced; 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3497
     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
  3498
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3499
    ^ 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
  3500
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3501
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3502
findClassRefsTo:aString inClass:aClass modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3503
    "return all methods in aClass where the classVar named
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3504
     aString is referenced; 
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3505
     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
  3506
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3507
    ^ self findRefsTo:aString classVars:true in:(Array with:aClass) modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3508
!
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3509
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3510
findClassRefsTo:aString under:aClass access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3511
    "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
  3512
     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
  3513
     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
  3514
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3515
    ^ 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
  3516
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3517
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3518
findClassRefsTo:aString under:aClass modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3519
    "return all methods in aClass and subclasses
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3520
     where the classVar named aString is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3521
     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
  3522
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3523
    ^ self findClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3524
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3525
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3526
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3527
findHelpSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3528
    "return a collection of all help-spec methods in aCollectionOfClasses  
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3529
     containing a string in their source.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3530
     This may be slow, since source-code has to be scanned."
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3531
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3532
    ^ self findSpecMethodsFor:#help withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3533
!
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3534
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3535
findImplementors:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3536
    "search for all implementors of aSelector in
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3537
     the classes contained in aCollectionOfClasses and its metaclasses.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3538
     Return a collection of methods"
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3539
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3540
    |list compare srchST srchJava lcSelector|
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3541
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3542
    aSelectorMatchString size == 0 ifTrue:[ ^ #() ].
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3543
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3544
    list := IdentitySet new.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3545
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3546
    doMatch ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3547
        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
  3548
    ] ifFalse:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3549
        compare := [:sel :search | sel = search].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3550
    ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3551
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3552
    ignoreCase == true ifTrue:[
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3553
        lcSelector := aSelectorMatchString asLowercase.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3554
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3555
        srchST := [:aSelector :aMethod |
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3556
                        (compare value:lcSelector value:aMethod name asLowercase) ifTrue:[
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3557
                            list add:aMethod
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3558
                        ]
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3559
                  ].
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3560
        srchJava := [:aSelector :aMethod |
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3561
                        (compare value:aSelector value:aMethod name asLowercase) ifTrue:[
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3562
                            list add:aMethod
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3563
                        ]
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3564
                  ].
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3565
    ] ifFalse:[
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3566
        srchST := [:aSelector :aMethod |
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3567
                        (compare value:aSelectorMatchString value:aSelector) ifTrue:[
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3568
                            list add:aMethod
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3569
                        ]
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3570
                  ].
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3571
        srchJava := [:aSelector :aMethod |
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3572
                        (compare value:aSelectorMatchString value:aMethod name) ifTrue:[
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3573
                            list add:aMethod
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3574
                        ]
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3575
                  ].
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3576
    ].
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3577
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3578
    aCollectionOfClasses do:[:aClass |
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3579
        |srchBlock|
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3580
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3581
        aClass isObsolete ifFalse:[
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3582
            aClass isJavaClass ifTrue:[
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3583
                srchBlock := srchJava
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3584
            ] ifFalse:[
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3585
                srchBlock := srchST
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3586
            ].
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3587
            aClass methodDictionary keysAndValuesDo:srchBlock.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3588
            aClass isMeta ifFalse:[
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3589
                aClass class methodDictionary keysAndValuesDo:srchBlock
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3590
            ]
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3591
        ]
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3592
    ].
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3593
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3594
    ^ list
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3595
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3596
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3597
     SystemBrowser findImplementorsOf:#+
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3598
                                     in:(Array with:Number
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3599
                                               with:Float
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3600
                                               with:SmallInteger)
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3601
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3602
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3603
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3604
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
  3605
    "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
  3606
     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
  3607
     Return a collection of methods"
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3608
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3609
    ^ 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
  3610
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3611
    "
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3612
     SystemBrowser findImplementorsOf:#+
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3613
                                     in:(Array with:Number
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3614
                                               with:Float
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3615
                                               with:SmallInteger)
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3616
    "
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3617
!
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3618
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3619
findImplementorsMatchingAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3620
    "search for all implementors of any in aCollectionOfSelectors in
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3621
     the classes contained in aCollectionOfClasses and its metaclasses.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3622
     Return a collection of methods.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3623
     CAVEAT: searches multiple times (could be tuned alot if heavily used)"
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3624
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3625
    |implementors|
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3626
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3627
    implementors := IdentitySet new.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3628
    aCollectionOfSelectors do:[:eachSelector |
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3629
        implementors addAll:(self findImplementorsMatching:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase).
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3630
    ].
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3631
    ^ implementors
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3632
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3633
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3634
findImplementorsOf:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3635
    "search for all implementors of aSelector in
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3636
     the classes contained in aCollectionOfClasses and its metaclasses.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3637
     Return a collection of methods"
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3638
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3639
    ^ self findImplementors:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase match:false
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3640
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3641
    "
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3642
     SystemBrowser findImplementorsOf:#+
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3643
                                   in:(Array with:Number
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3644
                                             with:Float
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3645
                                             with:SmallInteger)
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3646
    "
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3647
!
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3648
2811
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3649
findImplementorsOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3650
    "search for all implementors of any in aCollectionOfSelectors in
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3651
     the classes contained in aCollectionOfClasses and its metaclasses.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3652
     Return a collection of methods.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3653
     CAVEAT: searches multiple times (could be tuned alot if heavily used)"
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3654
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3655
    |implementors|
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3656
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3657
    implementors := IdentitySet new.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3658
    aCollectionOfSelectors do:[:eachSelector |
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3659
        implementors addAll:(self findImplementorsOf:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase).
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3660
    ].
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3661
    ^ implementors
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3662
!
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3663
2741
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3664
findInstRefsTo:aString in:aCollectionOfClasses access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3665
    "return all methods in aCollectionOfClasses where the instVar named
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3666
     aString is referenced; 
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3667
     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
  3668
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3669
    ^ self findRefsTo:aString classVars:false in:aCollectionOfClasses access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3670
!
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3671
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3672
findInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3673
    "return all methods in aCollectionOfClasses where the instVar named
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3674
     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
  3675
     instvar is modified"
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3676
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3677
    ^ self findRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3678
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3679
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3680
findInstRefsTo:aString inClass:aClass access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3681
    "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
  3682
     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
  3683
     instvar is modified"
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3684
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3685
    ^ 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
  3686
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3687
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3688
findInstRefsTo:aString inClass:aClass modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3689
    "return all methods in aClass where the instVar named
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3690
     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
  3691
     instvar is modified"
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3692
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3693
    ^ self findRefsTo:aString classVars:false in:(Array with:aClass) modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3694
!
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3695
2741
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3696
findInstRefsTo:aString under:aClass access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3697
    "return all methods in aClass and subclasses
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3698
     where the classVar named aString is referenced; 
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3699
     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
  3700
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3701
    ^ self findInstRefsTo:aString in:(aClass withAllSubclasses) access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3702
!
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  3703
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3704
findInstRefsTo:aString under:aClass modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3705
    "return all methods in aClass and subclasses
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3706
     where the instVar named aString is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3707
     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
  3708
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3709
    ^ self findInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3710
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3711
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3712
findMenuSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3713
    "return a collection of all menu-spec methods in aCollectionOfClasses  
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3714
     containing a string in their source.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3715
     This may be slow, since source-code has to be scanned."
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3716
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3717
    ^ self findSpecMethodsFor:#menu withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3718
!
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3719
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3720
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
  3721
    "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
  3722
     varName is referenced; 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3723
     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
  3724
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3725
    |filter|
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3726
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3727
    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
  3728
    ^ 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
  3729
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3730
    "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3731
     self
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3732
        findRefsTo:'x'
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3733
        classVars:false
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3734
        in:(Array with:Point)
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3735
        modificationsOnly:true
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3736
    "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3737
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3738
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3739
findRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3740
    "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
  3741
     varName is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3742
     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
  3743
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3744
    |filter|
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3745
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3746
    filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly.
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3747
    ^ self findMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter.
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3748
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3749
    "
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3750
     self
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3751
        findRefsTo:'x'
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3752
        classVars:false
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3753
        in:(Array with:Point)
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3754
        modificationsOnly:true
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3755
    "
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3756
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3757
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3758
findResource:aResourceSymbolOrCollectionOfSymbols in:aCollectionOfClasses 
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3759
    "return a collection of all methods in aCollectionOfClasses  
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3760
     containing a resource."
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3761
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3762
    |searchBlock|
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3763
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3764
    aResourceSymbolOrCollectionOfSymbols isSymbol ifTrue:[
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3765
        searchBlock := [:c :m :sel | |resources|
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3766
                            (resources := m resources) size > 0
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3767
                            and:[resources includesKey:aResourceSymbolOrCollectionOfSymbols]
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3768
                       ].
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3769
    ] ifFalse:[
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3770
        searchBlock := [:c :m :sel | |resources|
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3771
                            (resources := m resources) size > 0
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3772
                            and:[resources keys includesAny:aResourceSymbolOrCollectionOfSymbols]
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3773
                       ].
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3774
    ].
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3775
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3776
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3777
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3778
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3779
     SystemBrowser findResource:#image in:(ApplicationModel withAllSubclasses)
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3780
     SystemBrowser findResource:#menu in:(ApplicationModel withAllSubclasses)
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3781
     SystemBrowser findResource:#(menu programMenu) in:(ApplicationModel withAllSubclasses)
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3782
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3783
!
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  3784
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3785
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3786
    "search for all senders of aSelector in
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3787
     the classes contained in aCollectionOfClasses and its metaclasses.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3788
     Return a collection of methods"
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3789
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3790
    ^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3791
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3792
    "
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3793
     SystemBrowser findSendersOf:#+
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3794
                   in:(Array with:Number
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3795
                             with:Float
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3796
                             with:SmallInteger)
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3797
                   ignoreCase:false
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3798
    "
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3799
!
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3800
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3801
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3802
    "search for all senders of aSelector in
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3803
     the classes contained in aCollectionOfClasses and its metaclasses.
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3804
     Return a collection of methods"
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3805
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3806
    ^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3807
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3808
    "
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3809
     SystemBrowser findSendersOf:#+
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3810
                   in:(Array with:Number
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3811
                             with:Float
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3812
                             with:SmallInteger)
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3813
                   ignoreCase:false
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3814
    "
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3815
!
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3816
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3817
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3818
    "search for all senders of aSelector in aCollectionOfMethods.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3819
     Return a collection of methods"
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3820
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3821
    |searchBlock|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3822
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3823
    searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3824
    ^ 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
  3825
!
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3826
2811
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3827
findSendersOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3828
    "search for all senders of any selector in aCollectionOfSelectors in
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3829
     the classes contained in aCollectionOfClasses and its metaclasses.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3830
     Return a collection of methods.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3831
     CAVEAT: searches multiple times (could be tuned alot if heavily used)"
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3832
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3833
    |allSenders|
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3834
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3835
    allSenders := IdentitySet new.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3836
    aCollectionOfSelectors do:[:eachSelector |
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3837
        allSenders addAll:(self allCallsOn:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase match:true)
2811
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3838
    ].
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3839
    ^ allSenders
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3840
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3841
    "
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3842
     SystemBrowser findSendersOfAny:#(#'+' #'-')
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3843
                   in:(Array with:Number
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3844
                             with:Float
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3845
                             with:SmallInteger)
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3846
                   ignoreCase:false  
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3847
    "
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3848
!
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  3849
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3850
findSpecMethodsFor:specSymbol withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3851
    "return a collection of all specSymbol-spec methods in aCollectionOfClasses  
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3852
     containing a string in their source.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3853
     This may be slow, since source-code has to be scanned."
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3854
3626
abf84bdbfdb2 Remove unused method vars
Stefan Vogel <sv@exept.de>
parents: 3621
diff changeset
  3855
    |searchBlock s|
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3856
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3857
    (aString includesMatchCharacters
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3858
    or:[ignoreCase]) ifTrue:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3859
        s := '*' , aString , '*'.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3860
        "a matchString"
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3861
        searchBlock := [:c :m :sel | 
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3862
                            |src resources| 
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3863
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3864
                            ((resources := m resources) size > 0
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3865
                            and:[resources includesKey:specSymbol]) ifTrue:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3866
                                src := m source.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3867
                                src isNil ifTrue:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3868
                                    ('Browser [info]: no source for ' , m printString) infoPrintCR.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3869
                                    false
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3870
                                ] ifFalse:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3871
                                    s match:src ignoreCase:ignoreCase
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3872
                                ]
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3873
                            ]
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3874
                       ]
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3875
    ] ifFalse:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3876
        searchBlock := [:c :m :sel | 
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3877
                            |src resources|
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3878
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3879
                            ((resources := m resources) size > 0
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3880
                            and:[resources includesKey:specSymbol]) ifTrue:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3881
                                src := m source.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3882
                                src isNil ifTrue:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3883
                                    ('Browser [info]: no source for ' , m printString) infoPrintCR.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3884
                                    false
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3885
                                ] ifFalse:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3886
                                    (src findString:aString) ~~ 0
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3887
                                ]
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3888
                            ]
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3889
                       ]
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3890
    ].
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3891
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3892
!
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3893
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3894
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3895
    "return a colelction of all methods in aCollectionOfClasses  
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3896
     containing a string in their source.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3897
     This may be slow, since source-code has to be scanned."
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3898
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3899
    ^ self findString:aString 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
  3900
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3901
    "
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3902
     SystemBrowser findString:'should'   in:(Array with:Object) ignoreCase:false
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3903
    "
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3904
!
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3905
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3906
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3907
    "return a colelction of all methods in aCollectionOfClasses  
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3908
     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
  3909
     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
  3910
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3911
    |searchBlock|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3912
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3913
    searchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3914
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3915
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3916
    "
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3917
     SystemBrowser findString:'should'   in:(Array with:Object) ignoreCase:false
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3918
    "
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3919
!
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3920
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3921
findString:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3922
    "return a colelction of all methods in aCollectionOfClasses  
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3923
     containing a string in their source.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3924
     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
  3925
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3926
    |searchBlock|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3927
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3928
    searchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3929
    ^ 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
  3930
!
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3931
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3932
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3933
    ^ self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:true
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3934
!
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3935
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3936
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3937
    |sel searchBlock lcString quickMatch|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3938
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3939
    (doMatch
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3940
     and:[(aSelectorString ~= '*') 
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  3941
     and:[(aSelectorString includesMatchCharacters or:[ignoreCase])]]) ifTrue:[
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3942
        "/ a matchString - need string matching procedure
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3943
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3944
        ignoreCase ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3945
            lcString := aSelectorString asLowercase.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3946
        ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3947
            lcString := aSelectorString.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3948
        ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3949
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3950
        quickMatch := aSelectorString.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3951
        (quickMatch startsWith:'*') ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3952
            quickMatch := quickMatch copyFrom:2
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3953
        ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3954
        (quickMatch endsWith:'*') ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3955
            quickMatch := quickMatch copyWithoutLast:1
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3956
        ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3957
        (quickMatch includes:$:) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3958
            quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3959
        ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3960
        searchBlock := [:class :method :s |
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3961
                            |src|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3962
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3963
                            (ignoreCase not and:[quickMatch includesMatchCharacters not]) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3964
                                "/ do quick search first
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3965
                                method isLazyMethod ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3966
                                    src := method source.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3967
                                    (src notNil 
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3968
                                    and:[src includesString:quickMatch]) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3969
                                        method makeRealMethod.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3970
                                        (method literalsDetect:[:aLiteral|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3971
                                            (aLiteral isMemberOf:Symbol) 
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3972
                                              and:[(lcString includesString:quickMatch)
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3973
                                              and:[(lcString match:aLiteral)]]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3974
                                        ] ifNone:nil) notNil
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3975
                                    ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3976
                                        false
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3977
                                    ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3978
                                ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3979
                                    (method literalsDetect:[:aLiteral|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3980
                                        (aLiteral isMemberOf:Symbol) 
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3981
                                          and:[(lcString includesString:quickMatch)
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3982
                                          and:[(lcString match:aLiteral)]]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3983
                                    ] ifNone:nil) notNil
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3984
                                ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3985
                            ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3986
                                "/ expensive search
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3987
                                method isLazyMethod ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3988
                                    src := method source.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3989
                                    (src notNil and:[src includesMatchString:aSelectorString]) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3990
                                        method makeRealMethod.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3991
                                        (method literalsDetect:[:aLiteral|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3992
                                            (aLiteral isMemberOf:Symbol) 
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3993
                                              and:[(ignoreCase and:[lcString match:aLiteral asLowercase])
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3994
                                                   or:[ignoreCase not and:[lcString match:aLiteral]]]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3995
                                        ] ifNone:nil) notNil
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3996
                                    ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3997
                                        false
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3998
                                    ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  3999
                                ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4000
                                    (method literalsDetect:[:aLiteral|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4001
                                        (aLiteral isMemberOf:Symbol) 
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4002
                                          and:[(ignoreCase and:[lcString match:aLiteral asLowercase])
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4003
                                               or:[ignoreCase not and:[lcString match:aLiteral]]]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4004
                                    ] ifNone:nil) notNil
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4005
                                ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4006
                            ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4007
                       ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4008
    ] ifFalse:[
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4009
        (doMatch and:[aSelectorString = '*']) ifTrue:[
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4010
            searchBlock := [:class :method :s | true].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4011
        ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4012
            "/ no matchString - can do it much faster
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4013
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4014
            sel := aSelectorString asSymbolIfInterned.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4015
            sel isNil ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4016
                ^ nil     "/ none
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4017
            ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4018
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4019
            quickMatch := sel.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4020
            (quickMatch includes:$:) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4021
                quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4022
            ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4023
            searchBlock := [:class :method :s |
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4024
                                |src|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4025
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4026
                                method isLazyMethod ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4027
                                    src := method source.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4028
                                    (src notNil and:[src includesString:quickMatch]) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4029
                                        method makeRealMethod.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4030
                                        method sends:sel.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4031
                                    ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4032
                                        false
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4033
                                    ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4034
                                ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4035
                                    method sends:sel
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4036
                                ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4037
                           ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4038
        ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4039
    ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4040
    ^ searchBlock
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4041
!
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4042
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4043
searchBlockForString:aString ignoreCase:ignoreCase match:doMatch
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4044
    "return a colelction of all methods in aCollectionOfClasses  
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4045
     containing a string in their source.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4046
     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
  4047
3626
abf84bdbfdb2 Remove unused method vars
Stefan Vogel <sv@exept.de>
parents: 3621
diff changeset
  4048
    |searchBlock s|
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4049
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4050
    ((doMatch and:[ aString includesMatchCharacters ])
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4051
     or:[ignoreCase]) ifTrue:[
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4052
        s := '*' , aString , '*'.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4053
        "a matchString"
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4054
        searchBlock := [:c :m :sel | 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4055
                            |src|       
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4056
                            src := m source.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4057
                            src isNil ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4058
                                ('Browser [info]: no source for ' , m printString) infoPrintCR.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4059
                                false
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4060
                            ] ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4061
                                s match:src ignoreCase:ignoreCase
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4062
                            ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4063
                       ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4064
    ] ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4065
        searchBlock := [:c :m :sel | 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4066
                            |src|
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4067
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4068
                            src := m source.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4069
                            src isNil ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4070
                                ('Browser [info]: no source for ' , m printString) infoPrintCR.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4071
                                false
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4072
                            ] ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4073
                                (src findString:aString) ~~ 0
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4074
                            ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4075
                       ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4076
    ].
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4077
    ^ searchBlock.
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4078
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4079
    "
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4080
     SystemBrowser findString:'should'   in:(Array with:Object) ignoreCase:false
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4081
    "
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4082
!
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4083
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4084
xxfindImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4085
    "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
  4086
     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
  4087
     Return a collection of methods"
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4088
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4089
    |list sel srchST srchJava lcSelector|
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4090
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4091
    aSelectorString size == 0 ifTrue:[ ^ #() ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4092
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4093
    list := IdentitySet new.
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4094
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4095
"/    ((aSelectorString ~= '*') and:[aSelectorString includesMatchCharacters]) ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4096
"/        "a matchString"
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4097
"/
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4098
"/        ignoreCase == true ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4099
"/            lcSelector := aSelectorString asLowercase.
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4100
"/
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4101
"/            srchST := [:aSelector :aMethod |
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4102
"/                            (lcSelector match:aSelector asLowercase) ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4103
"/                                list add:aMethod
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4104
"/                            ]
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4105
"/                      ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4106
"/            srchJava := [:aSelector :aMethod |
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4107
"/                            (aSelector match:aMethod name asLowercase) ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4108
"/                                list add:aMethod
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4109
"/                            ]
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4110
"/                      ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4111
"/        ] ifFalse:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4112
"/            srchST := [:aSelector :aMethod |
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4113
"/                            (aSelectorString match:aSelector) ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4114
"/                                list add:aMethod
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4115
"/                            ]
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4116
"/                      ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4117
"/            srchJava := [:aSelector :aMethod |
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4118
"/                            (aSelectorString match:aMethod name) ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4119
"/                                list add:aMethod
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4120
"/                            ]
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4121
"/                      ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4122
"/        ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4123
"/    ] ifFalse:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4124
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4125
        sel := aSelectorString asSymbolIfInterned.
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4126
        sel isNil ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4127
            ^ #()
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4128
        ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4129
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4130
        ignoreCase == true ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4131
            lcSelector := sel asLowercase.
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4132
            srchJava := [:aSelector :aMethod |
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4133
                            "/ allow search for signature AND
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4134
                            "/ search for plain name
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4135
                            ((aMethod name asLowercase = lcSelector)
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4136
                            or:[aSelector asLowercase = lcSelector]) ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4137
                                list add:aMethod
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4138
                            ]
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4139
                        ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4140
            srchST := [:aSelector :aMethod |
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4141
                            (aSelector asLowercase = lcSelector) ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4142
                                list add:aMethod
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4143
                            ]
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4144
                        ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4145
        ] ifFalse:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4146
            srchJava := [:aSelector :aMethod |
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4147
                            "/ allow search for signature AND
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4148
                            "/ search for plain name
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4149
                            ((aMethod name = sel)
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4150
                            or:[aSelector == sel]) ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4151
                                list add:aMethod
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4152
                            ]
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4153
                        ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4154
            srchST := [:aSelector :aMethod |
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4155
                            (aSelector == sel) ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4156
                                list add:aMethod
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4157
                            ]
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4158
                        ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4159
        ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4160
"/    ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4161
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4162
    aCollectionOfClasses do:[:aClass |
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4163
        |srchBlock|
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4164
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4165
        aClass isObsolete ifFalse:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4166
            aClass isJavaClass ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4167
                srchBlock := srchJava
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4168
            ] ifFalse:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4169
                srchBlock := srchST
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4170
            ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4171
            aClass methodDictionary keysAndValuesDo:srchBlock.
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4172
            aClass isMeta ifFalse:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4173
                aClass class methodDictionary keysAndValuesDo:srchBlock
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4174
            ]
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4175
        ]
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4176
    ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4177
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4178
    ^ list
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4179
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4180
    "
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4181
     SystemBrowser findImplementorsOf:#+
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4182
                                     in:(Array with:Number
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4183
                                               with:Float
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4184
                                               with:SmallInteger)
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4185
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4186
! !
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4187
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  4188
!SystemBrowser class methodsFor:'startup'!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4189
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4190
browseAllSelect:aBlock
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4191
    "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
  4192
     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
  4193
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4194
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4195
        browseMethodsWhere:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4196
        title:'selected messages'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4197
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4198
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4199
     SystemBrowser browseAllSelect:[:aClass :aMethod :selector | selector numArgs == 3]
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4200
    "
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4201
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4202
    "Modified: 24.1.1997 / 19:45:05 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4203
!
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  4204
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4205
browseClass:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4206
    "launch a browser for aClass"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4207
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4208
    ^ self 
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4209
        newWithLabel:aClass name
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4210
        setupSelector:#setupForClass:
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4211
        arg:aClass
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4212
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4213
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4214
     SystemBrowser browseClass:Object
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4215
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4216
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4217
    "Modified: 24.1.1997 / 19:45:16 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4218
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4219
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4220
browseClass:aClass methodCategory:aCategory
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4221
    "launch a browser for all methods under aCategory in aClass"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4222
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4223
    ^ self newWithLabel:(aClass name , ' ' , aCategory)
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4224
          setupBlock:[:browser | browser setupForClass:aClass methodCategory:aCategory]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4225
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4226
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4227
     SystemBrowser browseClass:String methodCategory:'copying'
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4228
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4229
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4230
    "Modified: 24.1.1997 / 19:45:23 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4231
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4232
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4233
browseClass:aClass selector:selector
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4234
    "launch a browser for the method at selector in aClass"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4235
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4236
    ^ self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4237
        newWithLabel:(aClass name , ' ' , selector , ' ' , selector)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4238
        setupBlock:[:newBrowser | newBrowser setupForClass:aClass selector:selector]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4239
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4240
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4241
     SystemBrowser browseClass:Object selector:#printString
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4242
    "
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4243
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4244
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4245
browseClassCategory:aClassCategory
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4246
    "launch a browser for all classes under aCategory"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4247
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4248
    ^ self 
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4249
        newWithLabel:aClassCategory
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4250
        setupSelector:#setupForClassCategory:
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4251
        arg:aClassCategory
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4252
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4253
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4254
     SystemBrowser browseClassCategory:'Kernel-Objects'
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4255
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4256
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4257
    "Modified: 24.1.1997 / 19:45:32 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4258
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4259
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4260
browseClassHierarchy:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4261
    "launch a browser for aClass and all its superclasses.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4262
     this is different from the fullProtocol browser."
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4263
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4264
    ^ self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4265
        newWithLabel:(aClass name , '-' , 'hierarchy')
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4266
        setupSelector:#setupForClassHierarchy:
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4267
        arg:aClass
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4268
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4269
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4270
     SystemBrowser browseClassHierarchy:Number
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4271
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4272
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4273
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4274
browseClasses:aList title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4275
    "launch a browser for all classes in aList"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4276
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4277
    ^ self 
576
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4278
        newWithLabel:title
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4279
        setupBlock:[:b | b setupForClassList:aList sort:true]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4280
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4281
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4282
     SystemBrowser browseClasses:(Array with:Object
576
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4283
                                        with:Float)
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4284
                           title:'two classes'
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4285
    "
576
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4286
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4287
    "Modified: 28.5.1996 / 13:52:25 / cg"
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4288
!
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4289
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4290
browseClasses:aList title:title sort:doSort
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4291
    "launch a browser for all classes in aList"
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4292
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4293
    ^ self 
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4294
        newWithLabel:title
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4295
        setupBlock:[:b | b setupForClassList:aList sort:doSort]
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4296
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4297
    "
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4298
     SystemBrowser browseClasses:(Array with:Object
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4299
                                        with:Float)
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4300
                           title:'two classes'
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4301
    "
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4302
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4303
    "Created: 28.5.1996 / 13:52:09 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  4304
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  4305
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4306
browseFullClassProtocol:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4307
    "launch a browser for aClasses full protocol.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4308
     This is different from hierarchy browsing."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4309
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4310
    ^ self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4311
        newWithLabel:(aClass name , '-' , 'full protocol')
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4312
        setupSelector:#setupForFullClassProtocol:
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4313
        arg:aClass
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4314
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4315
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4316
     SystemBrowser browseFullClassProtocol:Number
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4317
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4318
!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4319
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4320
browseFullClasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4321
    "launch a browser showing all methods at once"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4322
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4323
    ^ self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4324
        newWithLabel:'Full Class Browser'
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4325
        setupBlock:[:newBrowser | newBrowser setupForFullClass]
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4326
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4327
    "SystemBrowser browseFullClasses"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4328
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4329
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4330
browseInstMethodsFrom:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4331
    "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
  4332
     where aBlock evaluates to true"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4333
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4334
    ^ self      
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4335
        browseMethodsIn:(aClass withAllSubclasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4336
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4337
        class:false 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4338
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4339
        title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4340
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4341
    "Modified: 24.1.1997 / 19:44:45 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4342
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4343
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4344
browseInstMethodsIn:aCollectionOfClasses where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4345
    "launch a browser for all instance methods of all classes in
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4346
     aCollectionOfClasses where aBlock evaluates to true"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4347
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4348
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4349
        browseMethodsIn:aCollectionOfClasses 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4350
        inst:true class:false 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4351
        where:aBlock title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4352
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4353
    "Modified: 24.1.1997 / 19:43:41 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4354
!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4355
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4356
browseInstMethodsOf:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4357
    "launch a browser for all instance methods in aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4358
     where aBlock evaluates to true"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4359
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4360
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4361
        browseMethodsIn:(Array with:aClass) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4362
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4363
        class:false 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4364
        where:aBlock title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4365
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4366
    "Modified: 24.1.1997 / 19:43:50 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4367
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4368
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4369
browseMethodCategory:aCategory
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4370
    "launch a browser for all methods where category = aCategory"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4371
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4372
    |searchBlock|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4373
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4374
    aCategory includesMatchCharacters ifTrue:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4375
        searchBlock := [:c :m :s | aCategory match:m category].
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4376
    ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4377
        searchBlock := [:c :m :s | m category = aCategory]
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4378
    ].
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4379
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4380
    ^ self browseMethodsWhere:searchBlock title:('all methods with category of ' , aCategory)
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4381
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4382
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4383
     SystemBrowser browseMethodCategory:'printing & storing'
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4384
     SystemBrowser browseMethodCategory:'print*'
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4385
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4386
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4387
3666
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4388
browseMethods:aListOfMethods
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4389
    "launch a multi-method browser."
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4390
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4391
    ^ self browseMethods:aListOfMethods title:'some methods'
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4392
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4393
    "
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4394
     self 
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4395
        browseMethods:(Array with:(Array compiledMethodAt:#at:)
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4396
                             with:(OrderedCollection compiledMethodAt:#at:))
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4397
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4398
     self 
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4399
        browseMethods:(Array with:(Array compiledMethodAt:#at:)
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4400
                             with:(Array compiledMethodAt:#at:put:))
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4401
    "
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4402
!
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4403
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4404
browseMethods:aList title:aString
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4405
    "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
  4406
     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
  4407
     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
  4408
     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
  4409
1919
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4410
    ^ self
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4411
        browseMethods:aList
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4412
        title:aString
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4413
        sort:true
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4414
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4415
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4416
    "
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4417
     SystemBrowser 
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4418
        browseMethods:#('Object printOn:' 'Collection add:')
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4419
        title:'some methods'
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4420
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4421
     SystemBrowser 
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4422
        browseMethods:#('Behavior new:' 'Setclass new:')
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4423
        title:'some new: methods'
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4424
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4425
     SystemBrowser 
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4426
        browseMethods:(Array with:(Object compiledMethodAt:#printOn:)
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4427
                             with:(Collection compiledMethodAt:#add:)
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4428
                             with:(Object class compiledMethodAt:#initialize))
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4429
        title:'some methods'
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4430
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4431
    "
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4432
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4433
    "Modified: 1.11.1996 / 16:30:17 / cg"
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4434
!
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4435
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4436
browseMethods:aList title:aString sort:doSort
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4437
    "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
  4438
     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
  4439
     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
  4440
     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
  4441
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4442
    |l|
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4443
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4444
    (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
  4445
        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
  4446
        ^ nil
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4447
    ].
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4448
    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
  4449
    l := l collect:[:entry |
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  4450
        |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
  4451
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4452
        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
  4453
            entry
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4454
        ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4455
            cls := entry mclass.
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4456
            cls isNil ifTrue:[
1031
5d77c99b877e dont crash when unbound methods are passed
ca
parents: 1018
diff changeset
  4457
                '??? unbound'
5d77c99b877e dont crash when unbound methods are passed
ca
parents: 1018
diff changeset
  4458
            ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4459
                cls isJavaClass ifTrue:[
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4460
                    clsName := 'JAVA::' , cls fullName 
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  4461
                ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4462
                    clsName := cls name
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4463
                ].
2824
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
  4464
(cls selectorAtMethod:entry) isNil ifTrue:[
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
  4465
    self halt.
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
  4466
].
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4467
                clsName
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4468
                , ' ' 
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4469
                , (entry printStringForBrowserWithSelector:(cls selectorAtMethod:entry))
1031
5d77c99b877e dont crash when unbound methods are passed
ca
parents: 1018
diff changeset
  4470
            ]
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4471
        ]
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4472
      ].
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4473
        
1919
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4474
    doSort ifTrue:[l sort].
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  4475
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4476
    ^ 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
  4477
        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
  4478
        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
  4479
        arg:l 
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4480
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4481
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4482
     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
  4483
        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
  4484
        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
  4485
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4486
     SystemBrowser 
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4487
        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
  4488
        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
  4489
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4490
     SystemBrowser 
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4491
        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
  4492
                             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
  4493
                             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
  4494
        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
  4495
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4496
    "
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4497
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  4498
    "Modified: / 17.6.1996 / 17:07:46 / stefan"
2826
9d7f11697806 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2824
diff changeset
  4499
    "Modified: / 17.10.1998 / 11:25:53 / cg"
9d7f11697806 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2824
diff changeset
  4500
!
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4501
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4502
browseMethodsFrom:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4503
    "launch a browser for all instance- and classmethods in aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4504
     and all its subclasses where aBlock evaluates to true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4505
     The block is called with 3 arguments, class, method and seelctor."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4506
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4507
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4508
        browseMethodsIn:(aClass withAllSubclasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4509
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4510
        title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4511
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4512
    "Modified: 24.1.1997 / 19:44:00 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4513
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4514
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4515
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4516
    "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
  4517
     classmethods (if wantClass is true) from classes in aCollectionOfClasses,
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4518
     where aBlock evaluates to true.
270
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  4519
     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
  4520
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4521
    |list|
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4522
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4523
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4524
     since this may take a long time, lower my priority ...
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4525
    "
2295
4e05198e7dd8 execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4526
    Processor activeProcess 
4e05198e7dd8 execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  4527
        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
  4528
    do:[
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4529
        list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4530
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4531
    ^ self browseMethods:list title:title
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4532
!
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4533
3780
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4534
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4535
    "launch a browser for all instance- (if wantInst is true) and/or
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4536
     classmethods (if wantClass is true) from classes in aCollectionOfClasses,
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4537
     where aBlock evaluates to true.
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4538
     The block is called with 3 arguments, class, method and selector."
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4539
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4540
    |list|
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4541
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4542
    "
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4543
     since this may take a long time, lower my priority ...
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4544
    "
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4545
    Processor activeProcess 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4546
        withPriority:Processor activePriority-1 to:Processor activePriority
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4547
    do:[
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4548
        list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock.
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4549
        list size == 0 ifTrue:[warnBlock value].
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4550
    ].
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4551
    ^ self browseMethods:list title:title
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4552
!
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4553
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4554
browseMethodsIn:aCollectionOfClasses where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4555
    "launch a browser for all instance- and classmethods from 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4556
     all classes in aCollectionOfClasses where aBlock evaluates to true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4557
     The block is called with 3 arguments, class, method and seelctor."
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4558
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4559
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4560
        browseMethodsIn:aCollectionOfClasses 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4561
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4562
        class:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4563
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4564
        title:title
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  4565
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4566
    "Modified: 24.1.1997 / 19:44:17 / cg"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4567
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4568
3780
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4569
browseMethodsIn:aCollectionOfClasses where:aBlock title:title ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4570
    "launch a browser for all instance- and classmethods from 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4571
     all classes in aCollectionOfClasses where aBlock evaluates to true.
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4572
     The block is called with 3 arguments, class, method and seelctor."
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4573
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4574
    ^ self 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4575
        browseMethodsIn:aCollectionOfClasses 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4576
        inst:true 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4577
        class:true 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4578
        where:aBlock 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4579
        title:title
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4580
        ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4581
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4582
    "Modified: 24.1.1997 / 19:44:17 / cg"
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4583
!
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4584
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4585
browseMethodsOf:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4586
    "launch a browser for all instance- and classmethods in aClass 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4587
     where aBlock evaluates to true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4588
     The block is called with 3 arguments, class, method and seelctor."
93
claus
parents: 90
diff changeset
  4589
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4590
    ^ self browseMethodsIn:(Array with:aClass) where:aBlock title:title
93
claus
parents: 90
diff changeset
  4591
!
claus
parents: 90
diff changeset
  4592
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4593
browseMethodsWhere:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4594
    "launch a browser for all methods where aBlock returns true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4595
     The block is called with 3 arguments, class, method and seelctor."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4596
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4597
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4598
        browseMethodsIn:(Smalltalk allClasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4599
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4600
        title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4601
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4602
    "Modified: 24.1.1997 / 19:44:30 / cg"
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4603
!
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4604
3780
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4605
browseMethodsWhere:aBlock title:title ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4606
    "launch a browser for all methods where aBlock returns true.
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4607
     The block is called with 3 arguments, class, method and seelctor."
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4608
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4609
    ^ self 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4610
        browseMethodsIn:(Smalltalk allClasses) 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4611
        where:aBlock 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4612
        title:title
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4613
        ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4614
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4615
    "Modified: 24.1.1997 / 19:44:30 / cg"
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4616
!
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  4617
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4618
findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4619
    "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
  4620
     from classes in aCollectionOfClasses, where aBlock evaluates to true."
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4621
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4622
    |list checkedClasses checkBlock|
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4623
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4624
    checkedClasses := IdentitySet new.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4625
    list := OrderedCollection new.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4626
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4627
    checkBlock := [:cls |
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4628
        (checkedClasses includes:cls) ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4629
            cls isObsolete ifTrue:[
2882
2a12342fef79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2880
diff changeset
  4630
                Transcript showCR:'Browser method search: skipping obsolete class: ' , cls displayString
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4631
            ] ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4632
                cls methodDictionary keysAndValuesDo:[:sel :method |
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4633
                    (aBlock value:cls value:method value:sel) ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4634
                        list add:method "/ (cls name , ' ' , sel)
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4635
                    ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4636
                ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4637
                checkedClasses add:cls.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4638
            ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4639
        ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4640
    ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4641
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4642
    aCollectionOfClasses do:[:aClass |
3008
1a45c272b13f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2901
diff changeset
  4643
        (aClass notNil and:[aClass isObsolete not]) ifTrue:[
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4644
            "
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4645
             output disabled - it slows down things too much (when searching for
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4646
             implementors or senders)
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4647
            "
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4648
            wantInst ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4649
"/                Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4650
                checkBlock value:aClass
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4651
            ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4652
            wantClass ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4653
"/                Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4654
                checkBlock value:(aClass class)
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4655
            ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4656
            Processor yield
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4657
        ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4658
    ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4659
    ^ list
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4660
!
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4661
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4662
findMethodsIn:aCollectionOfClasses where:aBlock
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4663
    "return all instance- and classmethods 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4664
     from classes in aCollectionOfClasses, where aBlock evaluates to true."
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4665
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4666
    ^ self
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4667
        findMethodsIn:aCollectionOfClasses 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4668
        inst:true
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4669
        class:true      
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4670
        where:aBlock
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4671
! !
93
claus
parents: 90
diff changeset
  4672
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  4673
!SystemBrowser class methodsFor:'startup with query'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4674
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4675
askThenBrowseClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4676
    self getClassThenPerform:#browseClass:
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4677
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4678
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4679
     SystemBrowser askThenBrowseClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4680
    "
93
claus
parents: 90
diff changeset
  4681
!
claus
parents: 90
diff changeset
  4682
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4683
askThenBrowseClassHierarchy
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4684
    self getClassThenPerform:#browseClassHierarchy:
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4685
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4686
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4687
     SystemBrowser askThenBrowseClassHierarchy
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4688
    "
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4689
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4690
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4691
askThenBrowseFullClassProtocol
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4692
    self getClassThenPerform:#browseFullClassProtocol:
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4693
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4694
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4695
     SystemBrowser askThenBrowseFullClassProtocol
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4696
    "
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  4697
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  4698
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4699
getClassThenPerform:aSelector
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4700
    |enterBox resources|
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4701
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4702
    resources := self classResources.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  4703
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4704
    enterBox := EnterBox title:(self classResources at:'Browse which class:') withCRs.
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4705
    enterBox okText:(resources at:'browse').
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4706
    enterBox entryCompletionBlock:[:contents |
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4707
        |s what m|
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4708
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4709
        s := contents withoutSpaces.
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4710
        what := Smalltalk classnameCompletion:s.
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4711
        enterBox contents:what first.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4712
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4713
    enterBox action:[:className |
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4714
        |cls|
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4715
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4716
        cls := Smalltalk classNamed:className.
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4717
        cls isNil ifTrue:[
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4718
            self warn:(resources at:'no such class').
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4719
        ] ifFalse:[
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4720
            self perform:aSelector with:cls  
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  4721
        ]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4722
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4723
    enterBox showAtPointer
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  4724
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4725
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4726
     SystemBrowser getClassThenPerform:#browseClass:
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4727
    "
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4728
! !
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4729
2813
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4730
!SystemBrowser class methodsFor:'utilities'!
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4731
3833
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4732
classWithNameSimilarTo:className
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4733
    "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
  4734
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4735
    |nm lcName class allClasses|
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4736
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4737
    (className startsWith:'Smalltalk::') ifTrue:[
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4738
        nm := className copyFrom:('Smalltalk::' size + 1).
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4739
    ] ifFalse:[
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4740
        nm := className.
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4741
    ].
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4742
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4743
    class := Smalltalk at:nm asSymbol.
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4744
    class notNil ifTrue:[^ class].
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4745
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4746
    lcName := className asLowercase.
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4747
    allClasses := Smalltalk allClasses.
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4748
    class := allClasses 
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4749
                    detect:[:cls | cls name asLowercase = lcName]
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4750
                    ifNone:nil.
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4751
    class notNil ifTrue:[^ class].
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4752
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4753
    class := allClasses 
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4754
                    detect:[:cls | cls name asLowercase startsWith:lcName]
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4755
                    ifNone:nil.
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4756
    class notNil ifTrue:[^ class].
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4757
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4758
    class := allClasses 
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4759
                    detect:[:cls | cls nameWithoutNameSpacePrefix asLowercase = lcName]
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4760
                    ifNone:nil.
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4761
    class notNil ifTrue:[^ class].
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4762
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4763
    class := allClasses 
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4764
                    detect:[:cls | cls nameWithoutNameSpacePrefix asLowercase startsWith:lcName]
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4765
                    ifNone:nil.
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4766
    class notNil ifTrue:[^ class].
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4767
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4768
    class := allClasses 
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4769
                    detect:[:cls | cls nameWithoutPrefix asLowercase = lcName]
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4770
                    ifNone:nil.
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4771
    class notNil ifTrue:[^ class].
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4772
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4773
    class := allClasses 
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4774
                    detect:[:cls | cls nameWithoutPrefix asLowercase startsWith:lcName]
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4775
                    ifNone:nil.
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4776
    class notNil ifTrue:[^ class].
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4777
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4778
    class := allClasses 
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4779
                    detect:[:cls | ('*' , lcName , '*') match:cls nameWithoutPrefix asLowercase]
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4780
                    ifNone:nil.
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4781
    ^ class
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4782
!
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  4783
2813
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4784
extractClassAndSelectorFrom:aString into:aBlock
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4785
    "given a string which can be either 'class>>sel' or
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4786
     'class sel', extract className and selector, and call aBlock with
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4787
     the result.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4788
     Useful to open browser on a method as selected in some documentation."
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4789
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4790
    |sel clsName isMeta sep s|
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4791
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4792
    sel := aString.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4793
    sel notNil ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4794
        sel := sel asString withoutSeparators.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4795
        ('*>>*' match:sel) ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4796
            sep := $>
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4797
        ] ifFalse:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4798
            ('* *' match:sel) ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4799
                sep := Character space
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4800
            ]
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4801
        ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4802
        sep notNil ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4803
            "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4804
             extract class/sel from selection
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4805
            "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4806
            s := ReadStream on:sel.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4807
            clsName := s upTo:sep.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4808
            [s peek == sep] whileTrue:[s next].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4809
            sel := s upToEnd.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4810
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4811
            (clsName endsWith:' class') ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4812
                isMeta := true.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4813
                clsName := clsName copyWithoutLast:6 "copyTo:(clsName size - 5)"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4814
            ] ifFalse:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4815
                isMeta := false
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4816
            ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4817
        ]
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4818
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4819
    aBlock value:clsName value:sel value:isMeta
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4820
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4821
    "Modified: / 17.6.1996 / 16:52:14 / stefan"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4822
    "Created: / 6.2.2000 / 00:51:51 / cg"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4823
    "Modified: / 6.2.2000 / 00:56:43 / cg"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4824
!
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4825
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4826
extractSelectorFrom:aString
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4827
    "given an arbitrary string, try to extract a useful selector.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4828
     Useful to open browser on a selected code fragment."
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4829
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4830
    |s sel t|
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4831
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4832
    aString isNil ifTrue:[^ nil].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4833
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4834
    s := aString asString string.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4835
    s := s withoutSeparators.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4836
    sel := s.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4837
    sel knownAsSymbol ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4838
        "/ might be already correct ...
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4839
        ^ sel
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4840
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4841
    (sel startsWith:'#') ifTrue:[
3221
b9659fb96e6a selector check - do not crash
Claus Gittinger <cg@exept.de>
parents: 3151
diff changeset
  4842
        t := Symbol readFrom:sel onError:nil.
b9659fb96e6a selector check - do not crash
Claus Gittinger <cg@exept.de>
parents: 3151
diff changeset
  4843
        (t notNil and:[ t knownAsSymbol ]) ifTrue:[
2813
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4844
            ^ t
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4845
        ]
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4846
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4847
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4848
    t := Parser selectorInExpression:sel.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4849
    t notNil ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4850
        sel := t
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4851
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4852
    (sel = s or:[sel isNil or:[t == #>>]]) ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4853
        "oops - thats probably not what we want here ..."
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4854
        self extractClassAndSelectorFrom:s into:[:c :s :m |
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4855
            sel := s
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4856
        ]
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4857
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4858
    ^ sel
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4859
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4860
    "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4861
     self extractSelectorFrom:'at:put:'      
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4862
     self extractSelectorFrom:'#at:put:'                       
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4863
     self extractSelectorFrom:'at:something put:someValue'     
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4864
     self extractSelectorFrom:'self at:something put:someValue'
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4865
     self extractSelectorFrom:'(self at:something put:someValue)' 
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4866
     self extractSelectorFrom:'[self at:something put:someValue] value' 
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4867
     self extractSelectorFrom:'Array>>at:put:' 
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4868
    "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4869
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4870
    "Created: / 6.2.2000 / 00:49:44 / cg"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4871
    "Modified: / 6.2.2000 / 00:57:08 / cg"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4872
! !
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  4873
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4874
!SystemBrowser::BrowserHistoryEntry methodsFor:'accessing'!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4875
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4876
className
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4877
    "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
  4878
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4879
    ^ className
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4880
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4881
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4882
className:something
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4883
    "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
  4884
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4885
    className := something.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4886
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4887
3151
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  4888
className:classNameArg meta:metaArg selector:selectorArg
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  4889
    className := classNameArg.
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  4890
    meta := metaArg.
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  4891
    selector := selectorArg.
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  4892
!
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  4893
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4894
meta
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4895
    "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
  4896
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4897
    ^ meta
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4898
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4899
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4900
meta:something
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4901
    "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
  4902
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4903
    meta := something.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4904
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4905
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4906
selector
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4907
    "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
  4908
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4909
    ^ selector
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4910
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4911
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4912
selector:something
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4913
    "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
  4914
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4915
    selector := something.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4916
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4917
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4918
theClass
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4919
    ^ Smalltalk at:className asSymbol
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4920
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4921
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4922
!SystemBrowser::BrowserHistoryEntry methodsFor:'comparing'!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4923
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4924
= anEntry
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4925
    ^ className = anEntry className
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4926
      and:[meta = anEntry meta
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4927
      and:[selector = anEntry selector]]
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4928
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  4929
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  4930
!SystemBrowser class methodsFor:'documentation'!
93
claus
parents: 90
diff changeset
  4931
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4932
version
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4933
    ^ '$Header: /cvs/stx/stx/libtool/SystemBrowser.st,v 1.177 2002-11-18 10:12:56 cg Exp $'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4934
! !
4112
ed7af6707ad7 emphasisForChangedCode
tm
parents: 3834
diff changeset
  4935
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4936
SystemBrowser initialize!