SystemBrowser.st
author Claus Gittinger <cg@exept.de>
Mon, 20 Nov 2006 12:33:38 +0100
changeset 7524 0257265ae6b7
parent 7395 4aa4c6b9a161
child 7711 7e8881bccf72
permissions -rw-r--r--
do not make dependent on the history-list; instead, make dependent on the Systembrowser class.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     1
"
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     2
 COPYRIGHT (c) 1989 by Claus Gittinger
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
     3
              All Rights Reserved
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     4
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     5
 This software is furnished under a license and may be used
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    10
 hereby transferred.
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    11
"
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
    12
"{ Package: 'stx:libtool' }"
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
    13
85
d9713a3ca092 *** empty log message ***
claus
parents: 77
diff changeset
    14
ApplicationModel subclass:#SystemBrowser
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    15
	instanceVariableNames:''
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    16
	classVariableNames:'CheckForInstancesWhenRemovingClasses ClassHistory
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    17
		EmphasisForDifferentPackage EmphasisForModifiedBuffer
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    18
		EmphasisForObsoleteCode EmphasisForReadVariable
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    19
		EmphasisForWrittenVariable EmphasisForChangedCode'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    20
	poolDictionaries:''
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    21
	category:'Interface-Browsers'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    22
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    23
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    24
Object subclass:#BrowserHistoryEntry
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    25
	instanceVariableNames:'className meta selector'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    26
	classVariableNames:''
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    27
	poolDictionaries:''
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
    28
	privateIn:SystemBrowser
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    29
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    30
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
    31
!SystemBrowser class methodsFor:'documentation'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    32
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    33
copyright
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    34
"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    35
 COPYRIGHT (c) 1989 by Claus Gittinger
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
    36
              All Rights Reserved
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    37
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    38
 This software is furnished under a license and may be used
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    39
 only in accordance with the terms of that license and with the
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    40
 inclusion of the above copyright notice.   This software may not
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    41
 be provided or otherwise made available to, or used by, any
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    42
 other person.  No title to or ownership of the software is
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    43
 hereby transferred.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    44
"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    45
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    46
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    47
documentation
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    48
"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    49
    this class implements all kinds of class browsers.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    50
    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
    51
    startup messages, to launch special browsers.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    52
    See the categories 'startup' and 'special search startup' in the classes
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    53
    protocol.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    54
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    55
    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
    56
    for how to use the browser.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    57
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    58
    written winter 89 by claus.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    59
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    60
    Notice: SystemBrowser is currently being rewritten to be an instance
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    61
    of ApplicationModel - this transition is not yet complete and you see
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    62
    here an intermediate version. The instance variables defined here are NOT
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    63
    currently used - instead, everything is really done in the BrowserView
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    64
    which (currently) keeps the real state of the browser.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    65
    This will certainly change ...
508
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    66
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    67
    [author:]
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    68
        Claus Gittinger
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    69
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    70
"
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
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
    73
!SystemBrowser class methodsFor:'initialization'!
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    74
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    75
initialize
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    76
    "Browser configuration;
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    77
     (values can be changed from your private startup file)"
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
    78
254
8258536e5bcf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 215
diff changeset
    79
"/    self classResources.
85
d9713a3ca092 *** empty log message ***
claus
parents: 77
diff changeset
    80
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    81
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    82
     setting this to false, the removeClass function will remove
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    83
     classes WITHOUT checking for instances. Otherwise,
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    84
     it will check and let you confirm in case there are instances.
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    85
     Checking for instances may be a bit time consuming, though.
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    86
     The default is true - therefore, it will check
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    87
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    88
    CheckForInstancesWhenRemovingClasses := true
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    89
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    90
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    91
     CheckForInstancesWhenRemovingClasses := true
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    92
     CheckForInstancesWhenRemovingClasses := false
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    93
85
d9713a3ca092 *** empty log message ***
claus
parents: 77
diff changeset
    94
     SystemBrowser initialize
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    95
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    96
! !
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    97
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
    98
!SystemBrowser class methodsFor:'instance creation'!
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
    99
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
   100
open
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
   101
    "launch a standard browser"
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
   102
2631
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   103
    self == SystemBrowser ifFalse:[
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   104
        ^ super open
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   105
    ].
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   106
105
claus
parents: 100
diff changeset
   107
    ^ self openOnDevice:(Screen current) 
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
   108
93
claus
parents: 90
diff changeset
   109
    "
claus
parents: 90
diff changeset
   110
     SystemBrowser open
claus
parents: 90
diff changeset
   111
    "
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   112
!
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   113
523
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   114
openInClass:aClass
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   115
    "launch a standard browser which immediately switches
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   116
     to aClass"
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   117
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   118
    ^ self openInClass:aClass selector:nil
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   119
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
     SystemBrowser openInClass:Object
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   122
    "
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
    "Created: 30.4.1996 / 14:43:45 / cg"
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   125
!
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   126
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   127
openInClass:aClass selector:aSelector
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   128
    "launch a standard browser which immediately switches
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   129
     to aClass>>aSelector."
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   130
3626
abf84bdbfdb2 Remove unused method vars
Stefan Vogel <sv@exept.de>
parents: 3621
diff changeset
   131
    |brwsr classesName|
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   132
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   133
    brwsr := self openOnDevice:(Screen current).
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   134
    brwsr waitUntilVisible.
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   135
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   136
    aClass notNil ifTrue:[
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   137
"/        cls := aClass.
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   138
"/        cls isMeta ifTrue:[
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   139
"/            cls := aClass soleInstance
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   140
"/        ].
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   141
        aClass isMeta ifTrue:[
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   142
            brwsr instanceProtocol:false
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   143
        ].
1931
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   144
        aClass isJavaClass ifTrue:[
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   145
            classesName := aClass fullName. 
1931
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   146
        ] ifFalse:[
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   147
            classesName := aClass name. 
1931
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   148
        ].
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   149
        brwsr switchToClassNamed:classesName.
1681
b209bdfbf762 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1620
diff changeset
   150
        brwsr classSelectionChanged.
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   151
        aSelector notNil ifTrue:[
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   152
            brwsr switchToMethodNamed:aSelector.
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   153
        ]
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   154
    ].
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   155
    ^ brwsr
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   156
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
     SystemBrowser openInClass:Object selector:#at:put:
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   159
     SystemBrowser openInClass:Object selector:nil
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   160
     SystemBrowser openInClass:nil selector:nil
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   161
    "
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   162
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   163
    "Created: / 22.11.1995 / 21:04:50 / cg"
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
   164
    "Modified: / 5.11.2001 / 16:51:02 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   165
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   166
3588
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   167
openOn:anEnvironment
4921
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   168
    ^ self
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   169
        openOn:anEnvironment
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   170
        label:(self classResources string:'System Browser')
3588
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   171
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   172
    "
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   173
     SystemBrowser openOn:Smalltalk
3589
f38e59e3ab76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3588
diff changeset
   174
     SystemBrowser openOn:Demos
3588
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   175
    "
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   176
!
3a8e5e30a92a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3573
diff changeset
   177
4921
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   178
openOn:aClassEnvironment label:title
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   179
    ^ self
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   180
        openOn:aClassEnvironment 
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   181
        label:title 
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   182
        onDevice:(Screen current)
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   183
!
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   184
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   185
openOn:aClassEnvironment label:title onDevice:aDisplayDevice
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   186
    |browser|
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   187
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   188
    browser := self 
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   189
                newWithLabel:title
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   190
                setupBlock:[:browser | browser environment:aClassEnvironment.
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   191
                                       browser setupForAll]
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   192
                onDevice:aDisplayDevice.
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   193
    ^ browser
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   194
!
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   195
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   196
openOnDevice:aDisplay
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   197
    "launch a standard browser on another display."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   198
2631
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   199
    self == SystemBrowser ifFalse:[
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   200
        ^ super openOnDevice:aDisplay
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   201
    ].
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   202
3519
0fef57de776a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3476
diff changeset
   203
    ^ self 
4921
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   204
        openOn:Smalltalk
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   205
        label:(self classResources string:'System Browser')
3519
0fef57de776a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3476
diff changeset
   206
        onDevice:aDisplay
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   207
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   208
    "|d|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   209
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   210
     d := XWorkstation new initializeFor:'porty:0'.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   211
     d startDispatch.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   212
     SystemBrowser openOnDevice:d
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   213
    "
2818
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   214
!
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   215
3573
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   216
openOnRemoteImageOnHost:aHostName port:portOrNil
4921
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   217
    |environment|
3573
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   218
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   219
    environment := RemoteImage onHost:aHostName port:portOrNil.
4921
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   220
    ^ self
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   221
        openOn:environment 
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   222
        label:(self classResources string:'RemoteImage Browser - %1' with:aHostName)
3573
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   223
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   224
    "
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   225
     SystemBrowser openOnRemoteImageOnHost:'funkfix' port:nil
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   226
    "
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   227
!
cc8a6cf4520a + openOnRemoteImage
Claus Gittinger <cg@exept.de>
parents: 3549
diff changeset
   228
2818
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   229
openOnSnapShotImage:anImageFileName
4921
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   230
    |environment|
2818
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   231
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   232
    environment := SnapShotImage for:anImageFileName.
4921
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   233
    ^ self
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   234
        openOn:environment 
cd47f919e8f9 openOn: protocols
Claus Gittinger <cg@exept.de>
parents: 4909
diff changeset
   235
        label:(self classResources string:'Image Browser - %1' with:anImageFileName asFilename baseName)
2818
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   236
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   237
    "
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
   238
     SystemBrowser openOnSnapShotImage:('/tmp/stmeas.img')
2824
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
   239
    "
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
   240
! !
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   241
4909
e6b77dc6942e category
Claus Gittinger <cg@exept.de>
parents: 4860
diff changeset
   242
!SystemBrowser class methodsFor:'Compatibility-ST80'!
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   243
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   244
newOnClass:aClass
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   245
    ^ self browseClass:aClass
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   246
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   247
    "Created: / 27.10.1997 / 20:10:39 / cg"
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   248
! !
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   249
4909
e6b77dc6942e category
Claus Gittinger <cg@exept.de>
parents: 4860
diff changeset
   250
!SystemBrowser class methodsFor:'accessing-history'!
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   251
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   252
addToHistory:aClass selector:aSelectorOrNil
3679
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   253
    |newEntry oldEntry classHistory|
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   254
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   255
    (newEntry := self historyEntryForClass:aClass selector:aSelectorOrNil) isNil ifTrue:[^ self].
3679
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   256
    classHistory := self classHistory.
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   257
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   258
    oldEntry := classHistory detect:[:entry | entry className = newEntry className] ifNone:nil.
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   259
    oldEntry notNil ifTrue:[
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   260
        classHistory removeIdentical:oldEntry.
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   261
    ].
3679
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   262
    classHistory addFirst:newEntry.
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   263
    classHistory size > self visitedHistoryMaxSize ifTrue:[
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   264
        classHistory removeLast
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   265
    ].
7524
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   266
    SystemBrowser changed:#visitedClassHistory with:classHistory.
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   267
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   268
    "Modified: / 20-11-2006 / 12:29:45 / cg"
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   269
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   270
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   271
checkClassHistory
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   272
    "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
   273
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   274
    "/ 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
   275
    self classHistory reverseDo:[:histEntry|
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   276
        (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
   277
        ifFalse:[
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   278
            self classHistory remove: histEntry
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
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   282
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   283
classHistory
3679
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   284
    ClassHistory isNil ifTrue:[
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   285
        ClassHistory := List new
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   286
    ].
102d85a9efbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3675
diff changeset
   287
    ^ ClassHistory 
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   288
!
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
classHistory:newCollection
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   291
    ClassHistory := newCollection
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   292
!
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
emptyClassHistory
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   295
    "removes all class history entries"
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   296
7524
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   297
    |classHistory|
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   298
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   299
    classHistory := self classHistory.
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   300
    classHistory removeAll.
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   301
    SystemBrowser changed:#visitedClassHistory with:classHistory.
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   302
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
   303
    "Modified: / 20-11-2006 / 12:29:42 / cg"
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   304
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   305
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   306
historyEntryForClass:aClass selector:aSelectorOrNil
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   307
    |newEntry meta cls|
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   308
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   309
    aClass isBehavior ifFalse:[^ nil].
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   310
3151
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   311
    (meta := aClass isMeta) ifTrue:[
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   312
        cls := aClass theNonMetaclass.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   313
    ] ifFalse:[
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   314
        cls := aClass
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   315
    ].
3151
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   316
    newEntry := BrowserHistoryEntry new.
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   317
    newEntry 
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   318
        className:cls name
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   319
        meta:meta
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
   320
        selector:aSelectorOrNil.
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   321
    ^ newEntry
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   322
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   323
    "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
   324
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   325
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   326
!SystemBrowser class methodsFor:'defaults'!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   327
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   328
classHistoryMaxLevels
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   329
    ^ 3
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   330
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   331
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   332
classHistoryMaxSize
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   333
    ^ 15
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   334
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   335
3549
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   336
methodTemplate
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   337
    "return a method definition template string"
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
    |s|
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   340
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   341
    s := TextStream on:''.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   342
    s nextPutAll:'message selector and argument names
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   343
    "comment stating purpose of this message"
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   344
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   345
    |temporaries|
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
    statement.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   348
    statement.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   349
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   350
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   351
    "
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   352
     optional: comment giving example use
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
'.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   355
    s cr.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   356
    s emphasis:(UserPreferences current commentEmphasisAndColor).
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   357
    s nextPutAll:'"
5802
0e7e66402f6d template
Claus Gittinger <cg@exept.de>
parents: 5775
diff changeset
   358
 change the above template into real code;
0e7e66402f6d template
Claus Gittinger <cg@exept.de>
parents: 5775
diff changeset
   359
 remove this comment.
3549
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   360
 Then `accept'' either via the menu 
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   361
 or via the keyboard (usually CMD-A).
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   362
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   363
 You do not need this template; you can also
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   364
 select any existing methods code, change it,
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   365
 and finally `accept''. The method will then be
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   366
 installed under the selector as defined in the
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   367
 actual text - no matter which method is selected
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   368
 in the browser.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   369
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   370
 Or clear this text, type in the method from scratch
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   371
 and install it with `accept''.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   372
"
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   373
'.
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   374
    ^ s contents
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   375
!
056bd76b5b0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   376
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   377
visitedHistoryMaxSize
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   378
    "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
   379
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   380
    ^ 15
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   381
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   382
4909
e6b77dc6942e category
Claus Gittinger <cg@exept.de>
parents: 4860
diff changeset
   383
!SystemBrowser class methodsFor:'defaults-presentation'!
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   384
3352
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   385
emphasisForChangedCode
4499
395d7282b2f0 emphasis stuff
Claus Gittinger <cg@exept.de>
parents: 4490
diff changeset
   386
    ^ UserPreferences current emphasisForChangedCode.
3352
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
     EmphasisForChangedCode := #underwave
4112
ed7af6707ad7 emphasisForChangedCode
tm
parents: 3834
diff changeset
   390
     EmphasisForChangedCode := #color->Color blue
3352
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   391
     EmphasisForChangedCode := #color->Color red lightened lightened lightened
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   392
    "
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   393
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   394
    "Created: / 31.10.2001 / 10:15:33 / cg"
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   395
!
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   396
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   397
emphasisForChangedCode:anEmphasis
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   398
    EmphasisForChangedCode := anEmphasis
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   399
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   400
    "
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   401
     self emphasisForChangedCode:#underwave
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   402
     self emphasisForChangedCode:(#color->Color red lightened lightened lightened)
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   403
    "
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   404
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   405
    "Created: / 31.10.2001 / 10:15:44 / cg"
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   406
!
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   407
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   408
emphasisForDifferentPackage
4499
395d7282b2f0 emphasis stuff
Claus Gittinger <cg@exept.de>
parents: 4490
diff changeset
   409
    ^ UserPreferences current emphasisForDifferentPackage.
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   410
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   411
    "
3352
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   412
     EmphasisForDifferentPackage := nil.
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   413
     EmphasisForDifferentPackage := #underwave
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   414
     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
   415
    "
3352
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   416
fd047f6a8c9f +empForChangedCode
Claus Gittinger <cg@exept.de>
parents: 3314
diff changeset
   417
    "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
   418
!
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   419
3241
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   420
emphasisForDifferentPackage:anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   421
    EmphasisForDifferentPackage := anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   422
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   423
    "
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   424
     self emphasisForDifferentPackage:#underwave
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   425
     self emphasisForDifferentPackage:(#color->Color red lightened lightened lightened)
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   426
    "
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   427
!
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
emphasisForModifiedBuffer
4499
395d7282b2f0 emphasis stuff
Claus Gittinger <cg@exept.de>
parents: 4490
diff changeset
   430
    ^ UserPreferences current emphasisForModifiedBuffer.
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   431
!
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   432
3241
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   433
emphasisForModifiedBuffer:anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   434
    EmphasisForModifiedBuffer := anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   435
!
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   436
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   437
emphasisForObsoleteCode
4499
395d7282b2f0 emphasis stuff
Claus Gittinger <cg@exept.de>
parents: 4490
diff changeset
   438
    ^ UserPreferences current emphasisForObsoleteCode.
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   439
!
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   440
3241
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   441
emphasisForObsoleteCode:anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   442
    EmphasisForObsoleteCode := anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   443
!
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   444
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   445
emphasisForReadVariable
4499
395d7282b2f0 emphasis stuff
Claus Gittinger <cg@exept.de>
parents: 4490
diff changeset
   446
    ^ UserPreferences current emphasisForReadVariable.
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   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
4499
395d7282b2f0 emphasis stuff
Claus Gittinger <cg@exept.de>
parents: 4490
diff changeset
   464
    ^ UserPreferences current emphasisForWrittenVariable.
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   465
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   466
    "
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   467
     EmphasisForWrittenVariable := #underline
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   468
     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
   469
    "
3241
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   470
!
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   471
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   472
emphasisForWrittenVariable:anEmphasis
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   473
    EmphasisForWrittenVariable := anEmphasis
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
     self emphasisForWrittenVariable:#underline
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   477
     self emphasisForWrittenVariable:(Array with:#underline with:#underlineColor->Color red lightened)
caf04eb8c500 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3240
diff changeset
   478
    "
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   479
!
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   480
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   481
iconForClass:aClass
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   482
    |c|
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   483
7361
fd281ab33547 protocol for startability via browser slightly changed
Claus Gittinger <cg@exept.de>
parents: 7066
diff changeset
   484
    (aClass isBrowserStartable) ifTrue:[
fd281ab33547 protocol for startability via browser slightly changed
Claus Gittinger <cg@exept.de>
parents: 7066
diff changeset
   485
        aClass isVisualStartable ifTrue:[
fd281ab33547 protocol for startability via browser slightly changed
Claus Gittinger <cg@exept.de>
parents: 7066
diff changeset
   486
            ^ self startableVisualAppIcon
fd281ab33547 protocol for startability via browser slightly changed
Claus Gittinger <cg@exept.de>
parents: 7066
diff changeset
   487
        ].
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   488
        ^ self startableClassIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   489
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   490
    aClass isLoaded ifFalse:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   491
        ^ self autoloadedClassIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   492
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   493
    c := aClass.
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   494
    [c notNil] whileTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   495
        c == Warning ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   496
            ^ self warningClassIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   497
        ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   498
        c == Query ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   499
            ^ self queryClassIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   500
        ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   501
        c == Notification ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   502
            ^ self notificationClassIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   503
        ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   504
        c == Error ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   505
            ^ self errorClassIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   506
        ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   507
        c == GenericException ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   508
            ^ self exceptionClassIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   509
        ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   510
        c == SimpleView ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   511
            ^ self windowClassIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   512
        ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   513
        c == Collection ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   514
            ^ self containerClassIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   515
        ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   516
        (c == TestCase and:[aClass isAbstract not "aClass  ~~ TestCase"]) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   517
            ^ self testCaseClassIconFor:aClass
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   518
        ].
6925
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
   519
        (c == LibraryDefinition) ifTrue:[
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
   520
            aClass ~~ LibraryDefinition ifTrue:[
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
   521
                ^ self packageIconSmall
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
   522
            ].
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
   523
        ].
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
   524
        (c == ApplicationDefinition) ifTrue:[
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
   525
            aClass ~~ ApplicationDefinition ifTrue:[
6954
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
   526
                aClass isGUIApplication ifTrue:[
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
   527
                    ^ self packageIconGreenSmall
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
   528
                ].
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
   529
                ^ self packageIconGraySmall.
6925
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
   530
            ].
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   531
        ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   532
        c := c superclass
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   533
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   534
    ^ nil
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   535
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   536
    "Created: / 17-08-2006 / 09:11:27 / cg"
7361
fd281ab33547 protocol for startability via browser slightly changed
Claus Gittinger <cg@exept.de>
parents: 7066
diff changeset
   537
    "Modified: / 06-10-2006 / 11:37:25 / cg"
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   538
!
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   539
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   540
resourceIconForMethod:aMethod
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   541
    |resources|
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   542
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   543
    (resources := aMethod resources) isNil ifTrue:[^ nil].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   544
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   545
    (resources includesKey:#obsolete) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   546
        ^ self deprecatedMethodIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   547
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   548
    (resources includesKey:#canvas) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   549
        ^ self canvasIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   550
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   551
    (resources includesKey:#menu) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   552
        ^ self menuIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   553
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   554
    (resources includesKey:#image) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   555
        ^ self imageIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   556
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   557
    (resources includesKey:#fileImage) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   558
        ^ self fileImageIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   559
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   560
    (resources includesKey:#programImage) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   561
        ^ self programImageIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   562
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   563
    (resources includesKey:#help) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   564
        ^ self helpIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   565
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   566
    (resources includesKey:#programMenu) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   567
        ^ self programMenuIcon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   568
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   569
    (resources includesKey:#tableColumns) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   570
        ^ self tableColumnsIcon 
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   571
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   572
    (resources includesKey:#tabList) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   573
        ^ self tabListIcon 
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   574
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   575
    (resources includesKey:#hierarchicalList) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   576
        ^ self hierarchicalListIcon 
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   577
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   578
    (resources includesKey:#programImage) ifTrue:[
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   579
        ^ self programImageIcon 
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   580
    ].
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   581
    ^ nil
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   582
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   583
    "Created: / 17-08-2006 / 09:08:11 / cg"
3240
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   584
! !
34f017469465 allow for some colors to be parametrized (Timos red-green blindness)
Claus Gittinger <cg@exept.de>
parents: 3221
diff changeset
   585
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   586
!SystemBrowser class methodsFor:'image specs'!
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   587
2748
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   588
abstractMethodIcon
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   589
    <resource: #programImage>
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   590
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   591
    ^ self padLockGrayMiniIcon
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   592
!
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   593
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   594
addBreakPointIcon
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   595
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   596
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   597
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   598
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   599
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   600
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   601
    "
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   602
     self addBreakPointIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   603
     ImageEditor openOnClass:self andSelector:#addBreakPointIcon
4852
b9266dc55860 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4806
diff changeset
   604
     Icon flushCachedIcons
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   605
    "
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   606
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   607
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   608
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   609
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   610
        constantNamed:#'SystemBrowser class addBreakPointIcon'
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   611
        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
   612
!
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   613
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   614
addBreakPointIcon2
6115
43cde28a3209 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6052
diff changeset
   615
    ^ XPToolbarIconLibrary addBreakPointIcon2
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   616
!
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
   617
4341
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   618
autoloadedClassIcon
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   619
    "This resource specification was automatically generated
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   620
     by the ImageEditor of ST/X."
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   621
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   622
    "Do not manually edit this!! If it is corrupted,
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   623
     the ImageEditor may not be able to read the specification."
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   624
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   625
    "
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   626
     self autoloadedClassIcon inspect
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   627
     ImageEditor openOnClass:self andSelector:#autoloadedClassIcon
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   628
     Icon flushCachedIcons
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   629
    "
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   630
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   631
    <resource: #image>
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   632
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   633
    ^Icon
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   634
        constantNamed:#'SystemBrowser class autoloadedClassIcon'
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   635
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@HADQDB@@@B@QDQ@ @@@ DQDPH@@@H @@@B@@@BH"H"H @@@"@@@@H@@@H @ADB@@@@H@@Q@ @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 194 194 194 129 129 129]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'_?A?<G?0_?A?<G?0_?A?<G?0_?@?<@@a') ; yourself); yourself]
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   636
!
7bb51f44dca7 Icon for autoloaded classes
Stefan Vogel <sv@exept.de>
parents: 4332
diff changeset
   637
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   638
canvasIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   639
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   640
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   641
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   642
    "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
   643
     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
   644
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   645
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   646
     ImageEditor openOnClass:self andSelector:#canvasIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   647
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   648
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   649
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   650
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   651
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   652
        constantNamed:#'SystemBrowser canvasIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   653
        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
   654
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   655
4143
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   656
containerClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   657
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   658
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   659
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   660
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   661
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   662
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   663
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   664
     self containerClassIcon inspect
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   665
     ImageEditor openOnClass:self andSelector:#containerClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   666
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   667
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   668
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   669
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   670
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   671
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   672
        constantNamed:#'SystemBrowser class containerClassIcon'
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   673
        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
   674
!
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   675
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   676
defaultIcon
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   677
    "This resource specification was automatically generated
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   678
     by the ImageEditor of ST/X."
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   679
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   680
    "Do not manually edit this!! If it is corrupted,
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   681
     the ImageEditor may not be able to read the specification."
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   682
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   683
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   684
     self defaultIcon inspect
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   685
     ImageEditor openOnClass:self andSelector:#defaultIcon
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   686
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   687
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   688
    <resource: #image>
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   689
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   690
    ^Icon
3794
Claus Gittinger <cg@exept.de>
parents: 3780
diff changeset
   691
        constantNamed:#'SystemBrowser class defaultIcon'
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   692
        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
   693
@@@@@@@@@@@@@@@@@@@FY&Y&Y&X0@@@@@@@@@@YDQDQDQB@@@@@@@@@@A$QDQDQDH@@@@@@@@@@CH"H"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@
3794
Claus Gittinger <cg@exept.de>
parents: 3780
diff changeset
   694
@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@A&Y&Y&Y#@@@@@F@"H"HFDQDQDQH@@@@@@@@@@@L"H"H"
Claus Gittinger <cg@exept.de>
parents: 3780
diff changeset
   695
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
   696
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@@B@B@ @@H@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   697
@@@@@@@@@@@@@@@@@@@@@@@@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
   698
??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
   699
QDBD%DQ@!!OH''HHRQEABT$QPP99]7\@@a') ; yourself); yourself]
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   700
!
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   701
5761
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   702
deprecatedMethodIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   703
    ^ self doNotEnterIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   704
!
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   705
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   706
doNotEnterIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   707
    "This resource specification was automatically generated
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   708
     by the ImageEditor of ST/X."
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   709
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   710
    "Do not manually edit this!! If it is corrupted,
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   711
     the ImageEditor may not be able to read the specification."
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   712
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   713
    "
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   714
     self doNotEnterIcon inspect
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   715
     ImageEditor openOnClass:self andSelector:#doNotEnterIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   716
     Icon flushCachedIcons
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   717
    "
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   718
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   719
    <resource: #image>
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   720
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   721
    ^Icon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   722
        constantNamed:#'SystemBrowser class doNotEnterIcon'
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   723
        ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??C0<NA00CB@EY>P''9B@DL@08GC0<@@a') ; colorMapFromArray:#[255 0 0 255 255 255]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@O@A>@O<A?8G? _>A?8C?@G8@O@@@a') ; yourself); yourself]
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   724
!
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
   725
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   726
emptyIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   727
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   728
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   729
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   730
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   731
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   732
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   733
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   734
     self emptyIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   735
     ImageEditor openOnClass:self andSelector:#emptyIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   736
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   737
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   738
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   739
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   740
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   741
        constantNamed:#'SystemBrowser class emptyIcon'
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   742
        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
   743
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   744
    "Created: / 5.11.2001 / 09:39:54 / cg"
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   745
!
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   746
4143
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   747
errorClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   748
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   749
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   750
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   751
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   752
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   753
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   754
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   755
     self errorClassIcon inspect
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   756
     ImageEditor openOnClass:self andSelector:#errorClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   757
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   758
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   759
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   760
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   761
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   762
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   763
        constantNamed:#'SystemBrowser class errorClassIcon'
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   764
        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
   765
!
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   766
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   767
exceptionClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   768
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   769
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   770
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   771
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   772
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   773
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   774
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   775
     self exceptionClassIcon inspect
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   776
     ImageEditor openOnClass:self andSelector:#exceptionClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   777
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   778
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   779
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   780
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   781
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   782
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   783
        constantNamed:#'SystemBrowser class exceptionClassIcon'
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
   784
        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 110 110 110]; 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]
4143
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   785
!
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
   786
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   787
fileImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   788
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   789
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   790
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   791
    "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
   792
     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
   793
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   794
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   795
     self fileImageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   796
     ImageEditor openOnClass:self andSelector:#fileImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   797
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   798
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   799
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   800
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   801
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   802
        constantNamed:#'SystemBrowser fileImageIcon'
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   803
        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
   804
!
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   805
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   806
greenCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   807
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   808
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   809
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   810
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   811
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   812
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   813
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   814
     self greenCheckIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   815
     ImageEditor openOnClass:self andSelector:#greenCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   816
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   817
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   818
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   819
    <resource: #image>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   820
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   821
    ^Icon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   822
        constantNamed:#'SystemBrowser class greenCheckIcon'
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   823
        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
   824
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   825
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   826
greenLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   827
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   828
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   829
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   830
    "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
   831
     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
   832
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   833
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   834
     self greenLockIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   835
     ImageEditor openOnClass:self andSelector:#greenLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   836
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   837
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   838
    <resource: #programImage>
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   839
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   840
    ^ self padLockGreenMiniIcon
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   841
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
   842
    "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
   843
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   844
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   845
greenThumbUpIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   846
    "This resource specification was automatically generated
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   847
     by the ImageEditor of ST/X."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   848
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   849
    "Do not manually edit this!! If it is corrupted,
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   850
     the ImageEditor may not be able to read the specification."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   851
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   852
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   853
     self greenThumbUpIcon inspect
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   854
     ImageEditor openOnClass:self andSelector:#greenThumbUpIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   855
     Icon flushCachedIcons
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   856
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   857
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   858
    <resource: #image>
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   859
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   860
    ^Icon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   861
        constantNamed:#'SystemBrowser class greenThumbUpIcon'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   862
        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
   863
@@@@@@@@@@@@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
   864
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
   865
!
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   866
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   867
greenThumbUpSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   868
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   869
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   870
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   871
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   872
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   873
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   874
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   875
     self greenThumbUpSmallIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   876
     ImageEditor openOnClass:self andSelector:#greenThumbUpSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   877
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   878
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   879
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   880
    <resource: #image>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   881
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   882
    ^Icon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   883
        constantNamed:#'SystemBrowser class greenThumbUpSmallIcon'
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   884
        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
   885
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   886
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   887
greyCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   888
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   889
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   890
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   891
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   892
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   893
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   894
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   895
     self greyCheckIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   896
     ImageEditor openOnClass:self andSelector:#greyCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   897
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   898
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   899
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   900
    <resource: #image>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   901
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   902
    ^Icon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   903
        constantNamed:#'SystemBrowser class greyCheckIcon'
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   904
        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
   905
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
   906
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   907
greyThumbUpIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   908
    "This resource specification was automatically generated
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   909
     by the ImageEditor of ST/X."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   910
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   911
    "Do not manually edit this!! If it is corrupted,
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   912
     the ImageEditor may not be able to read the specification."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   913
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   914
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   915
     self greyThumbUpIcon inspect
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   916
     ImageEditor openOnClass:self andSelector:#greyThumbUpIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   917
     Icon flushCachedIcons
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   918
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   919
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   920
    <resource: #image>
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   921
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   922
    ^Icon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   923
        constantNamed:#'SystemBrowser class greyThumbUpIcon'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   924
        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
   925
@@@@@@@@@@ @@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
   926
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
   927
!
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
   928
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   929
helpIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   930
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   931
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   932
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   933
    "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
   934
     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
   935
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   936
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   937
     self helpIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   938
     ImageEditor openOnClass:self andSelector:#helpIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   939
    "
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
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   942
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   943
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   944
        constantNamed:#'SystemBrowser helpIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   945
        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
   946
!
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
hierarchicalListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   949
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   950
     by the ImageEditor of ST/X."
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
    "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
   953
     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
   954
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   955
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   956
     ImageEditor openOnClass:self andSelector:#hierarchicalListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   957
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   958
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   959
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   960
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   961
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   962
        constantNamed:#'SystemBrowser hierarchicalListIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   963
        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
   964
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   965
5997
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
   966
ignoredMethodIcon
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
   967
    <resource: #programImage>
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
   968
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
   969
    ^ self padLockBlackMiniIcon
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
   970
!
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
   971
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   972
imageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   973
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   974
     by the ImageEditor of ST/X."
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
    "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
   977
     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
   978
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
     self imageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   981
     ImageEditor openOnClass:self andSelector:#imageIcon
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
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   984
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   985
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   986
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   987
        constantNamed:#'SystemBrowser imageIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   988
        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
   989
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   990
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   991
medium_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   992
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   993
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   994
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   995
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   996
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   997
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   998
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
   999
     self medium_methodEmptyInheritedIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1000
     ImageEditor openOnClass:self andSelector:#medium_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1001
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1002
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1003
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1004
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1005
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1006
        constantNamed:#'SystemBrowser class medium_methodEmptyInheritedIcon'
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1007
        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
  1008
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1009
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1010
medium_methodInheritedFromAboveAndRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1011
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1012
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1013
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1014
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1015
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1016
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1017
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1018
     self medium_methodInheritedFromAboveAndRedefinedBelowIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1019
     ImageEditor openOnClass:self andSelector:#medium_methodInheritedFromAboveAndRedefinedBelowIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1020
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1021
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1022
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1023
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1024
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1025
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1026
        constantNamed:#'SystemBrowser class medium_methodInheritedFromAboveAndRedefinedBelowIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1027
        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
  1028
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1029
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1030
medium_methodInheritedFromAboveIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1031
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1032
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1033
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1034
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1035
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1036
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1037
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1038
     self medium_methodInheritedFromAboveIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1039
     ImageEditor openOnClass:self andSelector:#medium_methodInheritedFromAboveIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1040
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1041
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1042
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1043
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1044
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1045
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1046
        constantNamed:#'SystemBrowser class medium_methodInheritedFromAboveIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1047
        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
  1048
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1049
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1050
medium_methodRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1051
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1052
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1053
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1054
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1055
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1056
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1057
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1058
     self medium_methodRedefinedBelowIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1059
     ImageEditor openOnClass:self andSelector:#medium_methodRedefinedBelowIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1060
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1061
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1062
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1063
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1064
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1065
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1066
        constantNamed:#'SystemBrowser class medium_methodRedefinedBelowIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1067
        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
  1068
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1069
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1070
menuIcon
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 menuIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1079
     ImageEditor openOnClass:self andSelector:#menuIcon
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 menuIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1086
        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
  1087
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1088
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1089
methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1090
    ^ self small_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1091
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1092
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1093
methodInheritedFromAboveAndRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1094
    ^ self small_methodInheritedFromAboveAndRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1095
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1096
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1097
methodInheritedFromAboveIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1098
    ^ self small_methodInheritedFromAboveIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1099
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1100
5761
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1101
methodIsSubclassResponsibilityAndRedefinedBelowIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1102
    "This resource specification was automatically generated
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1103
     by the ImageEditor of ST/X."
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1104
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1105
    "Do not manually edit this!! If it is corrupted,
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1106
     the ImageEditor may not be able to read the specification."
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1107
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1108
    "
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1109
     self methodIsSubclassResponsibilityAndRedefinedBelowIcon inspect
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1110
     ImageEditor openOnClass:self andSelector:#methodIsSubclassResponsibilityAndRedefinedBelowIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1111
     Icon flushCachedIcons
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1112
    "
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1113
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1114
    <resource: #image>
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1115
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1116
    ^Icon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1117
        constantNamed:#'SystemBrowser class methodIsSubclassResponsibilityAndRedefinedBelowIcon'
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1118
        ifAbsentPut:[(Depth2Image new) width: 5; height: 11; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' @D@@H@@@@@B@@@@@@4UBHR@A@@"@@@a') ; colorMapFromArray:#[0 0 0 255 127 127 127 127 127]; mask:((Depth1Image new) width: 5; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'<HC DO@@>O#8\G@b') ; yourself); yourself]
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1119
!
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1120
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1121
methodIsSubclassResponsibilityIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1122
    "This resource specification was automatically generated
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1123
     by the ImageEditor of ST/X."
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1124
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1125
    "Do not manually edit this!! If it is corrupted,
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1126
     the ImageEditor may not be able to read the specification."
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1127
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1128
    "
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1129
     self methodIsSubclassResponsibilityIcon inspect
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1130
     ImageEditor openOnClass:self andSelector:#methodIsSubclassResponsibilityIcon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1131
     Icon flushCachedIcons
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1132
    "
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1133
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1134
    <resource: #image>
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1135
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1136
    ^Icon
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1137
        constantNamed:#'SystemBrowser class methodIsSubclassResponsibilityIcon'
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1138
        ifAbsentPut:[(Depth2Image new) width: 5; height: 11; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' @D@@H@@@@@B@@@@@ 4@B@H@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 127 127 127 127 127]; mask:((Depth1Image new) width: 5; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'<HC DO@@<IC0(I@b') ; yourself); yourself]
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1139
!
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5546
diff changeset
  1140
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1141
methodRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1142
    ^ self small_methodRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1143
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1144
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1145
nameSpaceIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1146
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1147
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1148
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1149
    "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
  1150
     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
  1151
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1152
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1153
     self nameSpaceIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1154
     ImageEditor openOnClass:self andSelector:#nameSpaceIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1155
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1156
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1157
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1158
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1159
    ^Icon
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1160
        constantNamed:#'SystemBrowser class nameSpaceIcon'
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1161
        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
  1162
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1163
4308
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1164
notificationClassIcon
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1165
    "This resource specification was automatically generated
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1166
     by the ImageEditor of ST/X."
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1167
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1168
    "Do not manually edit this!! If it is corrupted,
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1169
     the ImageEditor may not be able to read the specification."
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1170
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1171
    "
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1172
     self notificationClassIcon inspect
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1173
     ImageEditor openOnClass:self andSelector:#notificationClassIcon
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1174
     Icon flushCachedIcons
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1175
    "
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1176
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1177
    <resource: #image>
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1178
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1179
    ^Icon
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1180
        constantNamed:#'SystemBrowser class notificationClassIcon'
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1181
        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 0 127 255]; 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]
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1182
!
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1183
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1184
packageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1185
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1186
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1187
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1188
    "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
  1189
     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
  1190
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1191
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1192
     self packageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1193
     ImageEditor openOnClass:self andSelector:#packageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1194
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1195
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1196
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1197
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1198
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1199
        constantNamed:#'SystemBrowser packageIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1200
        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
  1201
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1202
6954
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1203
packageIconGraySmall
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1204
    "This resource specification was automatically generated
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1205
     by the ImageEditor of ST/X."
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1206
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1207
    "Do not manually edit this!! If it is corrupted,
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1208
     the ImageEditor may not be able to read the specification."
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1209
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1210
    "
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1211
     self packageIconGraySmall inspect
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1212
     ImageEditor openOnClass:self andSelector:#packageIconGraySmall
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1213
     Icon flushCachedIcons
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1214
    "
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1215
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1216
    <resource: #image>
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1217
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1218
    ^Icon
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1219
        constantNamed:#'SystemBrowser class packageIconGraySmall'
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1220
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ADP@@DQ@@DPDP@Q@P@AD@DQD@D@@ADQDQDQ@@@@HRH D@@@@@D@@ @@@@H!!H H@@@@BHRHB@@@@@"D"@ @@@@H!!H @@@@@@@P@@@@@b') ; colorMapFromArray:#[0 0 0 132 0 132 153 153 153]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'NGA,4F^PO?@_8C? O>@?8C? O<@? @@a') ; yourself); yourself]
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1221
!
b10a2c15fee5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6944
diff changeset
  1222
6925
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1223
packageIconGreenSmall
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1224
    "This resource specification was automatically generated
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1225
     by the ImageEditor of ST/X."
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1226
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1227
    "Do not manually edit this!! If it is corrupted,
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1228
     the ImageEditor may not be able to read the specification."
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1229
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1230
    "
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1231
     self packageIconGreenSmall inspect
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1232
     ImageEditor openOnClass:self andSelector:#packageIconGreenSmall
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1233
     Icon flushCachedIcons
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1234
    "
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1235
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1236
    <resource: #image>
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1237
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1238
    ^Icon
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1239
        constantNamed:#'SystemBrowser class packageIconGreenSmall'
6955
d1ceb7b91518 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6954
diff changeset
  1240
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@BH @@H"@@H H @"@ @BH@H"H@H@@BH"H"H"@@@@D!!DPH@@@@@H@@P@@@@DRDPD@@@@AD!!DA@@@@@QHQ@P@@@@DRDP@@@@@@@ @@@@@b') ; colorMapFromArray:#[0 0 0 0 255 0 132 0 132]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'NGA,4F^PO?@_8C? O>@?8C? O<@? @@a') ; yourself); yourself]
6925
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1241
!
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1242
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1243
packageIconOrangeSmall
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1244
    "This resource specification was automatically generated
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1245
     by the ImageEditor of ST/X."
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1246
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1247
    "Do not manually edit this!! If it is corrupted,
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1248
     the ImageEditor may not be able to read the specification."
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1249
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1250
    "
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1251
     self packageIconOrangeSmall inspect
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1252
     ImageEditor openOnClass:self andSelector:#packageIconOrangeSmall
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1253
     Icon flushCachedIcons
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1254
    "
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1255
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1256
    <resource: #image>
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1257
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1258
    ^Icon
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1259
        constantNamed:#'SystemBrowser class packageIconOrangeSmall'
6955
d1ceb7b91518 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6954
diff changeset
  1260
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ADP@@DQ@@DPDP@Q@P@AD@DQD@D@@ADQDQDQ@@@@HRH D@@@@@D@@ @@@@H!!H H@@@@BHRHB@@@@@"D"@ @@@@H!!H @@@@@@@P@@@@@b') ; colorMapFromArray:#[0 0 0 132 0 132 255 139 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'NGA,4F^PO?@_8C? O>@?8C? O<@? @@a') ; yourself); yourself]
6925
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1261
!
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1262
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1263
packageIconSmall
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1264
    "This resource specification was automatically generated
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1265
     by the ImageEditor of ST/X."
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1266
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1267
    "Do not manually edit this!! If it is corrupted,
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1268
     the ImageEditor may not be able to read the specification."
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1269
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1270
    "
6925
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1271
     self packageIconSmall inspect
388067acd009 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6913
diff changeset
  1272
     ImageEditor openOnClass:self andSelector:#packageIconSmall
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1273
     Icon flushCachedIcons
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1274
    "
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1275
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1276
    <resource: #image>
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1277
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1278
    ^Icon
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1279
        constantNamed:#'SystemBrowser class packageIconSmall'
6955
d1ceb7b91518 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6954
diff changeset
  1280
        ifAbsentPut:[(Depth4Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ADP@@DQ@@DPDP@Q@P@AD@DQD@D@@ADQDQDQ@@@@HRH D@@@@@D@@ @@@@H!!H H@@@@BHRHB@@@@@"D"@ @@@@H!!H @@@@@@@P@@@@@b') ; colorMapFromArray:#[0 0 0 132 0 132 255 255 0]; mask:((Depth1Image new) width: 13; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'NGA,4F^PO?@_8C? O>@?8C? O<@? @@a') ; yourself); yourself]
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1281
!
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1282
5997
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
  1283
padLockBlackMiniIcon
6333
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1284
    <resource: #programImage>
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1285
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1286
    ^ XPToolbarIconLibrary padLockBlackMiniIcon
5997
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
  1287
!
a0654a5af9a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5928
diff changeset
  1288
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1289
padLockBlueMiniIcon
6333
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1290
    <resource: #programImage>
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1291
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1292
    ^ XPToolbarIconLibrary padLockBlueMiniIcon
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1293
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1294
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1295
padLockGrayMiniIcon
6333
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1296
    <resource: #programImage>
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1297
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1298
    ^ GenericToolbarIconLibrary padLockGrayMiniIcon
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1299
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1300
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1301
padLockGreenMiniIcon
6333
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1302
    <resource: #programImage>
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1303
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1304
    ^ GenericToolbarIconLibrary padLockGreenMiniIcon
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1305
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1306
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1307
padLockRedMiniIcon
6333
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1308
    <resource: #programImage>
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1309
d5d28109866e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6303
diff changeset
  1310
    ^ GenericToolbarIconLibrary padLockRedMiniIcon
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1311
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1312
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1313
privateMethodIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1314
    <resource: #programImage>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1315
2748
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
  1316
    ^ self padLockRedMiniIcon
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1317
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1318
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1319
programImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1320
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1321
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1322
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1323
    "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
  1324
     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
  1325
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1326
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1327
     self programImageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1328
     ImageEditor openOnClass:self andSelector:#programImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1329
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1330
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1331
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1332
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1333
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1334
        constantNamed:#'SystemBrowser programImageIcon'
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1335
        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
  1336
!
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1337
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1338
programMenuIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1339
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1340
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1341
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1342
    "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
  1343
     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
  1344
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1345
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1346
     self programMenuIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1347
     ImageEditor openOnClass:self andSelector:#programMenuIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1348
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1349
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1350
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1351
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1352
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1353
        constantNamed:#'SystemBrowser programMenuIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1354
        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
  1355
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1356
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1357
protectedMethodIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1358
    <resource: #programImage>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1359
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1360
    ^ self padLockGreenMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1361
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1362
4308
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1363
queryClassIcon
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1364
    "This resource specification was automatically generated
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1365
     by the ImageEditor of ST/X."
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1366
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1367
    "Do not manually edit this!! If it is corrupted,
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1368
     the ImageEditor may not be able to read the specification."
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1369
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1370
    "
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1371
     self queryClassIcon inspect
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1372
     ImageEditor openOnClass:self andSelector:#queryClassIcon
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1373
     Icon flushCachedIcons
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1374
    "
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1375
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1376
    <resource: #image>
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1377
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1378
    ^Icon
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1379
        constantNamed:#'SystemBrowser class queryClassIcon'
6901
34d695317c51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6873
diff changeset
  1380
        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 61 173 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]
4308
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1381
!
9957b7ab92e3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4275
diff changeset
  1382
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1383
redCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1384
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1385
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1386
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1387
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1388
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1389
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1390
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1391
     self redCheckIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1392
     ImageEditor openOnClass:self andSelector:#redCheckIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1393
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1394
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1395
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1396
    <resource: #image>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1397
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1398
    ^Icon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1399
        constantNamed:#'SystemBrowser class redCheckIcon'
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1400
        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
  1401
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1402
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1403
redLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1404
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1405
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1406
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1407
    "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
  1408
     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
  1409
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1410
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1411
     self redLockIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1412
     ImageEditor openOnClass:self andSelector:#redLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1413
    "
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
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1416
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1417
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1418
        constantNamed:#'SystemBrowser redLockIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1419
        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
  1420
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1421
4165
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1422
redThumbDownIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1423
    "This resource specification was automatically generated
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1424
     by the ImageEditor of ST/X."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1425
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1426
    "Do not manually edit this!! If it is corrupted,
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1427
     the ImageEditor may not be able to read the specification."
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1428
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1429
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1430
     self redThumbDownIcon inspect
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1431
     ImageEditor openOnClass:self andSelector:#redThumbDownIcon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1432
     Icon flushCachedIcons
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1433
    "
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1434
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1435
    <resource: #image>
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1436
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1437
    ^Icon
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1438
        constantNamed:#'SystemBrowser class redThumbDownIcon'
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1439
        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
  1440
@@@@@@@@@@@@@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
  1441
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
  1442
!
5004f043a266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4158
diff changeset
  1443
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1444
redThumbDownSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1445
    "This resource specification was automatically generated
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1446
     by the ImageEditor of ST/X."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1447
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1448
    "Do not manually edit this!! If it is corrupted,
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1449
     the ImageEditor may not be able to read the specification."
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1450
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1451
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1452
     self redThumbDownSmallIcon inspect
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1453
     ImageEditor openOnClass:self andSelector:#redThumbDownSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1454
     Icon flushCachedIcons
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1455
    "
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1456
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1457
    <resource: #image>
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
    ^Icon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1460
        constantNamed:#'SystemBrowser class redThumbDownSmallIcon'
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  1461
        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
  1462
!
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1463
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1464
removeBreakPointIcon2
6115
43cde28a3209 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6052
diff changeset
  1465
    ^ XPToolbarIconLibrary removeBreakPointIcon2
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1466
!
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1467
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1468
small_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1469
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1470
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1471
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1472
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1473
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1474
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1475
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1476
     self small_methodEmptyInheritedIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1477
     ImageEditor openOnClass:self andSelector:#small_methodEmptyInheritedIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1478
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1479
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1480
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1481
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1482
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1483
        constantNamed:#'SystemBrowser class small_methodEmptyInheritedIcon'
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1484
        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
  1485
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1486
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1487
small_methodInheritedFromAboveAndRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1488
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1489
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1490
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1491
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1492
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1493
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1494
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1495
     self small_methodInheritedFromAboveAndRedefinedBelowIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1496
     ImageEditor openOnClass:self andSelector:#small_methodInheritedFromAboveAndRedefinedBelowIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1497
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1498
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1499
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1500
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1501
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1502
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1503
        constantNamed:#'SystemBrowser class small_methodInheritedFromAboveAndRedefinedBelowIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1504
        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
  1505
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1506
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1507
small_methodInheritedFromAboveIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1508
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1509
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1510
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1511
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1512
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1513
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1514
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1515
     self small_methodInheritedFromAboveIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1516
     ImageEditor openOnClass:self andSelector:#small_methodInheritedFromAboveIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1517
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1518
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1519
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1520
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1521
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1522
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1523
        constantNamed:#'SystemBrowser class small_methodInheritedFromAboveIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1524
        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
  1525
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1526
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1527
small_methodRedefinedBelowIcon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1528
    "This resource specification was automatically generated
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1529
     by the ImageEditor of ST/X."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1530
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1531
    "Do not manually edit this!! If it is corrupted,
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1532
     the ImageEditor may not be able to read the specification."
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1533
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1534
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1535
     self small_methodRedefinedBelowIcon inspect
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1536
     ImageEditor openOnClass:self andSelector:#small_methodRedefinedBelowIcon
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1537
     Icon flushCachedIcons
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1538
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1539
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1540
    <resource: #image>
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1541
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1542
    ^Icon
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1543
        constantNamed:#'SystemBrowser class small_methodRedefinedBelowIcon'
4130
Claus Gittinger <cg@exept.de>
parents: 4129
diff changeset
  1544
        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
  1545
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  1546
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1547
startableClassIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1548
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1549
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1550
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1551
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1552
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1553
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1554
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1555
     self startableClassIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1556
     ImageEditor openOnClass:self andSelector:#startableClassIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1557
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1558
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1559
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1560
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1561
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1562
        constantNamed:#'SystemBrowser class startableClassIcon'
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1563
        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
  1564
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1565
    "Created: / 5.11.2001 / 09:50:16 / cg"
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1566
!
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1567
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1568
startableVisualAppIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1569
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1570
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1571
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1572
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1573
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1574
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1575
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1576
     self startableVisualAppIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1577
     ImageEditor openOnClass:self andSelector:#startableVisualAppIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1578
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1579
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1580
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1581
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1582
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1583
        constantNamed:#'SystemBrowser class startableVisualAppIcon'
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1584
        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
  1585
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1586
    "Created: / 5.11.2001 / 09:49:00 / cg"
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1587
!
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1588
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1589
stopIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1590
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1591
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1592
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1593
    "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
  1594
     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
  1595
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1596
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1597
     self stopIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1598
     ImageEditor openOnClass:self andSelector:#stopIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1599
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1600
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1601
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1602
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1603
    ^Icon
3813
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1604
        constantNamed:#'SystemBrowser class stopIcon'
Claus Gittinger <cg@exept.de>
parents: 3794
diff changeset
  1605
        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
  1606
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1607
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1608
tabListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1609
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1610
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1611
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1612
    "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
  1613
     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
  1614
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1615
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1616
     self tabListIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1617
     ImageEditor openOnClass:self andSelector:#tabListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1618
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1619
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1620
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1621
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1622
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1623
        constantNamed:#'SystemBrowser tabListIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1624
        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
  1625
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1626
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1627
tableColumnsIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1628
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1629
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1630
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1631
    "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
  1632
     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
  1633
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1634
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1635
     self tableColumnsIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1636
     ImageEditor openOnClass:self andSelector:#tableColumnsIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1637
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1638
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1639
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1640
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1641
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1642
        constantNamed:#'SystemBrowser tableColumnsIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1643
        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
  1644
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1645
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1646
testCaseClassIcon
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1647
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1648
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1649
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1650
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1651
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1652
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1653
    "
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1654
     self testCaseClassIcon inspect
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1655
     ImageEditor openOnClass:self andSelector:#testCaseClassIcon
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1656
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1657
    "
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1658
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1659
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1660
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1661
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1662
        constantNamed:#'SystemBrowser class testCaseClassIcon'
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1663
        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
  1664
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1665
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1666
testCaseClassIconFor:cls
4167
588e05d2124d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4166
diff changeset
  1667
    <resource: #programImage>
588e05d2124d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4166
diff changeset
  1668
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1669
    |lastResult|
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1670
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  1671
    lastResult := cls lastTestRunResultOrNil.
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1672
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1673
    lastResult == true ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1674
        ^ self testCasePassedIcon
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1675
    ].
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1676
    lastResult == false ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1677
        ^ self testCaseFailedIcon
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1678
    ].
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1679
    ^ self testCaseUnknownResultIcon
6848
27b76bc54f22 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6776
diff changeset
  1680
27b76bc54f22 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6776
diff changeset
  1681
    "Modified: / 06-08-2006 / 11:14:12 / cg"
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1682
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1683
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1684
testCaseFailedIcon
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1685
    <resource: #programImage>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1686
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1687
"/    ^ self redThumbDownIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1688
    ^ self redThumbDownSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1689
"/    ^ self redCheckIcon
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1690
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1691
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1692
testCasePassedIcon
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1693
   <resource: #programImage>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1694
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1695
"/    ^ self greenThumbUpIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1696
    ^ self greenThumbUpSmallIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1697
"/    ^ self greenCheckIcon
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1698
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1699
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1700
testCaseUnknownResultIcon
4166
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1701
    <resource: #programImage>
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1702
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1703
"/    ^ self greyThumbUpIcon
e24130283125 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4165
diff changeset
  1704
    ^ self greyCheckIcon
4150
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1705
!
Claus Gittinger <cg@exept.de>
parents: 4143
diff changeset
  1706
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1707
timeIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1708
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1709
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1710
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1711
    "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
  1712
     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
  1713
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1714
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1715
     self timeIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1716
     ImageEditor openOnClass:self andSelector:#timeIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1717
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1718
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1719
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1720
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1721
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1722
        constantNamed:#'SystemBrowser timeIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1723
        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
  1724
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1725
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1726
traceIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1727
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1728
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1729
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1730
    "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
  1731
     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
  1732
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1733
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1734
     self traceIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1735
     ImageEditor openOnClass:self andSelector:#traceIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1736
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1737
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1738
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1739
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1740
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1741
        constantNamed:#'SystemBrowser traceIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  1742
        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
  1743
!
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1744
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1745
visualStartableClassIcon
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1746
    "This resource specification was automatically generated
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1747
     by the ImageEditor of ST/X."
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1748
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1749
    "Do not manually edit this!! If it is corrupted,
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1750
     the ImageEditor may not be able to read the specification."
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1751
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1752
    "
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1753
     self visualStartableClassIcon inspect
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1754
     ImageEditor openOnClass:self andSelector:#visualStartableClassIcon
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1755
    "
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1756
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1757
    <resource: #image>
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1758
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
  1759
    ^Icon
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1760
        constantNamed:#'SystemBrowser class visualStartableClassIcon'
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1761
        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
  1762
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1763
    "Modified: / 5.11.2001 / 09:49:30 / cg"
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1764
!
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1765
4275
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1766
warningClassIcon
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1767
    "This resource specification was automatically generated
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1768
     by the ImageEditor of ST/X."
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1769
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1770
    "Do not manually edit this!! If it is corrupted,
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1771
     the ImageEditor may not be able to read the specification."
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1772
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1773
    "
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1774
     self warningClassIcon inspect
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1775
     ImageEditor openOnClass:self andSelector:#warningClassIcon
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1776
     Icon flushCachedIcons
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1777
    "
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1778
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1779
    <resource: #image>
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1780
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1781
    ^Icon
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1782
        constantNamed:#'SystemBrowser class warningClassIcon'
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1783
        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 127 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]
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1784
!
aeaf7c245b7a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4270
diff changeset
  1785
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1786
watchIcon
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1787
    "This resource specification was automatically generated
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1788
     by the ImageEditor of ST/X."
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1789
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1790
    "Do not manually edit this!! If it is corrupted,
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1791
     the ImageEditor may not be able to read the specification."
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1792
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1793
    "
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1794
     self watchIcon inspect
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1795
     ImageEditor openOnClass:self andSelector:#watchIcon
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1796
    "
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1797
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1798
    <resource: #image>
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1799
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1800
    ^Icon
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1801
        constantNamed:#'SystemBrowser class watchIcon'
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
  1802
        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
  1803
!
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1804
4143
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1805
windowClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1806
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1807
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1808
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1809
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1810
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1811
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1812
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1813
     self windowClassIcon inspect
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1814
     ImageEditor openOnClass:self andSelector:#windowClassIcon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1815
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1816
    "
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1817
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1818
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1819
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1820
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1821
        constantNamed:#'SystemBrowser class windowClassIcon'
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1822
        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
  1823
!
Claus Gittinger <cg@exept.de>
parents: 4130
diff changeset
  1824
3354
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1825
windowIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1826
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1827
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1828
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1829
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1830
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1831
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1832
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1833
     self windowIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1834
     ImageEditor openOnClass:self andSelector:#windowIcon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1835
    "
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1836
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1837
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1838
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1839
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1840
        constantNamed:#'SystemBrowser class windowIcon'
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1841
        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
  1842
Claus Gittinger <cg@exept.de>
parents: 3352
diff changeset
  1843
    "Created: / 5.11.2001 / 09:39:03 / cg"
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1844
! !
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  1845
1203
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1846
!SystemBrowser class methodsFor:'interface specs'!
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1847
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1848
metaSpec
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1849
        "UIPainter new openOnClass: self andSelector: #metaSpec"
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1850
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1851
        <resource: #canvas>
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1852
        ^#(#FullSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1853
                #window: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1854
                #(#WindowSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1855
                        #label: 'Unlabeled Canvas' 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1856
                        #bounds: #(#Rectangle 27 249 325 334 ) ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1857
                #component: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1858
                #(#SpecCollection 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1859
                        #collection: #(
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1860
                                #(#RadioButtonSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1861
                                        #layout: #(#LayoutFrame 0 0 4 0 -1 0.575 20 0 ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1862
                                        #name: #instanceSwitch 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1863
                                        #model: #metaHolder 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1864
                                        #callbacksSpec: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1865
                                        #(#UIEventCallbackSubSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1866
                                                #requestValueChangeSelector: #changeRequest ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1867
                                        #label: 'instance' 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1868
                                        #select: false ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1869
                                #(#RadioButtonSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1870
                                        #layout: #(#LayoutFrame 1 0.575 4 0 -1 1 20 0 ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1871
                                        #name: #classSwitch 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1872
                                        #model: #metaHolder 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1873
                                        #callbacksSpec: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1874
                                        #(#UIEventCallbackSubSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1875
                                                #requestValueChangeSelector: #changeRequest ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1876
                                        #label: 'class' 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1877
                                        #select: true ) ) ) )
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1878
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1879
    "Created: / 30.10.1997 / 19:07:29 / cg"
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1880
!
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1881
1203
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1882
methodMoveDialogSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1883
    "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
  1884
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1885
    "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
  1886
     handle the specification if its corrupted."
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1887
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1888
    "
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1889
     UIPainter new openOnClass:SystemBrowser andSelector:#methodMoveDialogSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1890
     SystemBrowser new openDialogInterface:#methodMoveDialogSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1891
    "
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1892
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1893
    <resource: #canvas>
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1894
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1895
    ^
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1896
     
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1897
       #(#FullSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1898
          #'window:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1899
           #(#WindowSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1900
              #'name:' 'uIPainterView'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1901
              #'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
  1902
              #'label:' 'move method'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1903
              #'bounds:' #(#Rectangle 0 0 279 118)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1904
          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1905
          #'component:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1906
           #(#SpecCollection
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1907
              #'collection:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1908
               #(
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1909
                 #(#HorizontalPanelViewSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1910
                    #'name:' 'horizontalPanelView'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1911
                    #'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
  1912
                    #'component:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1913
                     #(#SpecCollection
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1914
                        #'collection:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1915
                         #(
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1916
                           #(#ActionButtonSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1917
                              #'name:' 'actionButton2'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1918
                              #'label:' 'cancel'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1919
                              #'tabable:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1920
                              #'model:' #cancel
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1921
                              #'extent:' #(#Point 133 27)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1922
                          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1923
                           #(#ActionButtonSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1924
                              #'name:' 'actionButton1'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1925
                              #'label:' 'move'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1926
                              #'tabable:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1927
                              #'isDefault:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1928
                              #'model:' #accept
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1929
                              #'extent:' #(#Point 134 27)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1930
                          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1931
                        )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1932
                    )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1933
                    #'level:' 0
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1934
                    #'horizontalLayout:' #fitSpace
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1935
                    #'verticalLayout:' #center
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1936
                    #'horizontalSpace:' 4
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1937
                    #'verticalSpace:' 4
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1938
                )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1939
                 #(#LabelSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1940
                    #'name:' 'label'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1941
                    #'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
  1942
                    #'label:' 'move current method to which class:'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1943
                    #'style:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1944
                     #(#Font
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1945
                        'helvetica' 'medium'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1946
                        'roman' 12
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1947
                    )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1948
                    #'foregroundColor:' #(#Color 0.0 0.0 0.0)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1949
                    #'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1950
                    #'adjust:' #left
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1951
                )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1952
                 #(#ComboBoxSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1953
                    #'name:' 'comboBox1'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1954
                    #'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
  1955
                    #'tabable:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1956
                    #'model:' #className
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1957
                    #'comboList:' #classList
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1958
                )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1959
              )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1960
          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1961
      )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1962
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1963
    "Created: 25.6.1997 / 13:45:20 / cg"
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1964
    "Modified: 25.6.1997 / 13:46:44 / cg"
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1965
! !
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
  1966
4860
8e1a4b990512 method category rename
Claus Gittinger <cg@exept.de>
parents: 4852
diff changeset
  1967
!SystemBrowser class methodsFor:'private-helpers'!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1968
2880
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1969
askForPackageChangeFrom:oldPkg to:newPkg
3626
abf84bdbfdb2 Remove unused method vars
Stefan Vogel <sv@exept.de>
parents: 3621
diff changeset
  1970
    |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
  1971
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1972
    box := OptionBox 
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1973
                title:
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1974
('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
  1975
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
  1976
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
  1977
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
  1978
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
  1979
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
  1980
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
  1981
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1982
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
  1983
                        bindWith:(oldPkg allBold)
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1984
                            with:(newPkg allBold))
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1985
                numberOfOptions:3.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1986
3476
685f67f7e818 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
  1987
    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
  1988
    box defaultButtonIndex:3. 
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1989
    box action:[:n | answer := #(#cancel #keep #continue) at:n].
5833
5c2a75846afc Do not use obsolete methods with #form:
Stefan Vogel <sv@exept.de>
parents: 5802
diff changeset
  1990
    box label:'Method redefinition'; image:(WarningBox iconBitmap).
2880
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1991
    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
  1992
    box addVerticalSpace:10.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1993
    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
  1994
    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
  1995
    box resize.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1996
    box showAtPointer.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1997
    box destroy.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1998
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  1999
    (answer ~~ #cancel) ifTrue:[
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  2000
        notAgain value ifTrue:[
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  2001
            Class catchMethodRedefinitions:false.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  2002
        ].
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  2003
    ].
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  2004
    ^ answer.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  2005
!
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
  2006
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2007
showNoneFound
3244
1e41eccb08b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3241
diff changeset
  2008
    self warn:(self classResources string:'None found.').
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2009
!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2010
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2011
showNoneFound:what
1620
51341ec8360b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1573
diff changeset
  2012
    |rs|
51341ec8360b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1573
diff changeset
  2013
51341ec8360b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1573
diff changeset
  2014
    rs := self classResources.
3244
1e41eccb08b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3241
diff changeset
  2015
    self information:((rs string:what) , (rs string:'...\\... none found.')) withCRs.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2016
! !
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2017
4860
8e1a4b990512 method category rename
Claus Gittinger <cg@exept.de>
parents: 4852
diff changeset
  2018
!SystemBrowser class methodsFor:'private-instance creation'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2019
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2020
newWithLabel:aString setupBlock:aBlock
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2021
    "common helper method for all creation methods"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2022
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2023
    ^ self newWithLabel:aString setupBlock:aBlock onDevice:Screen current
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2024
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2025
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2026
newWithLabel:aString setupBlock:aBlock onDevice:aWorkstation
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2027
    "common helper method for all creation methods"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2028
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2029
    |newBrowser|
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  2030
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2031
    newBrowser := BrowserView onDevice:aWorkstation.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2032
    newBrowser title:aString.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2033
    aBlock value:newBrowser.
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  2034
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2035
    newBrowser open.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2036
    ^ newBrowser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2037
!
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  2038
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2039
newWithLabel:aString setupSelector:aSymbol arg:arg
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2040
    "common helper method for all creation methods"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2041
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2042
    ^ self newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:Screen current 
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2043
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2044
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2045
newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:aWorkstation
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2046
    "common helper method for all creation methods"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2047
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2048
    |newBrowser|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2049
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2050
    newBrowser := BrowserView onDevice:aWorkstation.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2051
    newBrowser title:aString.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2052
    newBrowser perform:aSymbol with:arg.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2053
    newBrowser open.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2054
    ^ newBrowser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2055
! !
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2056
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2057
!SystemBrowser class methodsFor:'special search startup'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2058
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2059
allCallsOn:aSelectorString
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2060
    "return a collection of methods which send aSelector."
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2061
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2062
    ^ 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
  2063
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2064
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2065
     SystemBrowser allCallsOn:#at:put:
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2066
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2067
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2068
    "Created: 24.1.1997 / 19:42:57 / cg"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2069
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2070
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2071
allCallsOn:aSelectorString in:aCollectionOfClasses
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2072
    "return a collection of methods which send aSelector.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2073
     Methods from classes in aCollectionOfClasses are searched only."
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2074
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2075
    ^ 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
  2076
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2077
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2078
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
  2079
    "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
  2080
     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
  2081
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2082
    ^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2083
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2084
    "
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2085
     SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses)
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2086
    "
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2087
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2088
    "Modified: 18.4.1997 / 10:32:50 / cg"
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2089
!
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2090
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2091
allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2092
    "return a collection of methods which send aSelector.
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2093
     Methods from classes in aCollectionOfClasses are searched only."
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2094
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  2095
    |sel searchBlock classesSearched|
3471
4c4b41516d96 care for empty selector in allCallsOn.
Claus Gittinger <cg@exept.de>
parents: 3470
diff changeset
  2096
4c4b41516d96 care for empty selector in allCallsOn.
Claus Gittinger <cg@exept.de>
parents: 3470
diff changeset
  2097
    aSelectorString size == 0 ifTrue:[ ^ #() ].
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2098
    doMatch ifFalse:[
5090
1d20f51a7d6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5018
diff changeset
  2099
        ignoreCase ifFalse:[
1d20f51a7d6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5018
diff changeset
  2100
            sel := aSelectorString asSymbolIfInterned.
1d20f51a7d6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5018
diff changeset
  2101
            sel isNil ifTrue:[
1d20f51a7d6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5018
diff changeset
  2102
                ^ #()    "/ none (no such selector)
1d20f51a7d6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5018
diff changeset
  2103
            ].
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2104
        ].
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2105
    ]. 
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  2106
2901
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  2107
    classesSearched := aCollectionOfClasses.
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2108
    (doMatch and:[aSelectorString includesMatchCharacters]) ifFalse:[
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  2109
        "/ exclude javaClasses, if selector cannot be a valid java-selector
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2110
        (aSelectorString includes:$() ifFalse:[
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  2111
            classesSearched := classesSearched select:[:eachClass | eachClass theNonMetaclass isJavaClass not].
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  2112
        ].
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2113
    ].
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  2114
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2115
    searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch.
4332
c8efd47b1a1c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4308
diff changeset
  2116
    searchBlock isNil ifTrue:[
c8efd47b1a1c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4308
diff changeset
  2117
        ^ #()    "/ none (no such selector)
c8efd47b1a1c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4308
diff changeset
  2118
    ].
2901
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  2119
    ^ self allMethodsIn:classesSearched where:searchBlock
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2120
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2121
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2122
     SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2123
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2124
1143
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  2125
    "Modified: 18.4.1997 / 10:32:50 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2126
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2127
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2128
allMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2129
    "return a collection of methods which pass the given test.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2130
     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
  2131
     considered.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2132
     Only classes in aCollectionOfClasses are inspected in the search"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2133
2769
768b6aa2fb5f eliminated a message
Claus Gittinger <cg@exept.de>
parents: 2748
diff changeset
  2134
    |list activePriority|
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2135
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2136
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2137
     since this may take a long time, lower my priority ...
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2138
    "
2769
768b6aa2fb5f eliminated a message
Claus Gittinger <cg@exept.de>
parents: 2748
diff changeset
  2139
    activePriority := Processor activePriority.
2295
4e05198e7dd8 execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  2140
    Processor activeProcess 
2769
768b6aa2fb5f eliminated a message
Claus Gittinger <cg@exept.de>
parents: 2748
diff changeset
  2141
        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
  2142
    do:[
2484
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2143
        |checkedClasses checkBlock detectedMethods|
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2144
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2145
        checkedClasses := IdentitySet new.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2146
        list := OrderedCollection new.
2484
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2147
        detectedMethods := IdentitySet new.
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2148
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2149
        checkBlock := [:cls |
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2150
            (checkedClasses includes:cls) ifFalse:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2151
                cls isObsolete ifTrue:[
2882
2a12342fef79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2880
diff changeset
  2152
                    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
  2153
                ] ifFalse:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2154
                    cls methodDictionary keysAndValuesDo:[:sel :method |
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2155
                        (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
  2156
                            "/ 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
  2157
                            (detectedMethods includes:method) ifFalse:[
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2158
                                list add:method.
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2159
                                detectedMethods add:method
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2160
                            ]
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2161
                        ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2162
                    ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2163
                    checkedClasses add:cls.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2164
                ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2165
            ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2166
        ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2167
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2168
        aCollectionOfClasses do:[:aClass |
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2169
            "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2170
             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
  2171
             implementors or senders)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2172
            "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2173
            wantInst ifTrue:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2174
"/                Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2175
                checkBlock value:aClass
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2176
            ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2177
            wantClass ifTrue:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2178
"/                Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2179
                checkBlock value:(aClass class)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2180
            ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2181
            Processor yield
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2182
        ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2183
    ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2184
    ^ list
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2185
2484
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  2186
    "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
  2187
    "Modified: / 14.12.1999 / 14:59:02 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2188
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2189
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2190
allMethodsIn:aCollectionOfClasses where:aBlock
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2191
    "return a collection of methods which pass the given test.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2192
     Only classes in aCollectionOfClasses are inspected in the search"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2193
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2194
    ^ self
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2195
        allMethodsIn:aCollectionOfClasses 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2196
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2197
        class:true
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2198
        where:aBlock
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2199
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2200
    "Created: 24.1.1997 / 19:41:49 / cg"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2201
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2202
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2203
aproposSearch:aString
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  2204
    "browse all methods, which have aString in their selector."
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2205
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2206
    ^ self aproposSearch:aString in:(Smalltalk allClasses)
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  2207
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2208
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2209
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2210
aproposSearch:aString in:aCollectionOfClasses
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  2211
    "browse all methods, which have aString.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2212
     This is relatively slow, since all source must be processed."
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2213
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2214
    |matchString list s searchBlock browser|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2215
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2216
    matchString := '*' , aString , '*'.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2217
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2218
    list := OrderedCollection new.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2219
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2220
    (aString includesMatchCharacters) ifTrue:[
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  2221
        s := '*' , aString asLowercase , '*'.
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2222
        "a matchString"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2223
        searchBlock := [:text | (text asCollectionOfLinesfindFirst:[:line | s match:line]) ~~ 0].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2224
    ] ifFalse:[
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  2225
        searchBlock := [:source | (source findString:aString asLowercase) ~~ 0]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2226
    ].
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2227
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2228
    browser := self browseMethodsIn:aCollectionOfClasses 
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2229
                     where:[:class :method :sel |
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2230
                                |comment|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2231
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  2232
                                (searchBlock value:sel asLowercase)
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2233
                           ]
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  2234
                     title:(self classResources string:'selectors containing: %1' with:aString).
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2235
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2236
    browser notNil ifTrue:[
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2237
        browser autoSearch:aString 
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2238
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2239
    ^ browser
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2240
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2241
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2242
     SystemBrowser aproposSearch:'append' in:(Collection withAllSubclasses)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2243
     SystemBrowser aproposSearch:'add'    in:(Collection withAllSubclasses)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2244
     SystemBrowser aproposSearch:'sort'   in:(Collection withAllSubclasses)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2245
     SystemBrowser aproposSearch:'[Aa]bsent' in:(Collection withAllSubclasses)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2246
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2247
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2248
    "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
  2249
!
6f4460d5a09d added supersend searches; offer comparing the current version with the
Claus Gittinger <cg@exept.de>
parents: 203
diff changeset
  2250
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2251
browseAllCallsOn:aSelectorString
4490
de7216d4a28a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4350
diff changeset
  2252
    "launch a browser for all senders of aSelector.
de7216d4a28a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4350
diff changeset
  2253
     Notice: better go via Smalltalk browseAllCallsOn:, which honors the tool-preferences"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2254
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2255
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2256
        browseAllCallsOn:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2257
        in:(Smalltalk allClasses)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2258
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2259
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2260
     SystemBrowser browseAllCallsOn:#+
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2261
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2262
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2263
    "Created: 9.12.1995 / 18:00:41 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2264
    "Modified: 10.7.1996 / 10:26:15 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2265
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2266
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2267
browseAllCallsOn:aSelectorString in:aSetOfClasses
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2268
    "launch a browser for all senders of aSelector"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2269
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2270
    ^ self
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2271
        browseAllCallsOn:aSelectorString 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2272
        in:aSetOfClasses
4200
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2273
        title:(self classResources string:'Senders of: %1' with:aSelectorString)
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2274
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2275
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2276
     SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses)
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2277
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2278
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2279
    "Created: 10.7.1996 / 10:25:49 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2280
    "Modified: 24.1.1997 / 19:49:34 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2281
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2282
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2283
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
  2284
    "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
  2285
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2286
    ^ self
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2287
        browseAllCallsOn:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2288
        in:aSetOfClasses
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2289
        ignoreCase:ignoreCase
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  2290
        title:(self classResources string:'Senders of: %1' with:aSelectorString)
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2291
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2292
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2293
     SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses)
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2294
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2295
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2296
    "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
  2297
    "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
  2298
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2299
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2300
browseAllCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2301
    "launch a browser for all senders of aSelector in aCollectionOfClasses"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2302
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2303
    |list list2 browser selWithColon title rs|
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2304
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2305
    title := titleArg.
4200
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2306
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  2307
    list := self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true.
4200
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2308
    list isEmpty ifTrue:[
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2309
        aSelectorString numArgs == 0 ifTrue:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2310
            selWithColon := aSelectorString , ':'.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2311
            selWithColon knownAsSymbol ifTrue:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2312
                list2 := self allCallsOn:selWithColon in:aCollectionOfClasses ignoreCase:ignoreCase match:true.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2313
            ].            
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2314
        ].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2315
        list2 size == 0 ifTrue:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2316
            self showNoneFound:title.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2317
            ^ nil
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2318
        ].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2319
        rs := self classResources.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2320
        (Dialog confirm:((rs string:title) , 
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2321
                         (rs string:'...\\... none found.') ,
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2322
                         (rs string:'\\But I found %1 sends of the "%2" message (with colon).\\Browse those ?'
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2323
                             with:list2 size
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2324
                             with:selWithColon allBold)) withCRs) ifFalse:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2325
            ^ nil
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2326
        ].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2327
        list := list2.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2328
        title := title , ':'.
4200
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2329
    ].
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2330
3859a6fee797 show none found
Claus Gittinger <cg@exept.de>
parents: 4198
diff changeset
  2331
    browser := self browseMethods:list title:title.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2332
    browser notNil ifTrue:[
648
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2333
        |s|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2334
648
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2335
        "
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2336
         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
  2337
         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
  2338
        "
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2339
        s := aSelectorString.
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2340
        (s includes:$:) ifTrue:[
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2341
            s := s copyTo:(s indexOf:$:)
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2342
        ].
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2343
        browser autoSearch:s 
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2344
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2345
    ^ browser
648
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  2346
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2347
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2348
     SystemBrowser
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2349
        browseAllCallsOn:#+ 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2350
        in:(Number withAllSubclasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2351
        title:'just a test'
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2352
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2353
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2354
    "Modified: 24.1.1997 / 19:48:54 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2355
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2356
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2357
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
  2358
    "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
  2359
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2360
    ^ self
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2361
        browseAllCallsOn:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2362
        in:aCollectionOfClasses 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2363
        ignoreCase:false 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2364
        title:title
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2365
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2366
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2367
     SystemBrowser
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2368
        browseAllCallsOn:#+ 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2369
        in:(Number withAllSubclasses) 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2370
        title:'just a test'
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2371
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2372
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2373
    "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
  2374
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2375
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2376
browseCallsOn:aSelectorString under:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2377
    "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
  2378
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2379
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2380
        browseAllCallsOn:aSelectorString
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2381
                      in:(aClass withAllSubclasses)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2382
                   title:(self classResources 
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  2383
                                string:'Senders of: %1 (in and below %2)'
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2384
                                with:aSelectorString 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2385
                                with:aClass name)
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2386
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2387
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2388
     SystemBrowser browseCallsOn:#+ under:Number
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2389
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2390
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2391
    "Created: 9.12.1995 / 17:59:57 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2392
    "Modified: 24.1.1997 / 19:50:33 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2393
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2394
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2395
browseClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2396
    "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
  2397
     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
  2398
     classvar is modified"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2399
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2400
    ^ self browseRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2401
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2402
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2403
browseClassRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2404
    "launch a browser for all methods in aCollectionOfClasses,
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2405
     where the classVar named aString is referenced; 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2406
     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
  2407
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2408
    ^ self browseRefsTo:varName classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2409
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2410
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2411
browseClassRefsTo:aString under:aClass modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2412
    "launch a browser for all methods in aClass and subclasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2413
     where the classVar named aString is referenced; 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2414
     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
  2415
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2416
    ^ self browseClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2417
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2418
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2419
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2420
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
  2421
    "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
  2422
     resource in aCollectionOfClasses.
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2423
     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
  2424
     are parsed.
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2425
     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
  2426
        browseForResource:#style containing:nil in:... title:...
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2427
     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
  2428
        browseForResource:#style containing:'arrowButtonDownForm' in:... title:..."
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2429
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 675
diff changeset
  2430
    |browser searchBlock|
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2431
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2432
    "/ search for any resource can be done without looking
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2433
    "/ at the source ...
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2434
    (aResourceSymbol isNil and:[item isNil]) ifTrue:[
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2435
        searchBlock := [:class :method :s | method hasResource]
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2436
    ] ifFalse:[
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2437
        searchBlock := [:class :method :s |
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2438
                            |rsrc val found|
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2439
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2440
                            found := false.
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2441
                            method hasResource ifTrue:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2442
                                rsrc := method resources.
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2443
                                rsrc notNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2444
                                    aResourceSymbol isNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2445
                                        item isNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2446
                                            found := true
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2447
                                        ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2448
                                            rsrc isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2449
                                                rsrc keysAndValuesDo:[:rsrc :val |
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2450
                                                    val isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2451
                                                        val do:[:v |
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2452
                                                            found := item match:v printString 
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2453
                                                        ]
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2454
                                                    ] ifFalse:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2455
                                                        found := item match:val printString 
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2456
                                                    ]
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2457
                                                ]
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2458
                                            ] ifFalse:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2459
                                                found := item match:rsrc printString
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2460
                                            ]
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2461
                                        ]
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2462
                                    ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2463
                                        (rsrc includesKey:aResourceSymbol) ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2464
                                            item isNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2465
                                                found := true
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2466
                                            ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2467
                                                rsrc isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2468
                                                    val := rsrc at:aResourceSymbol.
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2469
                                                    val isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2470
                                                        val do:[:v |
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2471
                                                            found := item match:v printString 
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2472
                                                        ]
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2473
                                                    ] ifFalse:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2474
                                                        found := item match:val printString 
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2475
                                                    ]
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2476
                                                ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2477
                                                    found := item match:rsrc printString
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2478
                                                ]
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2479
                                            ]
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2480
                                        ]
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2481
                                    ]
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2482
                                ].
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2483
                            ].
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2484
                            found
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2485
                       ].
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  2486
    ].
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2487
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2488
    browser := self browseMethodsIn:aCollectionOfClasses
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2489
                              where:searchBlock
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2490
                              title:title.
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2491
    browser notNil ifTrue:[
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2492
        browser autoSearch:'resource:' 
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2493
    ].
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2494
    ^ browser
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2495
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2496
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2497
     SystemBrowser
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2498
        browseForResource:nil
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2499
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2500
        title:'methods with a resource'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2501
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2502
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2503
     SystemBrowser
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2504
        browseForResource:#style
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2505
        containing:nil
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2506
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2507
        title:'methods with a #style resource'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2508
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2509
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2510
     SystemBrowser
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2511
        browseForResource:#style
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2512
        containing:'arrowButton*'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2513
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2514
        title:'methods with a #style resource'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2515
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2516
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  2517
    "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
  2518
!
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2519
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2520
browseForResource:aResourceSymbol in:aCollectionOfClasses title:title
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2521
    "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
  2522
     resource in aCollectionOfClasses"
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2523
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2524
    ^ self
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2525
        browseForResource:aResourceSymbol
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2526
        containing:nil
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2527
        in:aCollectionOfClasses 
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2528
        title:title
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2529
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2530
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2531
     SystemBrowser
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2532
        browseForResource:#style
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2533
        in:Smalltalk allClasses
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2534
        title:'methods accessing styleSheet values'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2535
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2536
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2537
     SystemBrowser
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2538
        browseForResource:#keyboard
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2539
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2540
        title:'methods handling keyboard events'
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2541
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2542
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2543
     SystemBrowser
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2544
        browseForResource:nil
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2545
        in:Smalltalk allClasses
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2546
        title:'methods with a resource'
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2547
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2548
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  2549
    "Modified: 9.1.1997 / 12:44:38 / cg"
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2550
!
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  2551
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2552
browseForString:aString
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2553
    "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
  2554
     This may be slow, since source-code has to be scanned."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2555
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2556
    ^ self browseForString:aString in:(Smalltalk allClasses) ignoreCase:false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2557
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2558
    "Modified: / 18.6.1998 / 16:42:39 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2559
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2560
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2561
browseForString:aString in:aCollectionOfClasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2562
    "launch a browser for all methods in aCollectionOfClasses  
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2563
     containing a string in their source.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2564
     This may be slow, since source-code has to be scanned."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2565
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2566
    ^ self
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2567
        browseForString:aString 
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2568
        in:aCollectionOfClasses 
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2569
        ignoreCase:false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2570
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2571
    "
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2572
     SystemBrowser browseForString:'all'      in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2573
     SystemBrowser browseForString:'should'   in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2574
     SystemBrowser browseForString:'[eE]rror' in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2575
    "
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2576
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2577
    "Created: / 9.12.1995 / 18:03:12 / cg"
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2578
    "Modified: / 18.6.1998 / 16:43:27 / cg"
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2579
!
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2580
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2581
browseForString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2582
    "launch a browser for all methods in aCollectionOfClasses  
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2583
     containing a string in their source.
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2584
     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
  2585
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2586
    |browser searchBlock title s|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2587
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  2588
    title := self classResources string:'Methods containing: %1' with:aString displayString.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2589
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2590
    (aString includesMatchCharacters
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2591
    or:[ignoreCase]) ifTrue:[
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2592
        s := '*' , aString , '*'.
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2593
        "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
  2594
        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
  2595
                            |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
  2596
                            src := m source.
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2597
                            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
  2598
                                ('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
  2599
                                false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2600
                            ] ifFalse:[
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2601
                                s match:src ignoreCase:ignoreCase
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2602
                            ]
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
  2603
                       ]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2604
    ] 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
  2605
        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
  2606
                            |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
  2607
b14b3ab39af6 dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents: 436
diff changeset
  2608
                            src := m source.
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2609
                            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
  2610
                                ('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
  2611
                                false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2612
                            ] ifFalse:[
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2613
                                (src findString:aString) ~~ 0
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2614
                            ]
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
  2615
                       ]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2616
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2617
    browser := self browseMethodsIn:aCollectionOfClasses where:searchBlock title:title.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2618
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2619
    browser notNil ifTrue:[
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2620
        browser autoSearch:aString ignoreCase:ignoreCase
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2621
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2622
    ^ browser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2623
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2624
    "
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2625
     SystemBrowser browseForString:'all'      in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2626
     SystemBrowser browseForString:'should'   in:(Array with:Object)
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2627
     SystemBrowser browseForString:'[eE]rror' in:(Array with:Object)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2628
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2629
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2630
    "Created: / 18.6.1998 / 16:42:50 / cg"
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  2631
    "Modified: / 18.6.1998 / 16:51:25 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2632
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2633
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2634
browseForSymbol:aSymbol
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2635
    "launch a browser for all methods referencing aSymbol"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2636
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2637
    ^ self 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2638
        browseForSymbol:aSymbol 
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  2639
        title:(self classResources string:'Users of: %1' with:aSymbol) 
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2640
        warnIfNone:true
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2641
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2642
    "Created: 9.12.1995 / 18:04:34 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2643
    "Modified: 10.7.1996 / 10:35:34 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2644
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2645
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2646
browseForSymbol:aSymbol in:aSetOfClasses title:title warnIfNone:doWarn
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2647
    "launch a browser for all methods referencing aSymbol"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2648
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2649
    |browser searchBlock sym|
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2650
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2651
    (aSymbol includesMatchCharacters) ifTrue:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2652
        "a matchString"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2653
        searchBlock := [:c :m :s |
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2654
                            (m literalsDetect:[:aLiteral|
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2655
                                (aLiteral isMemberOf:Symbol) 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2656
                                  and:[aSymbol match:aLiteral]
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2657
                            ] ifNone:nil) notNil
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2658
                       ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2659
    ] ifFalse:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2660
        "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2661
         can do a faster search
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2662
        "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2663
        sym := aSymbol asSymbolIfInterned.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2664
        sym isNil ifTrue:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2665
            self showNoneFound:title.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2666
            ^ nil
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2667
        ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2668
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2669
        searchBlock := [:c :m :s |
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2670
                            (m literalsDetect:[:aLiteral|
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2671
                                (sym == aLiteral) 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2672
                            ] ifNone:nil) notNil
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2673
                       ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2674
    ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2675
    doWarn ifFalse:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2676
        WarningSignal ignoreIn:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2677
            browser := self browseMethodsIn:aSetOfClasses where:searchBlock title:title.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2678
        ]
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2679
    ] ifTrue:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2680
        browser := self browseMethodsIn:aSetOfClasses where:searchBlock title:title.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2681
    ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2682
    browser notNil ifTrue:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2683
        browser autoSearch:aSymbol
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2684
    ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2685
    ^ browser
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2686
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2687
    "Modified: 24.6.1996 / 14:39:07 / stefan"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2688
    "Modified: 30.6.1996 / 16:45:25 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2689
    "Created: 10.7.1996 / 10:36:36 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2690
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2691
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2692
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
  2693
    "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
  2694
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2695
    |browser searchBlock sym|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2696
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2697
    (aSymbol includesMatchCharacters) ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2698
        "a matchString"
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2699
        searchBlock := [:c :m :s |
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2700
                            (m literalsDetect:[:aLiteral|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2701
                                (aLiteral isMemberOf:Symbol) 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2702
                                  and:[aSymbol match:aLiteral]
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2703
                            ] ifNone:nil) notNil
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2704
                       ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2705
    ] ifFalse:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2706
        "
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2707
         can do a faster search
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2708
        "
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2709
        sym := aSymbol asSymbolIfInterned.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2710
        sym isNil ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2711
            self showNoneFound:title.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2712
            ^ nil
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2713
        ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2714
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2715
        searchBlock := [:c :m :s |
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2716
                            (m literalsDetect:[:aLiteral|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2717
                                (sym == aLiteral) 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2718
                            ] ifNone:nil) notNil
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2719
                       ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2720
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2721
    doWarn ifFalse:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2722
        WarningSignal ignoreIn:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2723
            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
  2724
        ]
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2725
    ] ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2726
        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
  2727
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2728
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2729
    (browser notNil 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2730
    and:[searchString notNil]) ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2731
        browser autoSearch:searchString
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2732
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2733
    ^ browser
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2734
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2735
    "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
  2736
    "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
  2737
    "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
  2738
!
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2739
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2740
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
  2741
    "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
  2742
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2743
    |browser searchBlock sym|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2744
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2745
    (aSymbol includesMatchCharacters) ifTrue:[
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2746
        "a matchString"
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2747
        searchBlock := [:c :m :s |
2439
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2748
                            m referencesGlobalMatching:aSymbol
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2749
"/                            (m literalsDetect:[:aLiteral|
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2750
"/                                (aLiteral isMemberOf:Symbol) 
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2751
"/                                  and:[aSymbol match:aLiteral]
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2752
"/                            ] ifNone:nil) notNil
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2753
                       ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2754
    ] ifFalse:[
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2755
        "
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2756
         can do a faster search
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2757
        "
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2758
        sym := aSymbol asSymbolIfInterned.
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2759
        sym isNil ifTrue:[
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2760
            actionIfNoneFound value.
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2761
            ^ nil
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2762
        ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2763
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2764
        searchBlock := [:c :m :s |
2439
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2765
                            m referencesGlobal:sym
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2766
"/                            (m literalsDetect:[:aLiteral|
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2767
"/                                (sym == aLiteral) 
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2768
"/                            ] ifNone:nil) notNil
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2769
                       ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2770
    ].
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2771
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2772
    WarningSignal ignoreIn:[
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2773
        InformationSignal ignoreIn:[
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2774
            browser := self browseMethodsWhere:searchBlock title:title.
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2775
        ]
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2776
    ].
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2777
    browser isNil ifTrue:[
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2778
        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
  2779
    ].
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2780
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2781
    (browser notNil 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2782
    and:[searchString notNil]) ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2783
        browser autoSearch:searchString
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2784
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2785
    ^ browser
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  2786
2439
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2787
    "Modified: / 24.6.1996 / 14:39:07 / stefan"
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2788
    "Created: / 31.10.1996 / 14:45:08 / cg"
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  2789
    "Modified: / 9.11.1999 / 17:04:30 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2790
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2791
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2792
browseForSymbol:aSymbol title:title warnIfNone:doWarn
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2793
    "launch a browser for all methods referencing aSymbol"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2794
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2795
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2796
        browseForSymbol:aSymbol 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2797
        title:title 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2798
        warnIfNone:doWarn 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2799
        searchFor:aSymbol
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2800
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2801
    "Modified: 31.10.1996 / 14:45:38 / cg"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2802
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2803
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2804
browseForSymbol:aSymbol title:title warnIfNone:doWarn searchFor:searchString
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2805
    "launch a browser for all methods referencing aSymbol"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2806
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2807
    |b|
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2808
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2809
    doWarn ifTrue: [
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2810
        b := [self showNoneFound:title]
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2811
    ].
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2812
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2813
        browseForSymbol:aSymbol 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2814
        title:title 
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2815
        ifNone:b
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2816
        searchFor:searchString
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2817
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2818
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2819
browseImplementorsMatching:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2820
    "launch a browser for all implementors of aSelector"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2821
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2822
    ^ self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2823
        browseImplementorsMatching:aSelectorString 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2824
        in:(Smalltalk allClasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2825
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2826
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2827
     SystemBrowser browseImplementorsOf:#+
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2828
     NewSystemBrowser browseImplementorsOf:#+
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2829
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2830
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2831
    "Created: / 9.12.1995 / 18:01:18 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2832
    "Modified: / 5.11.2001 / 17:31:11 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2833
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2834
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2835
browseImplementorsMatching:aSelectorString in:aSetOfClasses
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2836
    "launch a browser for all implementors of aSelector"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2837
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2838
    ^ self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2839
        browseImplementorsMatching:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2840
        in:aSetOfClasses
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2841
        title:(self classResources string:'implementors of: %1' with:aSelectorString)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2842
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2843
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2844
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2845
     NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2846
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2847
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2848
    "Created: / 10.7.1996 / 10:20:59 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2849
    "Modified: / 5.11.2001 / 17:30:57 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2850
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2851
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2852
browseImplementorsMatching:aSelectorString in:aSetOfClasses ignoreCase:ignoreCase
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2853
    "launch a browser for all implementors of aSelector"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2854
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2855
    ^ self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2856
        browseImplementorsMatching:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2857
        in:aSetOfClasses
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2858
        ignoreCase:ignoreCase
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2859
        title:(self classResources string:'implementors of: %1' with:aSelectorString)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2860
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2861
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2862
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2863
     NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2864
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2865
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2866
    "Created: / 10.7.1996 / 10:20:59 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2867
    "Modified: / 5.11.2001 / 17:30:43 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2868
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2869
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2870
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:title
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2871
    "launch a browser for all implementors of aSelector in
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2872
     the classes contained in aCollectionOfClasses and its metaclasses"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2873
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2874
    |list|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2875
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2876
    list := self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2877
                findImplementorsMatching:aSelectorString 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2878
                in:aCollectionOfClasses 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2879
                ignoreCase:ignoreCase.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2880
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2881
    list size == 0 ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2882
        self showNoneFound:title.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2883
        ^ nil
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2884
    ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2885
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2886
    ^ self browseMethods:list asOrderedCollection title:title
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2887
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2888
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2889
     SystemBrowser browseImplementorsOf:#+
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2890
                                     in:(Array with:Number
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2891
                                               with:Float
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2892
                                               with:SmallInteger)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2893
                                  title:'some implementors of +'
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2894
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2895
     NewSystemBrowser browseImplementorsOf:#+
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2896
                                     in:(Array with:Number
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2897
                                               with:Float
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2898
                                               with:SmallInteger)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2899
                                  title:'some implementors of +'
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2900
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2901
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2902
    "Modified: / 4.9.1995 / 17:33:39 / claus"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2903
    "Modified: / 19.6.1996 / 14:19:02 / stefan"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2904
    "Modified: / 5.11.2001 / 17:30:38 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2905
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2906
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2907
browseImplementorsMatching:aSelectorString in:aCollectionOfClasses title:title
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2908
    "launch a browser for all implementors of aSelector in
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2909
     the classes contained in aCollectionOfClasses and its metaclasses"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2910
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2911
    ^ self
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2912
        browseImplementorsMatching:aSelectorString 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2913
        in:aCollectionOfClasses 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2914
        ignoreCase:false
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2915
        title:title
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2916
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2917
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2918
browseImplementorsMatching:aSelectorString under:aClass
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2919
    "launch a browser for all implementors of aSelector in aClass
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2920
     and its subclasses"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2921
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2922
    ^ self 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2923
        browseImplementorsMatching:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2924
        in:(aClass withAllSubclasses)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2925
        title:(self classResources 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2926
                string:'implementors of: %1 (in and below %2)' 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2927
                with:aSelectorString
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2928
                with:aClass name)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2929
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2930
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2931
     SystemBrowser browseImplementorsOf:#+ under:Integer
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2932
     NewSystemBrowser browseImplementorsOf:#+ under:Integer
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2933
    "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2934
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2935
    "Created: / 9.12.1995 / 18:06:09 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2936
    "Modified: / 5.11.2001 / 17:30:15 / cg"
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2937
!
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2938
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2939
browseImplementorsOf:aSelectorString
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2940
    "launch a browser for all implementors of aSelector"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2941
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2942
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2943
        browseImplementorsOf:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2944
        in:(Smalltalk allClasses)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2945
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2946
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2947
     SystemBrowser browseImplementorsOf:#+
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2948
     NewSystemBrowser browseImplementorsOf:#+
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2949
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2950
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2951
    "Created: / 9.12.1995 / 18:01:18 / cg"
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2952
    "Modified: / 5.11.2001 / 17:31:11 / cg"
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
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2955
browseImplementorsOf:aSelectorString in:aSetOfClasses
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2956
    "launch a browser for all implementors of aSelector"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2957
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2958
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2959
        browseImplementorsOf:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2960
        in:aSetOfClasses
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  2961
        title:(self classResources string:'Implementors of: %1' with:aSelectorString)
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2962
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2963
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2964
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2965
     NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2966
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  2967
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2968
    "Created: / 10.7.1996 / 10:20:59 / cg"
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2969
    "Modified: / 5.11.2001 / 17:30:57 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2970
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2971
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2972
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
  2973
    "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
  2974
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2975
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2976
        browseImplementorsOf:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2977
        in:aSetOfClasses
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2978
        ignoreCase:ignoreCase
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  2979
        title:(self classResources string:'Implementors of: %1' with:aSelectorString)
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2980
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2981
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2982
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2983
     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
  2984
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2985
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2986
    "Created: / 10.7.1996 / 10:20:59 / cg"
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  2987
    "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
  2988
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  2989
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2990
browseImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:titleArg
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2991
    "launch a browser for all implementors of aSelector in
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2992
     the classes contained in aCollectionOfClasses and its metaclasses"
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2993
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2994
    |list list2 rs selWithColon title|
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2995
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  2996
    title := titleArg.
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2997
    list := self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  2998
                findImplementorsOf:aSelectorString 
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2999
                in:aCollectionOfClasses 
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3000
                ignoreCase:ignoreCase.
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  3001
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3002
    list size == 0 ifTrue:[
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3003
        aSelectorString numArgs == 0 ifTrue:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3004
            selWithColon := aSelectorString , ':'.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3005
            selWithColon knownAsSymbol ifTrue:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3006
                list2 := self findImplementorsOf:selWithColon in:aCollectionOfClasses ignoreCase:ignoreCase.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3007
            ].            
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3008
        ].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3009
        list2 size == 0 ifTrue:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3010
            self showNoneFound:title.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3011
            ^ nil
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3012
        ].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3013
        rs := self classResources.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3014
        (Dialog confirm:((rs string:title) , 
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3015
                         (rs string:'...\\... none found.') ,
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3016
                         (rs string:'\\But I found %1 implementor(s) of the "%2" message (with colon).\\Browse those ?'
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3017
                             with:list2 size
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3018
                             with:selWithColon allBold)) withCRs) ifFalse:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3019
            ^ nil
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3020
        ].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3021
        list := list2.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3022
        title := title , ':'.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  3023
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3024
    ].
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3025
270
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  3026
    ^ self browseMethods:list asOrderedCollection title:title
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3027
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3028
    "
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3029
     SystemBrowser browseImplementorsOf:#+
270
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  3030
                                     in:(Array with:Number
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  3031
                                               with:Float
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  3032
                                               with:SmallInteger)
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  3033
                                  title:'some implementors of +'
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  3034
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  3035
     NewSystemBrowser browseImplementorsOf:#+
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  3036
                                     in:(Array with:Number
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  3037
                                               with:Float
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  3038
                                               with:SmallInteger)
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  3039
                                  title:'some implementors of +'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3040
    "
132
claus
parents: 118
diff changeset
  3041
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  3042
    "Modified: / 4.9.1995 / 17:33:39 / claus"
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  3043
    "Modified: / 19.6.1996 / 14:19:02 / stefan"
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  3044
    "Modified: / 5.11.2001 / 17:30:38 / cg"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3045
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3046
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3047
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
  3048
    "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
  3049
     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
  3050
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3051
    ^ self
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3052
        browseImplementorsOf:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3053
        in:aCollectionOfClasses 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3054
        ignoreCase:false
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3055
        title:title
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3056
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3057
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3058
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3059
browseImplementorsOf:aSelectorString under:aClass
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3060
    "launch a browser for all implementors of aSelector in aClass
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3061
     and its subclasses"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3062
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3063
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3064
        browseImplementorsOf:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3065
        in:(aClass withAllSubclasses)
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3066
        title:(self classResources 
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3067
                string:'Implementors of: %1 (in and below %2)' 
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3068
                with:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  3069
                with:aClass name)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3070
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3071
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3072
     SystemBrowser browseImplementorsOf:#+ under:Integer
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  3073
     NewSystemBrowser browseImplementorsOf:#+ under:Integer
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3074
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3075
3360
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  3076
    "Created: / 9.12.1995 / 18:06:09 / cg"
2eab40d1a498 isMeta/soleInstance -> theNonMetaclass
Claus Gittinger <cg@exept.de>
parents: 3354
diff changeset
  3077
    "Modified: / 5.11.2001 / 17:30:15 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3078
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3079
3663
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3080
browseImplementorsOfAny:setOfSelectors 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3081
    "launch a browser for all implementors of aSelector"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3082
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3083
    ^ self 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3084
        browseImplementorsOfAny:setOfSelectors
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3085
        in:(Smalltalk allClasses)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3086
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3087
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3088
     SystemBrowser browseImplementorsOfAny:#( #+ #- )
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3089
     NewSystemBrowser browseImplementorsOfAny:#( #+ #- )
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3090
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3091
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3092
    "Created: / 9.12.1995 / 18:01:18 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3093
    "Modified: / 5.11.2001 / 17:31:11 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3094
!
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3095
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3096
browseImplementorsOfAny:setOfSelectors in:aSetOfClasses
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3097
    "launch a browser for all implementors of aSelector"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3098
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3099
    ^ self 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3100
        browseImplementorsOfAny:setOfSelectors
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3101
        in:aSetOfClasses
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3102
        title:(self classResources string:'Implementors of some')
3663
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3103
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3104
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3105
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3106
     NewSystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3107
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3108
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3109
    "Created: / 10.7.1996 / 10:20:59 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3110
    "Modified: / 5.11.2001 / 17:30:57 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3111
!
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3112
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3113
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase title:title
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3114
    "launch a browser for all implementors of aSelector in
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3115
     the classes contained in aCollectionOfClasses and its metaclasses"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3116
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3117
    |list|
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3118
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3119
    list := self 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3120
                findImplementorsOfAny:setOfSelectors 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3121
                in:aCollectionOfClasses 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3122
                ignoreCase:ignoreCase.
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3123
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3124
    list size == 0 ifTrue:[
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3125
        self showNoneFound:title.
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3126
        ^ nil
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3127
    ].
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3128
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3129
    ^ self browseMethods:list asOrderedCollection title:title
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3130
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3131
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3132
     SystemBrowser browseImplementorsOf:#+
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3133
                                     in:(Array with:Number
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3134
                                               with:Float
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3135
                                               with:SmallInteger)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3136
                                  title:'some implementors of +'
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3137
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3138
     NewSystemBrowser browseImplementorsOf:#+
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3139
                                     in:(Array with:Number
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3140
                                               with:Float
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3141
                                               with:SmallInteger)
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3142
                                  title:'some implementors of +'
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3143
    "
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3144
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3145
    "Modified: / 4.9.1995 / 17:33:39 / claus"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3146
    "Modified: / 19.6.1996 / 14:19:02 / stefan"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3147
    "Modified: / 5.11.2001 / 17:30:38 / cg"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3148
!
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3149
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3150
browseImplementorsOfAny:setOfSelectors in:aCollectionOfClasses title:title
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3151
    "launch a browser for all implementors of aSelector in
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3152
     the classes contained in aCollectionOfClasses and its metaclasses"
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3153
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3154
    ^ self
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3155
        browseImplementorsOfAny:setOfSelectors 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3156
        in:aCollectionOfClasses 
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3157
        ignoreCase:false
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3158
        title:title
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3159
!
5163f3c2d560 findImplementorsOfAny
Claus Gittinger <cg@exept.de>
parents: 3626
diff changeset
  3160
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3161
browseInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3162
    "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
  3163
     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
  3164
     instvar is modified"
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  3165
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3166
    ^ self browseRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3167
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3168
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3169
browseInstRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3170
    "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
  3171
     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
  3172
     instvar is modified"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3173
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3174
    ^ self browseRefsTo:varName classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly title:title
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3175
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3176
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3177
browseInstRefsTo:aString under:aClass modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3178
    "launch a browser for all methods in aClass and subclasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3179
     where the instVar named aString is referenced; 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3180
     if modsOnly is true, browse only methods where the instvar is modified"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3181
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3182
    ^ self browseInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3183
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3184
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3185
browseReferendsOf:aGlobalName
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3186
    "launch a browser for all methods referencing a global
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3187
     named aGlobalName. The argument may be a symbol, a string or
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3188
     a matchPattern.
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3189
    "
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3190
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3191
    ^ self browseReferendsOf:aGlobalName warnIfNone:true 
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3192
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3193
   "
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3194
    Browser browseReferendsOf:#Transcript
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3195
    Browser browseReferendsOf:'Tr*'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3196
   "
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  3197
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3198
    "Modified: / 30.10.1997 / 23:45:52 / cg"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3199
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3200
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3201
browseReferendsOf:aGlobalName ifNone:actionIfNone
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3202
    "launch a browser for all methods referencing a global
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3203
     named aGlobalName.
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3204
    "
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3205
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3206
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3207
        browseReferendsOf:aGlobalName 
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3208
        title:(self classResources string:'Users of: %1' with:aGlobalName)
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3209
        ifNone:actionIfNone
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3210
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3211
    "Modified: / 31.10.1997 / 15:42:05 / cg"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3212
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3213
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3214
browseReferendsOf:aGlobalName in:aSetOfClasses
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3215
    "launch a browser for all methods referencing a global
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3216
     named aGlobalName.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3217
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3218
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3219
    ^ self browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:true 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3220
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3221
   "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3222
    Browser browseReferendsOf:#Transcript
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3223
   "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3224
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3225
    "Created: 10.7.1996 / 10:37:30 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3226
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3227
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3228
browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:doWarn
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3229
    "launch a browser for all methods referencing a global
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3230
     named aGlobalName.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3231
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3232
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3233
    |globalsPlainName idx|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3234
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3235
    globalsPlainName := aGlobalName.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3236
    (idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3237
        globalsPlainName := globalsPlainName copyFrom:idx+1
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3238
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3239
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3240
    ^ self browseForSymbol:aGlobalName
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3241
                        in:aSetOfClasses
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3242
                     title:(self classResources string:'Users of: %1' with:aGlobalName) 
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3243
                warnIfNone:doWarn
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3244
                 searchFor:globalsPlainName
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3245
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3246
    "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
  3247
    "Modified: 31.10.1996 / 14:56:38 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3248
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  3249
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3250
browseReferendsOf:aGlobalName title:title ifNone:actionIfNone
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3251
    "launch a browser for all methods referencing a global
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3252
     named aGlobalName.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3253
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3254
2828
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3255
    |globalsPlainName idx searchBlock
5546
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3256
     sym browser matchingGlobalNames|
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3257
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3258
    globalsPlainName := aGlobalName.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3259
    (idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3260
        globalsPlainName := globalsPlainName copyFrom:idx+1.
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3261
        (globalsPlainName size == 0
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3262
        or:[globalsPlainName = '*']) ifTrue:[
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3263
            globalsPlainName := aGlobalName
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3264
        ]
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3265
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3266
5546
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3267
    matchingGlobalNames := OrderedCollection new.
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3268
3125
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  3269
    (sym := aGlobalName asSymbolIfInterned) notNil ifTrue:[
5546
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3270
        matchingGlobalNames add:sym.
3125
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  3271
        searchBlock := [:cls :mthd :sel | |mSource|
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  3272
                        "/ 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
  3273
                        mthd isLazyMethod ifTrue:[
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  3274
                            mSource := mthd source.
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  3275
                            (mSource notNil
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  3276
                            and:[(mSource includesString:sym)
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  3277
                            and:[mthd usedGlobals includes:sym]])
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  3278
                        ] ifFalse:[ 
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  3279
                            ((mthd refersToLiteral:sym)
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  3280
                             and:[mthd usedGlobals includes:sym])
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  3281
                        ]
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  3282
                      ]
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  3283
    ] ifFalse:[
2828
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3284
        aGlobalName includesMatchCharacters ifFalse:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3285
            actionIfNone value.
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3286
            ^ nil
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3287
        ].
5546
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3288
        searchBlock := [:cls :mthd :sel | |mSource usedGlobals global|
2828
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3289
                        "/ 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
  3290
                        mthd isLazyMethod ifTrue:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3291
                            mSource := mthd source.
5546
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3292
                            mSource notNil ifTrue:[
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3293
                                usedGlobals := mthd usedGlobals
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3294
                            ]
2828
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3295
                        ] ifFalse:[
5546
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3296
                            (mthd literals contains:[:lit | aGlobalName match:lit]) ifTrue:[
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3297
                                usedGlobals := mthd usedGlobals
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3298
                            ].
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3299
                        ].
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3300
                        usedGlobals notNil ifTrue:[
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3301
                            global := usedGlobals detect:[:lit | aGlobalName match:lit] ifNone:nil.
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3302
                            global notNil ifTrue:[
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3303
                                matchingGlobalNames add:global.
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3304
                            ]
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3305
                        ].
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3306
                        global notNil
2828
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3307
                      ]
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3308
    ].
3780
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  3309
    "/ WarningSignal ignoreIn:[
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  3310
        "/ InformationSignal ignoreIn:[
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  3311
            browser := self browseMethodsWhere:searchBlock title:title ifNone:[actionIfNone value. ^ nil].
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  3312
        "/ ].
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  3313
    "/ ].
2828
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3314
    browser isNil ifTrue:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3315
        actionIfNone value
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3316
    ] ifFalse:[
5546
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3317
        browser autoSearchVariables:matchingGlobalNames readers:true writers:true.
8d1e9c32cf4a browseReferendsOf: - setup search action for variable-search
Claus Gittinger <cg@exept.de>
parents: 5270
diff changeset
  3318
        "/ browser autoSearch:globalsPlainName.
2828
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3319
    ].
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  3320
    ^ browser
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3321
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3322
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3323
browseReferendsOf:aGlobalName title:title warnIfNone:doWarn
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3324
    "launch a browser for all methods referencing a global
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3325
     named aGlobalName.
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3326
    "
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3327
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3328
    |b|
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3329
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3330
    doWarn ifTrue: [
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3331
        b := [self showNoneFound:title]
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3332
    ].
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3333
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3334
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3335
        browseReferendsOf:aGlobalName 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3336
        title:title 
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  3337
        ifNone:b
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  3338
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3339
!
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3340
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3341
browseReferendsOf:aGlobalName warnIfNone:doWarn
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3342
    "launch a browser for all methods referencing a global
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3343
     named aGlobalName.
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3344
    "
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3345
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3346
    ^ self
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3347
        browseReferendsOf:aGlobalName 
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3348
        title:(self classResources string:'Users of: %1' with:aGlobalName)
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3349
        warnIfNone:doWarn
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3350
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  3351
    "Modified: / 31.10.1997 / 15:42:05 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3352
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3353
4198
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3354
browseReferendsOfUnboundGlobalsWithTitle:title ifNone:actionIfNone
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3355
    "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
  3356
    "
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3357
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3358
    |globalsPlainName searchBlock browser|
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3359
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3360
    searchBlock := [:cls :mthd :sel | 
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3361
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3362
                    |mSource globals potentialNames|
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3363
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3364
                    "/ 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
  3365
                    mthd isLazyMethod ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3366
                        mSource := mthd source.
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3367
                        mSource notNil ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3368
                            globals := mthd usedGlobals.
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3369
                        ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3370
                    ] ifFalse:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3371
                        "/ try hard to avoid the usedGlobals - its expensive
6640
326360e94271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6581
diff changeset
  3372
                        potentialNames := mthd literals select:[:lit | lit isSymbol and:[lit size > 0 and:[lit isUppercaseFirst]]].
4198
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3373
                        potentialNames notEmpty ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3374
                            potentialNames := potentialNames select:[:lit | (Smalltalk at:lit) isNil].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3375
                            potentialNames notEmpty ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3376
                                globals := mthd usedGlobals.
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3377
                            ]
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3378
                        ]
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3379
                    ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3380
                    globals notNil ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3381
                        globals contains:[:aGlobalKey | (Smalltalk at:aGlobalKey asSymbol) isNil].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3382
                    ] ifFalse:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3383
                        false
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3384
                    ]
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3385
                  ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3386
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3387
    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
  3388
    browser isNil ifTrue:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3389
        actionIfNone value
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3390
    ] ifFalse:[
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3391
        browser autoSearch:globalsPlainName
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3392
    ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3393
    ^ browser
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3394
!
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3395
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3396
browseReferendsOfUnboundGlobalsWithTitle:title warnIfNone:doWarn
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3397
    "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
  3398
    "
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3399
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3400
    |b|
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3401
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3402
    doWarn ifTrue: [
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3403
        b := [self showNoneFound:title]
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3404
    ].
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3405
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3406
    ^ self
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3407
        browseReferendsOfUnboundGlobalsWithTitle:title 
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3408
        ifNone:b
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3409
!
de8b73b42e1e added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents: 4167
diff changeset
  3410
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3411
browseRefsTo:aString classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3412
    "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
  3413
     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
  3414
     instvar is modified"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3415
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3416
    |title|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3417
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3418
    modsOnly ifTrue:[
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3419
        title := 'Modifications of: %1'
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3420
    ] ifFalse:[
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3421
        title := 'References to: %1 '
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3422
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3423
    ^ self 
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3424
        browseRefsTo:aString 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3425
        classVars:classVars 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3426
        in:aCollectionOfClasses 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3427
        modificationsOnly:modsOnly 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3428
        title:(self classResources string:title with:aString)
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3429
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3430
    "Created: 9.12.1995 / 18:07:05 / cg"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3431
    "Modified: 9.12.1995 / 18:11:49 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3432
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3433
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3434
browseRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3435
    "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
  3436
     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
  3437
     instvar is modified"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3438
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3439
    |filter browser pattern|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3440
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3441
    filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly.
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3442
    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
  3443
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3444
    browser notNil ifTrue:[
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3445
        modsOnly ifTrue:[
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3446
            pattern := varName , ' :='
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3447
        ] ifFalse:[
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3448
            pattern := varName
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3449
        ].
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3450
        browser autoSearch:pattern 
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3451
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3452
    ^ browser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3453
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3454
3407
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3455
browseSendersOf:aSelectorString
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3456
    "launch a browser for all senders of aSelector"
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3457
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3458
    ^ self browseAllCallsOn:aSelectorString
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3459
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3460
    "
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3461
     SystemBrowser browseSendersOf:#+
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3462
    "
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3463
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3464
    "Modified: / 10.7.1996 / 10:26:15 / cg"
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3465
    "Created: / 13.11.2001 / 13:52:12 / cg"
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3466
!
7813f46be17f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3360
diff changeset
  3467
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3468
browseSuperCallsIn:aCollectionOfClasses title:title
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3469
    "launch a browser for all super sends in aCollectionOfClasses"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3470
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 675
diff changeset
  3471
    |browser searchBlock|
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3472
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3473
    searchBlock := [:class :method :s | 
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3474
        |src parser|
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3475
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3476
        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
  3477
        (src notNil and:[src findString:'super']) ~~ 0 ifTrue:[
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3478
            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
  3479
                        parseMethod:src 
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3480
                        in:class 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3481
                        ignoreErrors:true 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3482
                        ignoreWarnings:true.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3483
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3484
            parser notNil and:[parser usesSuper]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3485
        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3486
            false
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3487
        ]
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3488
    ].
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3489
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3490
    browser := self browseMethodsIn:aCollectionOfClasses
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3491
                              where:searchBlock
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3492
                              title:title.
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3493
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3494
    browser notNil ifTrue:[
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3495
        browser autoSearch:'super' 
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3496
    ].
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3497
    ^ browser
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3498
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3499
    "
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3500
     SystemBrowser
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3501
         browseSuperCallsIn:(Array with:SortedCollection)
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3502
                      title:'superSends in SortedCollection'
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3503
    "
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3504
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3505
    "Created: 23.11.1995 / 14:08:55 / cg"
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3506
    "Modified: 24.4.1996 / 13:25:31 / cg"
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3507
!
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3508
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3509
browseSuperCallsUnder:aClass
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3510
    "launch a browser for all supersends in aClass and subclasses"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3511
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3512
    ^ self browseSuperCallsIn:(aClass withAllSubclasses)
6476
01f8b6dfd829 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6368
diff changeset
  3513
                        title:(self classResources string:'Supersends (in and below %1)' with:aClass name)
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3514
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3515
    "
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3516
     SystemBrowser browseSuperCallsUnder:Number
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3517
    "
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3518
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3519
    "Created: 23.11.1995 / 12:06:06 / cg"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3520
    "Modified: 9.12.1995 / 18:11:59 / cg"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3521
!
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  3522
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3523
browseUsesOf:aClass
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3524
    |dict owners offsets
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3525
     sz  "{ Class: SmallInteger }"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3526
     n   "{ Class: SmallInteger }"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3527
     removeSet newDict|
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3528
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3529
    owners := ObjectMemory whoReferencesInstancesOf:aClass.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3530
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3531
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3532
     collect set of offsets in dict; key is class
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3533
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3534
    dict := IdentityDictionary new.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3535
    owners do:[:someObject |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3536
        |cls create|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3537
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3538
        someObject isContext ifFalse:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3539
            "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3540
             someObject refers to an instance of aClass;
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3541
             find out, which instVar(s)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3542
            "
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3543
            cls := someObject class.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3544
            cls ~~ Array ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3545
                n := cls instSize.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3546
                create := [|s| s := Set new. dict at:cls put:s. s].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3547
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3548
                1 to:n do:[:i |
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3549
                    |ref|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3550
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3551
                    ref := someObject instVarAt:i.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3552
                    (ref isMemberOf:aClass) ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3553
                        offsets := dict at:cls ifAbsent:create.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3554
                        offsets add:i.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3555
                    ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3556
                ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3557
                cls isVariable ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3558
                    cls isPointers ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3559
                        | idx "{ Class: SmallInteger }" |
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3560
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3561
                        sz := someObject basicSize.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3562
                        idx := 1.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3563
                        [idx <= sz] whileTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3564
                            |ref|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3565
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3566
                            ref := someObject basicAt:idx.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3567
                            (ref isMemberOf:aClass) ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3568
                                offsets := dict at:cls ifAbsent:create.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3569
                                offsets add:0.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3570
                                idx := sz
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3571
                            ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3572
                            idx := idx + 1
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3573
                        ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3574
                    ]        
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3575
                ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3576
            ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3577
        ]
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3578
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3579
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3580
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3581
     merge with superclass refs
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3582
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3583
    dict keysAndValuesDo:[:cls :set |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3584
        cls allSuperclasses do:[:aSuperclass |
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3585
            |superSet|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3586
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3587
            superSet := dict at:aSuperclass ifAbsent:[].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3588
            superSet notNil ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3589
                |removeSet|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3590
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3591
                superSet := dict at:aSuperclass.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3592
                removeSet := Set new.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3593
                set do:[:offset |
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3594
                    (superSet includes:offset) ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3595
                        removeSet add:offset
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3596
                    ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3597
                ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3598
                set removeAll:removeSet
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3599
            ]
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3600
        ]
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3601
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3602
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3603
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3604
     remove empty ones
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3605
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3606
    removeSet := Set new.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3607
    dict keysAndValuesDo:[:cls :set |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3608
        set isEmpty ifTrue:[
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3609
            removeSet add:cls
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3610
        ]
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3611
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3612
    removeSet do:[:cls |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3613
        dict removeKey:cls
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3614
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3615
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3616
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3617
     replace the indices by real names
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3618
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3619
    newDict := IdentityDictionary new.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3620
    dict keysAndValuesDo:[:cls :set |
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3621
        |newSet names|
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3622
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3623
        names := cls allInstVarNames.
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3624
        newSet := set collect:[:index | 
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3625
                index == 0 ifTrue:['*indexed*'] ifFalse:[names at:index].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3626
        ].
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  3627
        newDict at:cls put:newSet
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3628
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3629
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3630
    newDict inspect
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3631
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  3632
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3633
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3634
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3635
filterToSearchRefsTo:varName classVars:classVars access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3636
    "return a searchblock for variable references"
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3637
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3638
    |searchBlock|
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3639
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3640
    searchBlock := [:c :m :s |
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3641
        |src result parser vars needMatch|
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3642
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3643
        needMatch := varName includesMatchCharacters.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3644
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3645
        src := m source.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3646
        src isNil ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3647
            result := false
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3648
        ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3649
            needMatch ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3650
                "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3651
                 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
  3652
                 methods source for the variables name ...
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3653
                "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3654
                result := (src findString:varName) ~~ 0.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3655
            ] ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3656
                result := true.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3657
            ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3658
            result ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3659
                result := false.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3660
                parser := Parser
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3661
                                parseMethod:src 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3662
                                in:c 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3663
                                ignoreErrors:true 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3664
                                ignoreWarnings:true.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3665
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3666
                (parser notNil and:[parser ~~ #Error]) ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3667
                    classVars ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3668
                        accessType == #read ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3669
                            vars := parser readInstVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3670
                        ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3671
                            accessType == #write ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3672
                                vars := parser modifiedInstVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3673
                            ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3674
                                vars := parser usedInstVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3675
                            ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3676
                        ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3677
                    ] ifTrue:[    
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3678
                        accessType == #read ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3679
                            vars := parser readClassVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3680
                        ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3681
                            accessType == #write ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3682
                                vars := parser modifiedClassVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3683
                            ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3684
                                vars := parser usedClassVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3685
                            ]
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
                    ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3688
                    vars size > 0 ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3689
                        needMatch ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3690
                            vars do:[:cv |
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3691
                                (varName match:cv) ifTrue:[result := true]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3692
                            ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3693
                        ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3694
                            result := vars includes:varName
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3695
                        ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3696
                    ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3697
                ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3698
            ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3699
        ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3700
        Processor yield.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3701
        result
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3702
    ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3703
    ^ searchBlock
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3704
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3705
    "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
  3706
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3707
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3708
filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3709
    "return a searchblock for variable references"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3710
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3711
    |searchBlock|
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  3712
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3713
    searchBlock := [:c :m :s |
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3714
        |src result parser vars needMatch|
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3715
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3716
        needMatch := varName includesMatchCharacters.
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3717
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3718
        src := m source.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3719
        src isNil ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3720
            result := false
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3721
        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3722
            needMatch ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3723
                "
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3724
                 before doing a slow parse, quickly scan the
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3725
                 methods source for the variables name ...
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3726
                "
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3727
                result := (src findString:varName) ~~ 0.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3728
            ] ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3729
                result := true.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3730
            ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3731
            result ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3732
                result := false.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3733
                parser := Parser
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3734
                                parseMethod:src 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3735
                                in:c 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3736
                                ignoreErrors:true 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3737
                                ignoreWarnings:true.
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3738
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3739
                (parser notNil and:[parser ~~ #Error]) ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3740
                    classVars ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3741
                        modsOnly ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3742
                            vars := parser modifiedInstVars
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3743
                        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3744
                            vars := parser usedInstVars
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3745
                        ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3746
                    ] ifTrue:[    
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3747
                        modsOnly ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3748
                            vars := parser modifiedClassVars
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3749
                        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3750
                            vars := parser usedClassVars
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3751
                        ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3752
                    ].
1190
d265f77ecbc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1143
diff changeset
  3753
                    vars size > 0 ifTrue:[
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3754
                        needMatch ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3755
                            vars do:[:cv |
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3756
                                (varName match:cv) ifTrue:[result := true]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3757
                            ]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3758
                        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3759
                            result := vars includes:varName
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3760
                        ]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3761
                    ]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3762
                ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3763
            ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3764
        ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3765
        Processor yield.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3766
        result
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3767
    ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3768
    ^ searchBlock
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  3769
1190
d265f77ecbc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1143
diff changeset
  3770
    "Modified: 19.6.1997 / 18:27:57 / cg"
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3771
!
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  3772
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3773
findAnyResourceIn:aCollectionOfClasses 
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3774
    "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
  3775
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3776
    ^ 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
  3777
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3778
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3779
     SystemBrowser findAnyResourceIn:(ApplicationModel withAllSubclasses)
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3780
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3781
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  3782
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3783
findClassRefsTo:aString in:aCollectionOfClasses access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3784
    "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
  3785
     aString is referenced; 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3786
     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
  3787
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3788
    ^ 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
  3789
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3790
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3791
findClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3792
    "return all methods in aCollectionOfClasses where the classVar named
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3793
     aString is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3794
     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
  3795
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3796
    ^ self findRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3797
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3798
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3799
findClassRefsTo:aString inClass:aClass access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3800
    "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
  3801
     aString is referenced; 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3802
     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
  3803
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3804
    ^ 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
  3805
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3806
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3807
findClassRefsTo:aString inClass:aClass modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3808
    "return all methods in aClass where the classVar named
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3809
     aString is referenced; 
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3810
     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
  3811
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3812
    ^ self findRefsTo:aString classVars:true in:(Array with:aClass) modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3813
!
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  3814
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3815
findClassRefsTo:aString under:aClass access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3816
    "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
  3817
     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
  3818
     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
  3819
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3820
    ^ 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
  3821
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  3822
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3823
findClassRefsTo:aString under:aClass modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3824
    "return all methods in aClass and subclasses
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3825
     where the classVar named aString is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3826
     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
  3827
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3828
    ^ self findClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3829
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3830
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  3831
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3832
findCode:aCodeString in:aCollectionOfClasses isMethod:isMethod 
5243
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3833
    "return a collection of all methods in aCollectionOfClasses  
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3834
     containing a matching piece of code.
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3835
     This may be slow, since source-code has to be scanned."
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3836
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3837
    |searchBlock|
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3838
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3839
    searchBlock := self searchBlockForCode:aCodeString isMethod:isMethod.
5226
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  3840
    searchBlock isNil ifTrue:[ ^ nil].
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3841
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3842
!
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  3843
5243
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3844
findCode:aCodeString inMethods:aCollectionOfMethods isMethod:isMethod 
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3845
    "return a collection of all methods in aCollectionOfMethods  
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3846
     containing a matching piece of code."
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3847
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3848
    |searchBlock|
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3849
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3850
    searchBlock := self searchBlockForCode:aCodeString isMethod:isMethod.
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3851
    searchBlock isNil ifTrue:[ ^ nil].
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3852
    ^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector].
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3853
!
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  3854
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3855
findHelpSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3856
    "return a collection of all help-spec methods in aCollectionOfClasses  
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3857
     containing a string in their source.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3858
     This may be slow, since source-code has to be scanned."
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3859
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3860
    ^ self findSpecMethodsFor:#help withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3861
!
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  3862
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3863
findImplementors:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3864
    "search for all implementors of aSelector in
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3865
     the classes contained in aCollectionOfClasses and its metaclasses.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3866
     Return a collection of methods"
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3867
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3868
    |list compare testST testJava lcSelector|
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3869
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3870
    list := IdentitySet new.
6051
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3871
    aSelectorMatchString size == 0 ifTrue:[ ^ list ].
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3872
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3873
    doMatch ifTrue:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3874
        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
  3875
    ] ifFalse:[
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3876
        compare := [:sel :search | sel = search].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3877
    ].
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3878
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3879
    ignoreCase == true ifTrue:[
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3880
        lcSelector := aSelectorMatchString asLowercase.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3881
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3882
        testST := [:aSelector :aMethod | (compare value:lcSelector value:aMethod name asLowercase) ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3883
        testJava := [:aSelector :aMethod | (compare value:aSelector value:aMethod name asLowercase) ].
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3884
    ] ifFalse:[
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3885
        testST := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aSelector) ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3886
        testJava := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aMethod name) ].
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3887
    ].
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3888
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3889
    aCollectionOfClasses do:[:aClass |
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3890
        |testBlock srchBlock|
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3891
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3892
        aClass isObsolete ifFalse:[
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3893
            aClass isJavaClass ifTrue:[
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3894
                testBlock := testJava
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3895
            ] ifFalse:[
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3896
                testBlock := testST
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3897
            ].
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3898
            srchBlock := [:sel :mthd | (testBlock value:sel value:mthd) ifTrue:[ list add:mthd]].
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3899
            aClass methodDictionary keysAndValuesDo:srchBlock.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3900
            aClass isMeta ifFalse:[
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3901
                aClass class methodDictionary keysAndValuesDo:srchBlock
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3902
            ]
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3903
        ]
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3904
    ].
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3905
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3906
    ^ list
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3907
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3908
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3909
     SystemBrowser findImplementorsOf:#+
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3910
                                     in:(Array with:Number
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3911
                                               with:Float
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3912
                                               with:SmallInteger)
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3913
    "
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3914
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3915
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3916
findImplementors:aSelectorMatchString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3917
    "search for all implementors of aSelector in
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3918
     the classes contained in aCollectionOfClasses and its metaclasses.
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3919
     Return a collection of methods"
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3920
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3921
    |list compare testST testJava lcSelector|
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3922
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3923
    list := IdentitySet new.
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3924
    aSelectorMatchString size == 0 ifTrue:[ ^ list ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3925
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3926
    doMatch ifTrue:[
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3927
        compare := [:sel :search | sel match:search].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3928
    ] ifFalse:[
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3929
        compare := [:sel :search | sel = search].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3930
    ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3931
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3932
    ignoreCase == true ifTrue:[
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3933
        lcSelector := aSelectorMatchString asLowercase.
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3934
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3935
        testST := [:aSelector :aMethod | (compare value:lcSelector value:aMethod name asLowercase) ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3936
        testJava := [:aSelector :aMethod | (compare value:aSelector value:aMethod name asLowercase) ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3937
    ] ifFalse:[
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3938
        testST := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aSelector) ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3939
        testJava := [:aSelector :aMethod | (compare value:aSelectorMatchString value:aMethod name) ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3940
    ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3941
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3942
    aCollectionOfMethods do:[:eachMethod |
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3943
        |cls sel testBlock|
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3944
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3945
        cls := eachMethod mclass.
7066
43640ba63db6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6955
diff changeset
  3946
        (cls isNil or:[cls isObsolete]) ifFalse:[
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3947
            cls isJavaClass ifTrue:[
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3948
                testBlock := testJava
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3949
            ] ifFalse:[
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3950
                testBlock := testST
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3951
            ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3952
            sel := eachMethod selector.    
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3953
            (testBlock value:sel value:eachMethod) ifTrue:[
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3954
                list add:eachMethod
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3955
            ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3956
        ]
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3957
    ].
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3958
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3959
    ^ list
7066
43640ba63db6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6955
diff changeset
  3960
43640ba63db6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6955
diff changeset
  3961
    "Modified: / 29-08-2006 / 14:33:42 / cg"
6776
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3962
!
5f5fd533b1f4 implementors of from implementors of-list
Claus Gittinger <cg@exept.de>
parents: 6705
diff changeset
  3963
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3964
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
  3965
    "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
  3966
     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
  3967
     Return a collection of methods"
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3968
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3969
    ^ 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
  3970
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3971
    "
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3972
     SystemBrowser findImplementorsOf:#+
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3973
                                     in:(Array with:Number
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3974
                                               with:Float
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3975
                                               with:SmallInteger)
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3976
    "
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3977
!
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  3978
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3979
findImplementorsMatchingAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3980
    "search for all implementors of any in aCollectionOfSelectors in
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3981
     the classes contained in aCollectionOfClasses and its metaclasses.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3982
     Return a collection of methods.
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3983
     CAVEAT: searches multiple times (could be tuned alot if heavily used)"
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  3984
6052
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3985
    ^ aCollectionOfSelectors 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3986
        collectAll:[:eachSelector |
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3987
            self findImplementorsMatching:eachSelector 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3988
                 in:aCollectionOfClasses 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3989
                 ignoreCase:ignoreCase.
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3990
        ].
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3991
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3992
"/    |implementors|
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3993
"/
6051
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3994
"/    implementors := IdentitySet new.
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3995
"/    aCollectionOfSelectors do:[:eachSelector |
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3996
"/        implementors addAll:(self findImplementorsMatching:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase).
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3997
"/    ].
6052
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  3998
"/    ^ implementors
6051
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  3999
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  4000
    "
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  4001
     self
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  4002
        findImplementorsMatchingAny:#( 'at*:' '*size')
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  4003
        in:(Smalltalk allClasses) 
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  4004
        ignoreCase:true
adc2da07dfe8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5997
diff changeset
  4005
    "
3675
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  4006
!
5208ac7b25a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3666
diff changeset
  4007
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4008
findImplementorsOf:aSelectorMatchString in:aCollectionOfClasses ignoreCase:ignoreCase
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4009
    "search for all implementors of aSelector in
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4010
     the classes contained in aCollectionOfClasses and its metaclasses.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4011
     Return a collection of methods"
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4012
6480
a84b7a241f0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6476
diff changeset
  4013
    ^ self 
a84b7a241f0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6476
diff changeset
  4014
        findImplementors:aSelectorMatchString 
a84b7a241f0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6476
diff changeset
  4015
        in:aCollectionOfClasses 
a84b7a241f0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6476
diff changeset
  4016
        ignoreCase:ignoreCase 
a84b7a241f0a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6476
diff changeset
  4017
        match:false
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4018
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4019
    "
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4020
     SystemBrowser findImplementorsOf:#+
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4021
                                   in:(Array with:Number
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4022
                                             with:Float
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4023
                                             with:SmallInteger)
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4024
    "
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4025
!
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4026
2811
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4027
findImplementorsOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4028
    "search for all implementors of any in aCollectionOfSelectors in
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4029
     the classes contained in aCollectionOfClasses and its metaclasses.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4030
     Return a collection of methods.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4031
     CAVEAT: searches multiple times (could be tuned alot if heavily used)"
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4032
6052
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4033
    ^ aCollectionOfSelectors 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4034
        collectAll:[:eachSelector |
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4035
            self findImplementorsOf:eachSelector 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4036
                 in:aCollectionOfClasses 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4037
                 ignoreCase:ignoreCase.
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4038
        ].
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4039
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4040
"/    |implementors|
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4041
"/
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4042
"/    implementors := IdentitySet new.
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4043
"/    aCollectionOfSelectors do:[:eachSelector |
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4044
"/        implementors addAll:(self findImplementorsOf:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase).
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4045
"/    ].
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4046
"/    ^ implementors
2811
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4047
!
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4048
2741
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  4049
findInstRefsTo:aString in:aCollectionOfClasses access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  4050
    "return all methods in aCollectionOfClasses where the instVar named
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  4051
     aString is referenced; 
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  4052
     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
  4053
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  4054
    ^ self findRefsTo:aString classVars:false in:aCollectionOfClasses access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  4055
!
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  4056
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4057
findInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  4058
    "return all methods in aCollectionOfClasses where the instVar named
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4059
     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
  4060
     instvar is modified"
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4061
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4062
    ^ self findRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4063
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4064
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4065
findInstRefsTo:aString inClass:aClass access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4066
    "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
  4067
     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
  4068
     instvar is modified"
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4069
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4070
    ^ 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
  4071
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4072
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  4073
findInstRefsTo:aString inClass:aClass modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  4074
    "return all methods in aClass where the instVar named
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  4075
     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
  4076
     instvar is modified"
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  4077
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  4078
    ^ self findRefsTo:aString classVars:false in:(Array with:aClass) modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  4079
!
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  4080
2741
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  4081
findInstRefsTo:aString under:aClass access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  4082
    "return all methods in aClass and subclasses
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  4083
     where the classVar named aString is referenced; 
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  4084
     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
  4085
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  4086
    ^ self findInstRefsTo:aString in:(aClass withAllSubclasses) access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  4087
!
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  4088
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4089
findInstRefsTo:aString under:aClass modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4090
    "return all methods in aClass and subclasses
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4091
     where the instVar named aString is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4092
     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
  4093
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4094
    ^ self findInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4095
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4096
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4097
findMenuSpecMethodsWithString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4098
    "return a collection of all menu-spec methods in aCollectionOfClasses  
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4099
     containing a string in their source.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4100
     This may be slow, since source-code has to be scanned."
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4101
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4102
    ^ self findSpecMethodsFor:#menu withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4103
!
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4104
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4105
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
  4106
    "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
  4107
     varName is referenced; 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4108
     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
  4109
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4110
    |filter|
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4111
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4112
    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
  4113
    ^ 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
  4114
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4115
    "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4116
     self
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4117
        findRefsTo:'x'
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4118
        classVars:false
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4119
        in:(Array with:Point)
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4120
        modificationsOnly:true
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4121
    "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4122
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  4123
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4124
findRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4125
    "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
  4126
     varName is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4127
     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
  4128
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4129
    |filter|
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4130
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4131
    filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly.
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4132
    ^ self findMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter.
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4133
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4134
    "
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4135
     self
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4136
        findRefsTo:'x'
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4137
        classVars:false
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4138
        in:(Array with:Point)
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4139
        modificationsOnly:true
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4140
    "
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4141
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  4142
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4143
findResource:aResourceSymbolOrCollectionOfSymbols in:aCollectionOfClasses 
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4144
    "return a collection of all methods in aCollectionOfClasses  
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4145
     containing a resource."
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4146
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4147
    |searchBlock|
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4148
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4149
    aResourceSymbolOrCollectionOfSymbols isSymbol ifTrue:[
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4150
        searchBlock := [:c :m :sel | |resources|
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4151
                            (resources := m resources) size > 0
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4152
                            and:[resources includesKey:aResourceSymbolOrCollectionOfSymbols]
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4153
                       ].
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4154
    ] ifFalse:[
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4155
        searchBlock := [:c :m :sel | |resources|
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4156
                            (resources := m resources) size > 0
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4157
                            and:[resources keys includesAny:aResourceSymbolOrCollectionOfSymbols]
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4158
                       ].
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4159
    ].
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4160
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4161
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4162
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4163
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4164
     SystemBrowser findResource:#image in:(ApplicationModel withAllSubclasses)
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4165
     SystemBrowser findResource:#menu in:(ApplicationModel withAllSubclasses)
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4166
     SystemBrowser findResource:#(menu programMenu) in:(ApplicationModel withAllSubclasses)
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4167
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4168
!
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  4169
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4170
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4171
    "search for all senders of aSelector in
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4172
     the classes contained in aCollectionOfClasses and its metaclasses.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4173
     Return a collection of methods"
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4174
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4175
    ^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:true
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4176
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4177
    "
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4178
     SystemBrowser findSendersOf:#+
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4179
                   in:(Array with:Number
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4180
                             with:Float
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4181
                             with:SmallInteger)
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4182
                   ignoreCase:false
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  4183
    "
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4184
!
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4185
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4186
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4187
    "search for all senders of aSelector in
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4188
     the classes contained in aCollectionOfClasses and its metaclasses.
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4189
     Return a collection of methods"
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4190
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4191
    ^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4192
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4193
    "
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4194
     SystemBrowser findSendersOf:#+
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4195
                   in:(Array with:Number
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4196
                             with:Float
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4197
                             with:SmallInteger)
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4198
                   ignoreCase:false
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4199
    "
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4200
!
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4201
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4202
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4203
    "search for all senders of aSelector in aCollectionOfMethods.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4204
     Return a collection of methods"
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4205
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4206
    |searchBlock|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4207
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4208
    searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4209
    ^ 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
  4210
!
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4211
4350
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4212
findSendersOf:aSelectorString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4213
    "search for all senders of aSelector in aCollectionOfMethods.
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4214
     Return a collection of methods"
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4215
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4216
    |searchBlock|
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4217
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4218
    searchBlock := self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch.
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4219
    ^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector].
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4220
!
0283d657411b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4341
diff changeset
  4221
2811
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4222
findSendersOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4223
    "search for all senders of any selector in aCollectionOfSelectors in
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4224
     the classes contained in aCollectionOfClasses and its metaclasses.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4225
     Return a collection of methods.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4226
     CAVEAT: searches multiple times (could be tuned alot if heavily used)"
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4227
6052
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4228
    ^ aCollectionOfSelectors 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4229
        collectAll:[:eachSelector |
6184
bcb22487bc67 senders of any - duplicates
Claus Gittinger <cg@exept.de>
parents: 6134
diff changeset
  4230
            (self allCallsOn:eachSelector 
6052
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4231
                 in:aCollectionOfClasses 
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4232
                 ignoreCase:ignoreCase
6184
bcb22487bc67 senders of any - duplicates
Claus Gittinger <cg@exept.de>
parents: 6134
diff changeset
  4233
                 match:false) asSet.
6052
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4234
        ].
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4235
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4236
"/    |allSenders|
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4237
"/
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4238
"/    allSenders := IdentitySet new.
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4239
"/    aCollectionOfSelectors do:[:eachSelector |
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4240
"/        allSenders addAll:(self allCallsOn:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase match:true)
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4241
"/    ].
e9e1f68e0b2e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6051
diff changeset
  4242
"/    ^ allSenders
2811
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4243
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4244
    "
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4245
     SystemBrowser findSendersOfAny:#(#'+' #'-')
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4246
                   in:(Array with:Number
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4247
                             with:Float
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4248
                             with:SmallInteger)
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4249
                   ignoreCase:false  
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4250
    "
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4251
!
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  4252
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4253
findSpecMethodsFor:specSymbol withString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4254
    "return a collection of all specSymbol-spec methods in aCollectionOfClasses  
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4255
     containing a string in their source.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4256
     This may be slow, since source-code has to be scanned."
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4257
3626
abf84bdbfdb2 Remove unused method vars
Stefan Vogel <sv@exept.de>
parents: 3621
diff changeset
  4258
    |searchBlock s|
3314
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4259
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4260
    (aString includesMatchCharacters
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4261
    or:[ignoreCase]) ifTrue:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4262
        s := '*' , aString , '*'.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4263
        "a matchString"
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4264
        searchBlock := [:c :m :sel | 
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4265
                            |src resources| 
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4266
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4267
                            ((resources := m resources) size > 0
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4268
                            and:[resources includesKey:specSymbol]) ifTrue:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4269
                                src := m source.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4270
                                src isNil ifTrue:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4271
                                    ('Browser [info]: no source for ' , m printString) infoPrintCR.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4272
                                    false
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4273
                                ] ifFalse:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4274
                                    s match:src ignoreCase:ignoreCase
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4275
                                ]
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4276
                            ]
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4277
                       ]
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4278
    ] ifFalse:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4279
        searchBlock := [:c :m :sel | 
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4280
                            |src resources|
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4281
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4282
                            ((resources := m resources) size > 0
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4283
                            and:[resources includesKey:specSymbol]) ifTrue:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4284
                                src := m source.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4285
                                src isNil ifTrue:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4286
                                    ('Browser [info]: no source for ' , m printString) infoPrintCR.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4287
                                    false
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4288
                                ] ifFalse:[
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4289
                                    (src findString:aString) ~~ 0
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4290
                                ]
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4291
                            ]
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4292
                       ]
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4293
    ].
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4294
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4295
!
adb48690e31d more searches
Claus Gittinger <cg@exept.de>
parents: 3244
diff changeset
  4296
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4297
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
5243
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  4298
    "return a collection of all methods in aCollectionOfClasses  
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4299
     containing a string in their source.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4300
     This may be slow, since source-code has to be scanned."
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4301
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4302
    ^ 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
  4303
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4304
    "
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4305
     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
  4306
    "
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4307
!
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4308
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4309
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
5243
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  4310
    "return a collection of all methods in aCollectionOfClasses  
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4311
     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
  4312
     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
  4313
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4314
    |searchBlock|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4315
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4316
    searchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4317
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4318
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4319
    "
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4320
     SystemBrowser findString:'should'   in:(Array with:Object) ignoreCase:false
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4321
    "
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4322
!
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4323
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4324
findString:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch
5243
6b84674b60f4 +findCode:inMethods:
Claus Gittinger <cg@exept.de>
parents: 5226
diff changeset
  4325
    "return a collection of all methods in aCollectionOfClasses  
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4326
     containing a string in their source.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4327
     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
  4328
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4329
    |searchBlock|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4330
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4331
    searchBlock := self searchBlockForString:aString ignoreCase:ignoreCase match:doMatch.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4332
    ^ 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
  4333
!
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4334
5877
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4335
findStringLiteral:aString in:aCollectionOfClasses ignoreCase:ignoreCase match:doMatch
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4336
    "return a collection of all methods in aCollectionOfClasses  
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4337
     containing a string in any of their string-literals."
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4338
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4339
    |searchBlock|
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4340
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4341
    searchBlock := self searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch.
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4342
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4343
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4344
    "
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4345
     SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4346
    "
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4347
!
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4348
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4349
findStringLiteral:aString inMethods:aCollectionOfMethods ignoreCase:ignoreCase match:doMatch
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4350
    "return a collection of all methods in aCollectionOfClasses  
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4351
     containing a string in any of their string-literals."
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4352
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4353
    |searchBlock|
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4354
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4355
    searchBlock := self searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch.
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4356
    ^ aCollectionOfMethods select:[:m | searchBlock value:m mclass value:m value:m selector].
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4357
!
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4358
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4359
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4360
    ^ self searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:true
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4361
!
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4362
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4363
searchBlockForAllCallsOn:aSelectorString ignoreCase:ignoreCase match:doMatch
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4364
    |sel searchBlock lcString quickMatch|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4365
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4366
    (doMatch
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4367
     and:[(aSelectorString ~= '*') 
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4368
     and:[(aSelectorString includesMatchCharacters or:[ignoreCase])]]) ifTrue:[
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4369
        "/ a matchString - need string matching procedure
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4370
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4371
        ignoreCase ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4372
            lcString := aSelectorString asLowercase.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4373
        ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4374
            lcString := aSelectorString.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4375
        ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4376
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4377
        quickMatch := aSelectorString.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4378
        (quickMatch startsWith:'*') ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4379
            quickMatch := quickMatch copyFrom:2
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4380
        ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4381
        (quickMatch endsWith:'*') ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4382
            quickMatch := quickMatch copyWithoutLast:1
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4383
        ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4384
        (quickMatch includes:$:) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4385
            quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4386
        ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4387
        searchBlock := [:class :method :s |
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4388
                            |src|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4389
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4390
                            (ignoreCase not and:[quickMatch includesMatchCharacters not]) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4391
                                "/ do quick search first
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4392
                                method isLazyMethod ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4393
                                    src := method source.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4394
                                    (src notNil 
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4395
                                    and:[src includesString:quickMatch]) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4396
                                        method makeRealMethod.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4397
                                        (method literalsDetect:[:aLiteral|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4398
                                            (aLiteral isMemberOf:Symbol) 
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4399
                                              and:[(lcString includesString:quickMatch)
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4400
                                              and:[(lcString match:aLiteral)]]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4401
                                        ] ifNone:nil) notNil
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4402
                                    ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4403
                                        false
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4404
                                    ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4405
                                ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4406
                                    (method literalsDetect:[:aLiteral|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4407
                                        (aLiteral isMemberOf:Symbol) 
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4408
                                          and:[(lcString includesString:quickMatch)
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4409
                                          and:[(lcString match:aLiteral)]]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4410
                                    ] ifNone:nil) notNil
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4411
                                ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4412
                            ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4413
                                "/ expensive search
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4414
                                method isLazyMethod ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4415
                                    src := method source.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4416
                                    (src notNil and:[src includesMatchString:aSelectorString]) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4417
                                        method makeRealMethod.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4418
                                        (method literalsDetect:[:aLiteral|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4419
                                            (aLiteral isMemberOf:Symbol) 
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4420
                                              and:[(ignoreCase and:[lcString match:aLiteral asLowercase])
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4421
                                                   or:[ignoreCase not and:[lcString match:aLiteral]]]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4422
                                        ] ifNone:nil) notNil
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4423
                                    ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4424
                                        false
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4425
                                    ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4426
                                ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4427
                                    (method literalsDetect:[:aLiteral|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4428
                                        (aLiteral isMemberOf:Symbol) 
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4429
                                          and:[(ignoreCase and:[lcString match:aLiteral asLowercase])
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4430
                                               or:[ignoreCase not and:[lcString match:aLiteral]]]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4431
                                    ] ifNone:nil) notNil
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4432
                                ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4433
                            ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4434
                       ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4435
    ] ifFalse:[
4270
edcb3dfb262d senders of refactored
Claus Gittinger <cg@exept.de>
parents: 4235
diff changeset
  4436
        (doMatch and:[aSelectorString = '*']) ifTrue:[
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4437
            searchBlock := [:class :method :s | true].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4438
        ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4439
            "/ no matchString - can do it much faster
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4440
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4441
            sel := aSelectorString asSymbolIfInterned.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4442
            sel isNil ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4443
                ^ nil     "/ none
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4444
            ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4445
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4446
            quickMatch := sel.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4447
            (quickMatch includes:$:) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4448
                quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4449
            ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4450
            searchBlock := [:class :method :s |
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4451
                                |src|
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4452
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4453
                                method isLazyMethod ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4454
                                    src := method source.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4455
                                    (src notNil and:[src includesString:quickMatch]) ifTrue:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4456
                                        method makeRealMethod.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4457
                                        method sends:sel.
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4458
                                    ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4459
                                        false
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4460
                                    ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4461
                                ] ifFalse:[
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4462
                                    method sends:sel
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4463
                                ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4464
                           ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4465
        ]
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4466
    ].
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4467
    ^ searchBlock
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4468
!
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4469
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4470
searchBlockForCode:aCodeString isMethod:isMethod
7395
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4471
    "return a block to search for a piece of code (intelligent search)."
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4472
6581
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4473
    |errAction searchTree searcher globalVariablesUsed usedSymbols
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4474
     sentMessages searchBlock foundMatch|
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4475
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4476
"/self halt.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4477
"/rule := ParseTreeLintRule 
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4478
"/    createParseTreeRule: (Array with: aCodeString)
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4479
"/    method: isMethod
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4480
"/    name: 'Search for: ' , aCodeString.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4481
"/self halt.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4482
"/
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4483
"/    searchBlock := [:c :m :sel | 
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4484
"/        rslt := SmalllintChecker
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4485
"/            runRule:rule
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4486
"/            onEnvironment: (ClassEnvironment onEnvironment:(BrowserEnvironment new) classes:(Array with:c)).
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4487
"/        
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4488
"/        self halt.
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4489
"/    ].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4490
"/^ searchBlock.
5226
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  4491
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  4492
    errAction := [:str :pos | 
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  4493
                    Dialog warn:'Error during parse: ' , str , ' (position ' , pos printString , ')'.
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  4494
                    ^ nil
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  4495
                 ].
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4496
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4497
    isMethod ifTrue:[
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4498
        searchTree := RBParser 
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4499
                    parseRewriteMethod:aCodeString 
5226
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  4500
                    onError: errAction.
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4501
    ] ifFalse:[
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4502
        searchTree := RBParser 
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4503
                    parseRewriteExpression:aCodeString 
5226
35a9709e73ee code search
Claus Gittinger <cg@exept.de>
parents: 5135
diff changeset
  4504
                    onError: errAction.
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4505
    ].
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4506
6368
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4507
    Error handle:[:ex |
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4508
    ] do:[
6549
cd47faed29f6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6546
diff changeset
  4509
        sentMessages := searchTree sentMessages.         
5135
d844ec803124 improved code search
Claus Gittinger <cg@exept.de>
parents: 5112
diff changeset
  4510
    ].
6581
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4511
6549
cd47faed29f6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6546
diff changeset
  4512
    globalVariablesUsed := searchTree referencedVariables 
5251
847d633792ce tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents: 5243
diff changeset
  4513
                    select:[:node | 
847d633792ce tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents: 5243
diff changeset
  4514
                                node isPatternNode not
847d633792ce tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents: 5243
diff changeset
  4515
                                and:[ Smalltalk includesKey: node name asSymbol ]
847d633792ce tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents: 5243
diff changeset
  4516
                           ]   
847d633792ce tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents: 5243
diff changeset
  4517
                    thenCollect:[:node | node name asSymbol]. 
5135
d844ec803124 improved code search
Claus Gittinger <cg@exept.de>
parents: 5112
diff changeset
  4518
6581
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4519
    usedSymbols := searchTree usedSymbols.
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4520
7395
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4521
    "/ cannot use literals to speedup the search, because stc does not store
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4522
    "/ constants in the literal-array.
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4523
    "/ literalsUsed := searchTree usedLiterals.
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4524
    "/ literalsUsed := literalsUsed select:[:lit | lit isString].
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4525
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4526
    searcher := ParseTreeSearcher new.
5256
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4527
    isMethod ifTrue:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4528
        searcher 
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4529
            matchesMethod:searchTree
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4530
            do:[:aNode :answer | foundMatch := true].
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4531
    ] ifFalse:[
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4532
        searcher 
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4533
            matchesTree:searchTree
c37bc91f2460 better none-found behavior for unary messages
Claus Gittinger <cg@exept.de>
parents: 5254
diff changeset
  4534
            do:[:aNode :answer | foundMatch := true].
6303
47c12063b000 Fix BC-Compile error
Stefan Vogel <sv@exept.de>
parents: 6184
diff changeset
  4535
    ].
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4536
6581
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4537
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4538
    searchBlock := [:c :m :sel | 
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4539
                        |allSelectorsInLiteralArray allMessagesSent 
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4540
                         allGlobalsReferenced allUsedSymbolsInLiteralArray allSent src rslt parseTree|       
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4541
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4542
                        foundMatch := false.
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4543
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4544
                        m isLazyMethod ifTrue:[
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4545
                            src := m source.
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4546
                            src notNil ifTrue:[
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4547
                                m makeRealMethod.
5135
d844ec803124 improved code search
Claus Gittinger <cg@exept.de>
parents: 5112
diff changeset
  4548
                            ].
6581
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4549
                        ].
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4550
                        "/ can speedup the search, by filtering for sent messages first...
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4551
                        allSelectorsInLiteralArray := sentMessages isEmptyOrNil or:[ m literals includesAll:sentMessages ].
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4552
                        allSelectorsInLiteralArray ifTrue:[
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4553
                            allUsedSymbolsInLiteralArray := usedSymbols isEmptyOrNil or:[ m literals includesAll:usedSymbols ].
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4554
                            allUsedSymbolsInLiteralArray ifTrue:[
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4555
                                allMessagesSent := sentMessages isEmptyOrNil or:[ m messages includesAll:sentMessages ].
6368
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4556
                                allMessagesSent ifTrue:[
6549
cd47faed29f6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6546
diff changeset
  4557
                                    allGlobalsReferenced := globalVariablesUsed conform:[:varName | m referencesGlobal:varName].
6368
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4558
                                    allGlobalsReferenced ifTrue:[
6549
cd47faed29f6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6546
diff changeset
  4559
                                        allSent := sentMessages conform:[:sel | (m sends:sel)].
6368
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4560
                                        allSent ifTrue:[
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4561
                                            src := m source.
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4562
                                            src isNil ifTrue:[
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4563
                                                ('Browser [info]: no source for ' , m printString) infoPrintCR.
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4564
                                                false
5270
d72d63a6dfac *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5256
diff changeset
  4565
                                            ] ifFalse:[
6368
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4566
                                                parseTree := RBParser 
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4567
                                                                parseSearchMethod:src 
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4568
                                                                onError: [:str :pos | 
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4569
                                                                    Transcript show:'Error in '; showCR:m. 
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4570
                                                                    Transcript showCR:str. 
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4571
                                                                    Transcript showCR:pos. 
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4572
                                                                    nil].
6552
343882b29fec code search bug - leftover foundMatch flag (must be cleared)
Claus Gittinger <cg@exept.de>
parents: 6549
diff changeset
  4573
6368
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4574
                                                parseTree notNil ifTrue:[
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4575
                                                    false "isMethod" ifTrue:[
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4576
                                                        rslt := searcher executeMethod:parseTree.
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4577
                                                    ] ifFalse:[
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4578
                                                        rslt := searcher executeTree:parseTree.
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4579
                                                    ].
6552
343882b29fec code search bug - leftover foundMatch flag (must be cleared)
Claus Gittinger <cg@exept.de>
parents: 6549
diff changeset
  4580
                                                ]
6368
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4581
                                            ]
ef36274cbbf1 faster code-search
Claus Gittinger <cg@exept.de>
parents: 6353
diff changeset
  4582
                                        ]
5251
847d633792ce tuned code search if global vars are involved
Claus Gittinger <cg@exept.de>
parents: 5243
diff changeset
  4583
                                    ]
5135
d844ec803124 improved code search
Claus Gittinger <cg@exept.de>
parents: 5112
diff changeset
  4584
                                ]
6581
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4585
                            ]
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4586
                        ].
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4587
                        foundMatch.
ae69dc905971 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6560
diff changeset
  4588
                   ].
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4589
    ^ searchBlock.
7395
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4590
4aa4c6b9a161 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7361
diff changeset
  4591
    "Modified: / 12-10-2006 / 21:30:05 / cg"
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4592
!
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4593
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4594
searchBlockForString:aString ignoreCase:ignoreCase match:doMatch
5094
242cf19c25ce code search
Claus Gittinger <cg@exept.de>
parents: 5090
diff changeset
  4595
    "return a block to search for a string."
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4596
5891
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4597
    |searchBlock s lcString|
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4598
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4599
    (doMatch and:[ aString includesMatchCharacters ]) ifTrue:[
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4600
        s := '*' , aString , '*'.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4601
        "a matchString"
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4602
        searchBlock := [:c :m :sel | 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4603
                            |src|       
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4604
                            src := m source.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4605
                            src isNil ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4606
                                ('Browser [info]: no source for ' , m printString) infoPrintCR.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4607
                                false
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4608
                            ] ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4609
                                s match:src ignoreCase:ignoreCase
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4610
                            ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4611
                       ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4612
    ] ifFalse:[
5891
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4613
        ignoreCase ifTrue:[
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4614
            lcString := aString asLowercase.
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4615
            searchBlock := 
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4616
                [:c :m :sel | 
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4617
                    |src|
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4618
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4619
                    src := m source.
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4620
                    src isNil ifTrue:[
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4621
                        ('Browser [info]: no source for ' , m printString) infoPrintCR.
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4622
                        false
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4623
                    ] ifFalse:[
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4624
                        (src asLowercase findString:lcString) ~~ 0
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4625
                    ]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4626
               ]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4627
        ] ifFalse:[
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4628
            searchBlock := 
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4629
                [:c :m :sel | 
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4630
                    |src|
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4631
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4632
                    src := m source.
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4633
                    src isNil ifTrue:[
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4634
                        ('Browser [info]: no source for ' , m printString) infoPrintCR.
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4635
                        false
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4636
                    ] ifFalse:[
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4637
                        (src findString:aString) ~~ 0
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4638
                    ]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4639
               ]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4640
           ]
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4641
    ].
4235
bba308f409dd images & another special case startup
Claus Gittinger <cg@exept.de>
parents: 4222
diff changeset
  4642
    ^ searchBlock.
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4643
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
     SystemBrowser findString:'should'   in:(Array with:Object) ignoreCase:false
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  4646
    "
4152
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4647
!
92e3975f1904 allow for non-matching search (searching for impl. of '*')
Claus Gittinger <cg@exept.de>
parents: 4150
diff changeset
  4648
5877
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4649
searchBlockForStringLiteral:aString ignoreCase:ignoreCase match:doMatch
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4650
    "return a block to search for a string-literal."
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4651
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4652
    |searchBlock s|
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4653
5891
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4654
    (doMatch and:[ aString includesMatchCharacters]) ifTrue:[
5877
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4655
        s := '*' , aString , '*'.
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4656
        "a matchString"
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4657
        searchBlock := [:c :m :sel | 
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4658
                            |lits|       
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4659
                            lits := m literals ? #().
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4660
                            lits contains:[:lit |
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4661
                                lit isString
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4662
                                and:[lit isSymbol not
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4663
                                and:[s match:lit ignoreCase:ignoreCase]]
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4664
                            ]
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4665
                       ]
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4666
    ] ifFalse:[
5891
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4667
        ignoreCase ifTrue:[
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4668
            s := aString asLowercase.
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4669
            searchBlock := [:c :m :sel | 
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4670
                                |lits|       
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4671
                                lits := m literals ? #().
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4672
                                lits contains:[:lit |
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4673
                                    lit isString
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4674
                                    and:[lit isSymbol not
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4675
                                    and:[s = lit asLowercase]]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4676
                                ]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4677
                           ]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4678
        ] ifFalse:[
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4679
            searchBlock := [:c :m :sel | 
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4680
                                |lits|       
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4681
                                lits := m literals ? #().
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4682
                                lits contains:[:lit |
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4683
                                    lit isString
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4684
                                    and:[lit isSymbol not
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4685
                                    and:[s = lit]]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4686
                                ]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4687
                           ]
2a0c77668f34 findString caseless fixed
Claus Gittinger <cg@exept.de>
parents: 5877
diff changeset
  4688
        ].
5877
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4689
    ].
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4690
    ^ searchBlock.
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4691
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4692
    "
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4693
     SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:true
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4694
     SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:true match:false
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4695
     SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:true
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4696
     SystemBrowser findStringLiteral:'error' in:(Array with:Object) ignoreCase:false match:false
c11a6d244c6a string literal search
Claus Gittinger <cg@exept.de>
parents: 5833
diff changeset
  4697
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4698
! !
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4699
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  4700
!SystemBrowser class methodsFor:'startup'!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4701
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4702
browseAllSelect:aBlock
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4703
    "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
  4704
     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
  4705
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4706
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4707
        browseMethodsWhere:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4708
        title:'selected messages'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4709
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4710
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4711
     SystemBrowser browseAllSelect:[:aClass :aMethod :selector | selector numArgs == 3]
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4712
    "
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4713
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4714
    "Modified: 24.1.1997 / 19:45:05 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4715
!
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  4716
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4717
browseClass:aClass
4490
de7216d4a28a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4350
diff changeset
  4718
    "launch a browser for aClass.
de7216d4a28a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4350
diff changeset
  4719
     Notice: better go via Smalltalk browseClass:, which honors the tool-preferences"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4720
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4721
    ^ self 
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4722
        newWithLabel:aClass name
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4723
        setupSelector:#setupForClass:
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4724
        arg:aClass
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4725
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4726
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4727
     SystemBrowser browseClass:Object
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4728
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4729
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4730
    "Modified: 24.1.1997 / 19:45:16 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4731
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4732
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4733
browseClass:aClass methodCategory:aCategory
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4734
    "launch a browser for all methods under aCategory in aClass"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4735
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4736
    ^ self newWithLabel:(aClass name , ' ' , aCategory)
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4737
          setupBlock:[:browser | browser setupForClass:aClass methodCategory:aCategory]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4738
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4739
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4740
     SystemBrowser browseClass:String methodCategory:'copying'
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4741
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4742
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4743
    "Modified: 24.1.1997 / 19:45:23 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4744
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4745
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4746
browseClass:aClass selector:selector
4490
de7216d4a28a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4350
diff changeset
  4747
    "launch a browser for the method at selector in aClass."
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4748
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4749
    ^ self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4750
        newWithLabel:(aClass name , ' ' , selector , ' ' , selector)
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4751
        setupBlock:[:newBrowser | newBrowser setupForClass:aClass selector:selector]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4752
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4753
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4754
     SystemBrowser browseClass:Object selector:#printString
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4755
    "
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4756
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4757
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4758
browseClassCategory:aClassCategory
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4759
    "launch a browser for all classes under aCategory"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4760
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4761
    ^ self 
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4762
        newWithLabel:aClassCategory
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4763
        setupSelector:#setupForClassCategory:
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4764
        arg:aClassCategory
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4765
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4766
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4767
     SystemBrowser browseClassCategory:'Kernel-Objects'
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4768
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4769
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4770
    "Modified: 24.1.1997 / 19:45:32 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4771
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4772
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4773
browseClassHierarchy:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4774
    "launch a browser for aClass and all its superclasses.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4775
     this is different from the fullProtocol browser."
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4776
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4777
    ^ self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4778
        newWithLabel:(aClass name , '-' , 'hierarchy')
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4779
        setupSelector:#setupForClassHierarchy:
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4780
        arg:aClass
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4781
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4782
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4783
     SystemBrowser browseClassHierarchy:Number
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4784
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4785
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4786
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4787
browseClasses:aList title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4788
    "launch a browser for all classes in aList"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4789
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4790
    ^ self 
576
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4791
        newWithLabel:title
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4792
        setupBlock:[:b | b setupForClassList:aList sort:true]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4793
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4794
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4795
     SystemBrowser browseClasses:(Array with:Object
576
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4796
                                        with:Float)
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4797
                           title:'two classes'
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4798
    "
576
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4799
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4800
    "Modified: 28.5.1996 / 13:52:25 / cg"
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4801
!
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4802
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4803
browseClasses:aList title:title sort:doSort
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4804
    "launch a browser for all classes in aList"
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4805
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4806
    ^ self 
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4807
        newWithLabel:title
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4808
        setupBlock:[:b | b setupForClassList:aList sort:doSort]
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4809
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4810
    "
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4811
     SystemBrowser browseClasses:(Array with:Object
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4812
                                        with:Float)
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4813
                           title:'two classes'
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4814
    "
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4815
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  4816
    "Created: 28.5.1996 / 13:52:09 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  4817
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  4818
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4819
browseFullClassProtocol:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4820
    "launch a browser for aClasses full protocol.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4821
     This is different from hierarchy browsing."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4822
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4823
    ^ self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4824
        newWithLabel:(aClass name , '-' , 'full protocol')
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4825
        setupSelector:#setupForFullClassProtocol:
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4826
        arg:aClass
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4827
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4828
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4829
     SystemBrowser browseFullClassProtocol:Number
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4830
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4831
!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4832
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4833
browseFullClasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4834
    "launch a browser showing all methods at once"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4835
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4836
    ^ self 
4158
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4837
        newWithLabel:'Full Class Browser'
d7286d54de21 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4152
diff changeset
  4838
        setupBlock:[:newBrowser | newBrowser setupForFullClass]
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4839
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4840
    "SystemBrowser browseFullClasses"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4841
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4842
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4843
browseInstMethodsFrom:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4844
    "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
  4845
     where aBlock evaluates to true"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4846
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4847
    ^ self      
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4848
        browseMethodsIn:(aClass withAllSubclasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4849
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4850
        class:false 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4851
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4852
        title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4853
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4854
    "Modified: 24.1.1997 / 19:44:45 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4855
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4856
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4857
browseInstMethodsIn:aCollectionOfClasses where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4858
    "launch a browser for all instance methods of all classes in
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4859
     aCollectionOfClasses where aBlock evaluates to true"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4860
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4861
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4862
        browseMethodsIn:aCollectionOfClasses 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4863
        inst:true class:false 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4864
        where:aBlock title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4865
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4866
    "Modified: 24.1.1997 / 19:43:41 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4867
!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  4868
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4869
browseInstMethodsOf:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4870
    "launch a browser for all instance methods in aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4871
     where aBlock evaluates to true"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4872
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4873
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4874
        browseMethodsIn:(Array with:aClass) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4875
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4876
        class:false 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4877
        where:aBlock title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4878
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  4879
    "Modified: 24.1.1997 / 19:43:50 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4880
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4881
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4882
browseMethodCategory:aCategory
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4883
    "launch a browser for all methods where category = aCategory"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4884
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4885
    |searchBlock|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4886
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4887
    aCategory includesMatchCharacters ifTrue:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4888
        searchBlock := [:c :m :s | aCategory match:m category].
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4889
    ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4890
        searchBlock := [:c :m :s | m category = aCategory]
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4891
    ].
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4892
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4893
    ^ self browseMethodsWhere:searchBlock title:('all methods with category of ' , aCategory)
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4894
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4895
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4896
     SystemBrowser browseMethodCategory:'printing & storing'
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4897
     SystemBrowser browseMethodCategory:'print*'
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4898
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4899
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4900
3666
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4901
browseMethods:aListOfMethods
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4902
    "launch a multi-method browser."
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4903
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4904
    ^ self browseMethods:aListOfMethods title:'some methods'
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4905
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4906
    "
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4907
     self 
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4908
        browseMethods:(Array with:(Array compiledMethodAt:#at:)
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4909
                             with:(OrderedCollection compiledMethodAt:#at:))
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4910
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4911
     self 
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4912
        browseMethods:(Array with:(Array compiledMethodAt:#at:)
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4913
                             with:(Array compiledMethodAt:#at:put:))
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4914
    "
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4915
!
f7b25e677c23 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3663
diff changeset
  4916
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4917
browseMethods:aList title:aString
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4918
    "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
  4919
     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
  4920
     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
  4921
     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
  4922
1919
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4923
    ^ self
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4924
        browseMethods:aList
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4925
        title:aString
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4926
        sort:true
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4927
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4928
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4929
    "
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4930
     SystemBrowser 
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4931
        browseMethods:#('Object printOn:' 'Collection add:')
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4932
        title:'some methods'
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4933
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4934
     SystemBrowser 
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4935
        browseMethods:#('Behavior new:' 'Setclass new:')
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4936
        title:'some new: methods'
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4937
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4938
     SystemBrowser 
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4939
        browseMethods:(Array with:(Object compiledMethodAt:#printOn:)
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4940
                             with:(Collection compiledMethodAt:#add:)
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4941
                             with:(Object class compiledMethodAt:#initialize))
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4942
        title:'some methods'
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4943
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4944
    "
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4945
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4946
    "Modified: 1.11.1996 / 16:30:17 / cg"
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4947
!
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4948
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4949
browseMethods:aList title:aString sort:doSort
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4950
    "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
  4951
     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
  4952
     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
  4953
     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
  4954
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4955
    |l|
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4956
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4957
    (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
  4958
        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
  4959
        ^ nil
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4960
    ].
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4961
    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
  4962
    l := l collect:[:entry |
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  4963
        |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
  4964
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4965
        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
  4966
            entry
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4967
        ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4968
            cls := entry mclass.
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4969
            cls isNil ifTrue:[
1031
5d77c99b877e dont crash when unbound methods are passed
ca
parents: 1018
diff changeset
  4970
                '??? unbound'
5d77c99b877e dont crash when unbound methods are passed
ca
parents: 1018
diff changeset
  4971
            ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4972
                cls isJavaClass ifTrue:[
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4973
                    clsName := 'JAVA::' , cls fullName 
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  4974
                ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4975
                    clsName := cls name
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4976
                ].
2824
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
  4977
(cls selectorAtMethod:entry) isNil ifTrue:[
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
  4978
    self halt.
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
  4979
].
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4980
                clsName
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4981
                , ' ' 
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  4982
                , (entry printStringForBrowserWithSelector:(cls selectorAtMethod:entry))
1031
5d77c99b877e dont crash when unbound methods are passed
ca
parents: 1018
diff changeset
  4983
            ]
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4984
        ]
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4985
      ].
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4986
        
1919
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  4987
    doSort ifTrue:[l sort].
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  4988
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4989
    ^ 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
  4990
        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
  4991
        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
  4992
        arg:l 
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  4993
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4994
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  4995
     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
  4996
        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
  4997
        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
  4998
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  4999
     SystemBrowser 
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  5000
        browseMethods:#('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
  5001
        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
  5002
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  5003
     SystemBrowser 
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  5004
        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
  5005
                             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
  5006
                             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
  5007
        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
  5008
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5009
    "
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  5010
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  5011
    "Modified: / 17.6.1996 / 17:07:46 / stefan"
2826
9d7f11697806 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2824
diff changeset
  5012
    "Modified: / 17.10.1998 / 11:25:53 / cg"
9d7f11697806 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2824
diff changeset
  5013
!
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  5014
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5015
browseMethodsFrom:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5016
    "launch a browser for all instance- and classmethods in aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5017
     and all its subclasses where aBlock evaluates to true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5018
     The block is called with 3 arguments, class, method and seelctor."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5019
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5020
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5021
        browseMethodsIn:(aClass withAllSubclasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5022
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5023
        title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5024
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5025
    "Modified: 24.1.1997 / 19:44:00 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5026
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5027
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5028
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5029
    "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
  5030
     classmethods (if wantClass is true) from classes in aCollectionOfClasses,
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5031
     where aBlock evaluates to true.
270
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  5032
     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
  5033
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5034
    |list|
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  5035
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  5036
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5037
     since this may take a long time, lower my priority ...
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  5038
    "
2295
4e05198e7dd8 execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5039
    Processor activeProcess 
4e05198e7dd8 execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  5040
        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
  5041
    do:[
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5042
        list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5043
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5044
    ^ self browseMethods:list title:title
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  5045
!
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  5046
3780
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5047
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5048
    "launch a browser for all instance- (if wantInst is true) and/or
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5049
     classmethods (if wantClass is true) from classes in aCollectionOfClasses,
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5050
     where aBlock evaluates to true.
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5051
     The block is called with 3 arguments, class, method and selector."
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5052
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5053
    |list|
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5054
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5055
    "
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5056
     since this may take a long time, lower my priority ...
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5057
    "
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5058
    Processor activeProcess 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5059
        withPriority:Processor activePriority-1 to:Processor activePriority
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5060
    do:[
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5061
        list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock.
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5062
        list size == 0 ifTrue:[warnBlock value].
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5063
    ].
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5064
    ^ self browseMethods:list title:title
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5065
!
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5066
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5067
browseMethodsIn:aCollectionOfClasses where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5068
    "launch a browser for all instance- and classmethods from 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5069
     all classes in aCollectionOfClasses where aBlock evaluates to true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5070
     The block is called with 3 arguments, class, method and seelctor."
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  5071
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5072
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5073
        browseMethodsIn:aCollectionOfClasses 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5074
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5075
        class:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5076
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5077
        title:title
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  5078
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5079
    "Modified: 24.1.1997 / 19:44:17 / cg"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5080
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5081
3780
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5082
browseMethodsIn:aCollectionOfClasses where:aBlock title:title ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5083
    "launch a browser for all instance- and classmethods from 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5084
     all classes in aCollectionOfClasses where aBlock evaluates to true.
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5085
     The block is called with 3 arguments, class, method and seelctor."
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5086
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5087
    ^ self 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5088
        browseMethodsIn:aCollectionOfClasses 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5089
        inst:true 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5090
        class:true 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5091
        where:aBlock 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5092
        title:title
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5093
        ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5094
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5095
    "Modified: 24.1.1997 / 19:44:17 / cg"
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5096
!
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5097
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5098
browseMethodsOf:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5099
    "launch a browser for all instance- and classmethods in aClass 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5100
     where aBlock evaluates to true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5101
     The block is called with 3 arguments, class, method and seelctor."
93
claus
parents: 90
diff changeset
  5102
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5103
    ^ self browseMethodsIn:(Array with:aClass) where:aBlock title:title
93
claus
parents: 90
diff changeset
  5104
!
claus
parents: 90
diff changeset
  5105
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5106
browseMethodsWhere:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5107
    "launch a browser for all methods where aBlock returns true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5108
     The block is called with 3 arguments, class, method and seelctor."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5109
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5110
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5111
        browseMethodsIn:(Smalltalk allClasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5112
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5113
        title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5114
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  5115
    "Modified: 24.1.1997 / 19:44:30 / cg"
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5116
!
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5117
3780
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5118
browseMethodsWhere:aBlock title:title ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5119
    "launch a browser for all methods where aBlock returns true.
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5120
     The block is called with 3 arguments, class, method and seelctor."
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5121
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5122
    ^ self 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5123
        browseMethodsIn:(Smalltalk allClasses) 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5124
        where:aBlock 
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5125
        title:title
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5126
        ifNone:warnBlock
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5127
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5128
    "Modified: 24.1.1997 / 19:44:30 / cg"
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5129
!
39191b8024e4 dont open empty list browsers
penk
parents: 3679
diff changeset
  5130
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5131
findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5132
    "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
  5133
     from classes in aCollectionOfClasses, where aBlock evaluates to true."
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5134
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5135
    |list checkedClasses checkBlock|
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5136
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5137
    checkedClasses := IdentitySet new.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5138
    list := OrderedCollection new.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5139
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5140
    checkBlock := [:cls |
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5141
        (checkedClasses includes:cls) ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5142
            cls isObsolete ifTrue:[
2882
2a12342fef79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2880
diff changeset
  5143
                Transcript showCR:'Browser method search: skipping obsolete class: ' , cls displayString
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5144
            ] ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5145
                cls methodDictionary keysAndValuesDo:[:sel :method |
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5146
                    (aBlock value:cls value:method value:sel) ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5147
                        list add:method "/ (cls name , ' ' , sel)
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5148
                    ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5149
                ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5150
                checkedClasses add:cls.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5151
            ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5152
        ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5153
    ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5154
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5155
    aCollectionOfClasses do:[:aClass |
3008
1a45c272b13f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2901
diff changeset
  5156
        (aClass notNil and:[aClass isObsolete not]) ifTrue:[
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5157
            "
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5158
             output disabled - it slows down things too much (when searching for
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5159
             implementors or senders)
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5160
            "
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5161
            wantInst ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5162
"/                Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5163
                checkBlock value:aClass
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5164
            ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5165
            wantClass ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5166
"/                Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5167
                checkBlock value:(aClass class)
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5168
            ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5169
            Processor yield
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5170
        ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5171
    ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5172
    ^ list
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5173
!
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5174
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5175
findMethodsIn:aCollectionOfClasses where:aBlock
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5176
    "return all instance- and classmethods 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5177
     from classes in aCollectionOfClasses, where aBlock evaluates to true."
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5178
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5179
    ^ self
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5180
        findMethodsIn:aCollectionOfClasses 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5181
        inst:true
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5182
        class:true      
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  5183
        where:aBlock
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5184
! !
93
claus
parents: 90
diff changeset
  5185
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  5186
!SystemBrowser class methodsFor:'startup with query'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5187
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5188
askThenBrowseClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5189
    self getClassThenPerform:#browseClass:
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5190
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5191
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5192
     SystemBrowser askThenBrowseClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5193
    "
93
claus
parents: 90
diff changeset
  5194
!
claus
parents: 90
diff changeset
  5195
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5196
askThenBrowseClassHierarchy
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5197
    self getClassThenPerform:#browseClassHierarchy:
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5198
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5199
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5200
     SystemBrowser askThenBrowseClassHierarchy
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5201
    "
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5202
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5203
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5204
askThenBrowseFullClassProtocol
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5205
    self getClassThenPerform:#browseFullClassProtocol:
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5206
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5207
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5208
     SystemBrowser askThenBrowseFullClassProtocol
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5209
    "
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  5210
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  5211
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5212
getClassThenPerform:aSelector
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5213
    |enterBox resources|
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5214
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5215
    resources := self classResources.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  5216
6353
b9e2940b7714 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6333
diff changeset
  5217
    enterBox := EnterBox title:(self classResources stringWithCRs:'Browse which class:').
6640
326360e94271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6581
diff changeset
  5218
    enterBox okText:(resources string:'Browse').
6873
10854f75d38d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6848
diff changeset
  5219
    enterBox entryCompletionBlock:(DoWhatIMeanSupport classNameEntryCompletionBlock).
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5220
    enterBox action:[:className |
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5221
        |cls|
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5222
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5223
        cls := Smalltalk classNamed:className.
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5224
        cls isNil ifTrue:[
6640
326360e94271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6581
diff changeset
  5225
            self warn:(resources string:'No such class').
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5226
        ] ifFalse:[
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5227
            self perform:aSelector with:cls  
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  5228
        ]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5229
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5230
    enterBox showAtPointer
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  5231
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5232
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5233
     SystemBrowser getClassThenPerform:#browseClass:
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5234
    "
6873
10854f75d38d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6848
diff changeset
  5235
10854f75d38d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6848
diff changeset
  5236
    "Modified: / 10-08-2006 / 12:54:20 / cg"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5237
! !
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5238
2813
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5239
!SystemBrowser class methodsFor:'utilities'!
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5240
3833
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5241
classWithNameSimilarTo:className
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5242
    "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
  5243
4924
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5244
    |allMatchingClasses|
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5245
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5246
    allMatchingClasses := self classesWithNameSimilarTo:className.
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5247
    ^ allMatchingClasses firstIfEmpty:nil
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5248
!
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5249
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5250
classesWithNameSimilarTo:className
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5251
    "helper for class-name entry; finds a class by name tolerant w.r.t. case"
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5252
6944
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5253
    ^ self classesWithNameSimilarTo:className from:nil
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5254
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5255
    "Modified: / 22-08-2006 / 13:22:41 / cg"
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5256
!
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5257
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5258
classesWithNameSimilarTo:className from:aNameSpaceOrNil
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5259
    "helper for class-name entry; finds classes with a name similar to the argument, className"
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5260
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5261
    |nm lcName class allClasses triedDetectors triedMatchers allMatchingClasses
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5262
     prefNameSpaceOrNil prefLcNameSpace|
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5263
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5264
    prefNameSpaceOrNil := (aNameSpaceOrNil == Smalltalk) ifTrue:[ nil ] ifFalse:[aNameSpaceOrNil].
3833
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5265
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5266
    (className startsWith:'Smalltalk::') ifTrue:[
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5267
        nm := className copyFrom:('Smalltalk::' size + 1).
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5268
    ] ifFalse:[
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5269
        nm := className.
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5270
    ].
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5271
6944
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5272
    prefNameSpaceOrNil notNil ifTrue:[
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5273
        class := prefNameSpaceOrNil at:nm asSymbol.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5274
        class isBehavior ifTrue:[^ Array with:class].      "/ a direct hit
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5275
        prefLcNameSpace := prefNameSpaceOrNil name asLowercase.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5276
    ].
3833
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5277
    class := Smalltalk at:nm asSymbol.
4924
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5278
    class isBehavior ifTrue:[^ Array with:class].      "/ a direct hit
3833
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5279
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5280
    lcName := className asLowercase.
4924
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5281
3833
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5282
    allClasses := Smalltalk allClasses.
4806
439bed9def3a code cleanup
Claus Gittinger <cg@exept.de>
parents: 4526
diff changeset
  5283
6134
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5284
    triedDetectors := OrderedCollection new.
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5285
    triedDetectors add:[:cls | cls name asLowercase = lcName].
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5286
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5287
    triedDetectors do:[:eachTry |
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5288
        |class|
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5289
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5290
        class := allClasses detect:eachTry ifNone:nil.
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5291
        class notNil ifTrue:[^ Array with:class].
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5292
    ].
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5293
4806
439bed9def3a code cleanup
Claus Gittinger <cg@exept.de>
parents: 4526
diff changeset
  5294
    triedMatchers := OrderedCollection new.
5018
2fe02eac49c5 better classesWithNameSimilarTo
Claus Gittinger <cg@exept.de>
parents: 4924
diff changeset
  5295
    triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase = lcName].      
2fe02eac49c5 better classesWithNameSimilarTo
Claus Gittinger <cg@exept.de>
parents: 4924
diff changeset
  5296
    triedMatchers add:[:cls | cls nameWithoutNameSpacePrefix asLowercase = lcName].      
4924
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5297
4806
439bed9def3a code cleanup
Claus Gittinger <cg@exept.de>
parents: 4526
diff changeset
  5298
    triedMatchers add:[:cls | cls name asLowercase startsWith:lcName].      
439bed9def3a code cleanup
Claus Gittinger <cg@exept.de>
parents: 4526
diff changeset
  5299
    triedMatchers add:[:cls | cls nameWithoutNameSpacePrefix asLowercase startsWith:lcName].      
439bed9def3a code cleanup
Claus Gittinger <cg@exept.de>
parents: 4526
diff changeset
  5300
    triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase startsWith:lcName].      
439bed9def3a code cleanup
Claus Gittinger <cg@exept.de>
parents: 4526
diff changeset
  5301
    triedMatchers add:[:cls | cls nameWithoutPrefix asLowercase includesString:lcName].      
6134
024fd528782a *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 6115
diff changeset
  5302
    triedMatchers add:[:cls | cls name asLowercase includesString:lcName].
4924
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5303
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5304
    allMatchingClasses := IdentitySet new.
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5305
    triedMatchers do:[:eachTry |
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5306
        |matchingClasses|
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5307
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5308
        matchingClasses := allClasses select:eachTry.
6944
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5309
"/        matchingClasses size == 1 ifTrue:[^ matchingClasses].
4924
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5310
        allMatchingClasses addAll:matchingClasses.
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5311
    ].
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5312
    allMatchingClasses isEmpty ifTrue:[^ #()].
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5313
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5314
    allMatchingClasses := allMatchingClasses asOrderedCollection.
6944
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5315
    allMatchingClasses 
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5316
        sort:[:a :b | 
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5317
            |lcNameA lcNameB da db distA distB |
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5318
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5319
            lcNameA := a name asLowercase.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5320
            lcNameB := b name asLowercase.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5321
            prefNameSpaceOrNil notNil ifTrue:[
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5322
                a nameSpace == prefNameSpaceOrNil ifTrue:[
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5323
                    lcNameA := a nameWithoutNameSpacePrefix asLowercase.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5324
                ].
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5325
                b nameSpace == prefNameSpaceOrNil ifTrue:[
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5326
                    lcNameB := b nameWithoutNameSpacePrefix asLowercase.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5327
                ].
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5328
            ].
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5329
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5330
            distA := da := lcName levenshteinTo:lcNameA.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5331
            distB := db := lcName levenshteinTo:lcNameB.
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5332
            "prefer prefixes (i.e. classes whose name starts with what we search for)"
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5333
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5334
            (lcNameA startsWith:lcName) ifTrue:[
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5335
                distB := distB * 2
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5336
            ].
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5337
            (lcNameB startsWith:lcName) ifTrue:[
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5338
                distA := distA * 2
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5339
            ].
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5340
            distA < distB
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5341
        ].
4924
0d39bbc7203e better search-class heuristics
Claus Gittinger <cg@exept.de>
parents: 4921
diff changeset
  5342
    ^ allMatchingClasses.
6546
1b809ef4658b comment
Stefan Vogel <sv@exept.de>
parents: 6480
diff changeset
  5343
1b809ef4658b comment
Stefan Vogel <sv@exept.de>
parents: 6480
diff changeset
  5344
    "
6678
aa5572677e17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6640
diff changeset
  5345
     self classesWithNameSimilarTo:'NewSystemBrowser'
aa5572677e17 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6640
diff changeset
  5346
     self classesWithNameSimilarTo:'Moose::MSEAbstractOperator'
6546
1b809ef4658b comment
Stefan Vogel <sv@exept.de>
parents: 6480
diff changeset
  5347
    "
6944
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5348
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5349
    "Created: / 22-08-2006 / 13:22:48 / cg"
1cf67ff2795d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6925
diff changeset
  5350
    "Modified: / 22-08-2006 / 14:53:38 / cg"
3833
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5351
!
89b8454a783d refactored
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
  5352
2813
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5353
extractClassAndSelectorFrom:aString into:aBlock
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5354
    "given a string which can be either 'class>>sel' or
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5355
     'class sel', extract className and selector, and call aBlock with
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5356
     the result.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5357
     Useful to open browser on a method as selected in some documentation."
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5358
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5359
    |sel clsName isMeta sep s|
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5360
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5361
    sel := aString.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5362
    sel notNil ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5363
        sel := sel asString withoutSeparators.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5364
        ('*>>*' match:sel) ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5365
            sep := $>
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5366
        ] ifFalse:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5367
            ('* *' match:sel) ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5368
                sep := Character space
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5369
            ]
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5370
        ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5371
        sep notNil ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5372
            "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5373
             extract class/sel from selection
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5374
            "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5375
            s := ReadStream on:sel.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5376
            clsName := s upTo:sep.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5377
            [s peek == sep] whileTrue:[s next].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5378
            sel := s upToEnd.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5379
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5380
            (clsName endsWith:' class') ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5381
                isMeta := true.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5382
                clsName := clsName copyWithoutLast:6 "copyTo:(clsName size - 5)"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5383
            ] ifFalse:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5384
                isMeta := false
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5385
            ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5386
        ]
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5387
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5388
    aBlock value:clsName value:sel value:isMeta
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5389
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5390
    "Modified: / 17.6.1996 / 16:52:14 / stefan"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5391
    "Created: / 6.2.2000 / 00:51:51 / cg"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5392
    "Modified: / 6.2.2000 / 00:56:43 / cg"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5393
!
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5394
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5395
extractSelectorFrom:aString
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5396
    "given an arbitrary string, try to extract a useful selector.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5397
     Useful to open browser on a selected code fragment."
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5398
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5399
    |s sel t|
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5400
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5401
    aString isNil ifTrue:[^ nil].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5402
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5403
    s := aString asString string.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5404
    s := s withoutSeparators.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5405
    sel := s.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5406
6705
b78bea6fd220 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6678
diff changeset
  5407
    ((sel endsWith:$:)
b78bea6fd220 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6678
diff changeset
  5408
    and:[sel knownAsSymbol]) ifTrue:[
b78bea6fd220 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6678
diff changeset
  5409
        ^ sel asSymbol     
b78bea6fd220 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6678
diff changeset
  5410
    ].
b78bea6fd220 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6678
diff changeset
  5411
2813
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5412
    t := Parser selectorInExpression:sel.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5413
    t notNil ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5414
        sel := t
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5415
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5416
    (sel = s or:[sel isNil or:[t == #>>]]) ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5417
        "oops - thats probably not what we want here ..."
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5418
        self extractClassAndSelectorFrom:s into:[:c :s :m |
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5419
            sel := s
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5420
        ]
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5421
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5422
    ^ sel
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5423
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5424
    "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5425
     self extractSelectorFrom:'at:put:'      
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5426
     self extractSelectorFrom:'#at:put:'                       
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5427
     self extractSelectorFrom:'at:something put:someValue'     
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5428
     self extractSelectorFrom:'self at:something put:someValue'
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5429
     self extractSelectorFrom:'(self at:something put:someValue)' 
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5430
     self extractSelectorFrom:'[self at:something put:someValue] value' 
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5431
     self extractSelectorFrom:'Array>>at:put:' 
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5432
    "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5433
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5434
    "Created: / 6.2.2000 / 00:49:44 / cg"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5435
    "Modified: / 6.2.2000 / 00:57:08 / cg"
6560
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5436
!
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5437
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5438
resourceEditorClassFor:aResource 
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5439
    "resources are from a methods resource-info;
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5440
     return an appropriate editor class."
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5441
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5442
    (aResource == #canvas) ifTrue:[
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5443
        ^ UIPainter
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5444
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5445
    (aResource == #menu) ifTrue:[
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5446
        ^ MenuEditor
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5447
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5448
    ((aResource == #image) or:[aResource == #fileImage]) ifTrue:[
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5449
        ^ ImageEditor
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5450
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5451
    (aResource == #help) ifTrue:[
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5452
        ^ UIHelpTool
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5453
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5454
    (aResource == #tableColumns) ifTrue:[
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5455
        ^ DataSetBuilder
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5456
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5457
    (aResource == #tabList) ifTrue:[
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5458
        ^ TabListEditor
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5459
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5460
    (aResource == #hierarchicalList) ifTrue:[
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5461
        ^ HierarchicalListEditor
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5462
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5463
    ^ nil
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5464
!
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5465
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5466
resourceEditorClassForResources:resources
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5467
    "resources are from a methods resource-info;
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5468
     return an appropriate editor class."
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5469
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5470
    resources keysDo:[:eachResource |
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5471
        |editor|
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5472
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5473
        editor := self resourceEditorClassFor:eachResource.
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5474
        editor notNil ifTrue:[ ^ editor].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5475
    ].
80370d5aa971 share code between old and new browser
Claus Gittinger <cg@exept.de>
parents: 6552
diff changeset
  5476
    ^ nil
2813
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5477
! !
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  5478
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5479
!SystemBrowser::BrowserHistoryEntry methodsFor:'accessing'!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5480
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5481
className
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5482
    "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
  5483
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5484
    ^ className
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5485
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5486
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5487
className:something
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5488
    "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
  5489
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5490
    className := something.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5491
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5492
3151
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  5493
className:classNameArg meta:metaArg selector:selectorArg
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  5494
    className := classNameArg.
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  5495
    meta := metaArg.
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  5496
    selector := selectorArg.
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  5497
!
910fd5bcfb6e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3131
diff changeset
  5498
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5499
meta
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5500
    "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
  5501
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5502
    ^ meta
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5503
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5504
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5505
meta:something
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5506
    "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
  5507
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5508
    meta := something.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5509
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5510
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5511
selector
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5512
    "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
  5513
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5514
    ^ selector
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5515
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5516
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5517
selector:something
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5518
    "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
  5519
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5520
    selector := something.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5521
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5522
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5523
theClass
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5524
    ^ Smalltalk at:className asSymbol
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5525
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5526
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5527
!SystemBrowser::BrowserHistoryEntry methodsFor:'comparing'!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5528
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5529
= anEntry
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5530
    ^ className = anEntry className
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5531
      and:[meta = anEntry meta
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5532
      and:[selector = anEntry selector]]
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5533
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  5534
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  5535
!SystemBrowser class methodsFor:'documentation'!
93
claus
parents: 90
diff changeset
  5536
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5537
version
7524
0257265ae6b7 do not make dependent on the history-list;
Claus Gittinger <cg@exept.de>
parents: 7395
diff changeset
  5538
    ^ '$Header: /cvs/stx/stx/libtool/SystemBrowser.st,v 1.243 2006-11-20 11:33:38 cg Exp $'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  5539
! !
4112
ed7af6707ad7 emphasisForChangedCode
tm
parents: 3834
diff changeset
  5540
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  5541
SystemBrowser initialize!