SystemBrowser.st
author Claus Gittinger <cg@exept.de>
Mon, 10 Sep 2001 11:05:55 +0200
changeset 3131 883d7b34bb86
parent 3125 ed9aa14fe97b
child 3151 910fd5bcfb6e
permissions -rw-r--r--
history stuff refactored (common between old and new browser)
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
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
     3
	      All Rights Reserved
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     4
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     5
 This software is furnished under a license and may be used
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    10
 hereby transferred.
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    11
"
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    12
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
    13
"{ Package: 'stx:libtool' }"
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
    14
85
d9713a3ca092 *** empty log message ***
claus
parents: 77
diff changeset
    15
ApplicationModel subclass:#SystemBrowser
2631
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
    16
	instanceVariableNames:''
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    17
	classVariableNames:'CheckForInstancesWhenRemovingClasses Icons ClassHistory'
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
    18
	poolDictionaries:''
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
    19
	category:'Interface-Browsers'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    20
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    21
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    22
Object subclass:#BrowserHistoryEntry
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    23
	instanceVariableNames:'className meta selector'
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    24
	classVariableNames:''
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    25
	poolDictionaries:''
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    26
	privateIn:SystemBrowser
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    27
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
    28
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
    29
!SystemBrowser class methodsFor:'documentation'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    30
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    31
copyright
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 (c) 1989 by Claus Gittinger
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    34
	      All Rights Reserved
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    35
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    36
 This software is furnished under a license and may be used
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    37
 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
    38
 inclusion of the above copyright notice.   This software may not
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    39
 be provided or otherwise made available to, or used by, any
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    40
 other person.  No title to or ownership of the software is
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    41
 hereby transferred.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    42
"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    43
!
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
documentation
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
    this class implements all kinds of class browsers.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    48
    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
    49
    startup messages, to launch special browsers.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    50
    See the categories 'startup' and 'special search startup' in the classes
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    51
    protocol.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    52
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    53
    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
    54
    for how to use the browser.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    55
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    56
    written winter 89 by claus.
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
    Notice: SystemBrowser is currently being rewritten to be an instance
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    59
    of ApplicationModel - this transition is not yet complete and you see
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    60
    here an intermediate version. The instance variables defined here are NOT
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    61
    currently used - instead, everything is really done in the BrowserView
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    62
    which (currently) keeps the real state of the browser.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    63
    This will certainly change ...
508
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    64
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    65
    [author:]
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    66
        Claus Gittinger
8d2ab732fca5 documentation
Claus Gittinger <cg@exept.de>
parents: 504
diff changeset
    67
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    68
"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    69
! !
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    70
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
    71
!SystemBrowser class methodsFor:'initialization'!
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    72
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    73
initialize
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    74
    "Browser configuration;
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    75
     (values can be changed from your private startup file)"
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
    76
254
8258536e5bcf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 215
diff changeset
    77
"/    self classResources.
85
d9713a3ca092 *** empty log message ***
claus
parents: 77
diff changeset
    78
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    79
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    80
     setting this to false, the removeClass function will remove
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    81
     classes WITHOUT checking for instances. Otherwise,
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    82
     it will check and let you confirm in case there are instances.
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    83
     Checking for instances may be a bit time consuming, though.
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    84
     The default is true - therefore, it will check
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    85
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    86
    CheckForInstancesWhenRemovingClasses := true
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    87
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    88
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    89
     CheckForInstancesWhenRemovingClasses := true
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    90
     CheckForInstancesWhenRemovingClasses := false
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    91
85
d9713a3ca092 *** empty log message ***
claus
parents: 77
diff changeset
    92
     SystemBrowser initialize
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    93
    "
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    94
! !
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
    95
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
    96
!SystemBrowser class methodsFor:'instance creation'!
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
    97
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    98
open
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
    99
    "launch a standard browser"
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
   100
2631
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   101
    self == SystemBrowser ifFalse:[
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   102
        ^ super open
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   103
    ].
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   104
105
claus
parents: 100
diff changeset
   105
    ^ self openOnDevice:(Screen current) 
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
   106
93
claus
parents: 90
diff changeset
   107
    "
claus
parents: 90
diff changeset
   108
     SystemBrowser open
claus
parents: 90
diff changeset
   109
    "
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   110
!
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   111
523
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   112
openInClass:aClass
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   113
    "launch a standard browser which immediately switches
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   114
     to aClass"
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   115
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   116
    ^ self openInClass:aClass selector:nil
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
    "
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   119
     SystemBrowser openInClass:Object
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   120
    "
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   121
db2c1ad12524 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 508
diff changeset
   122
    "Created: 30.4.1996 / 14:43:45 / cg"
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
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   125
openInClass:aClass selector:aSelector
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   126
    "launch a standard browser which immediately switches
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   127
     to aClass>>aSelector."
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   128
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   129
    |brwsr cls|
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   130
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   131
    brwsr := self openOnDevice:(Screen current).
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   132
    brwsr waitUntilVisible.
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   133
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   134
    cls := aClass.
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   135
    cls notNil ifTrue:[
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   136
        cls isMeta ifTrue:[
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   137
            cls := aClass soleInstance
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   138
        ].
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   139
        aClass isMeta ifTrue:[
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   140
            brwsr instanceProtocol:false
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   141
        ].
1931
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   142
        aClass isJavaClass ifTrue:[
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   143
            brwsr switchToClassNamed:aClass fullName. 
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   144
        ] ifFalse:[
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   145
            brwsr switchToClassNamed:aClass name. 
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   146
        ].
1681
b209bdfbf762 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1620
diff changeset
   147
        brwsr classSelectionChanged.
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   148
        aSelector notNil ifTrue:[
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   149
            brwsr switchToMethodNamed:aSelector.
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   150
        ]
194
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   151
    ].
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   152
    ^ brwsr
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   153
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
     SystemBrowser openInClass:Object selector:#at:put:
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   156
     SystemBrowser openInClass:Object selector:nil
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   157
     SystemBrowser openInClass:nil selector:nil
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   158
    "
93155825c7a0 added openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 165
diff changeset
   159
1561
102b90f99e58 avoid double-redraw
Claus Gittinger <cg@exept.de>
parents: 1367
diff changeset
   160
    "Created: / 22.11.1995 / 21:04:50 / cg"
1931
03de5c5f4402 care for javaClass in #openInClass:selector:
Claus Gittinger <cg@exept.de>
parents: 1919
diff changeset
   161
    "Modified: / 14.10.1998 / 15:31:52 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   162
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   163
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   164
openOnDevice:aDisplay
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   165
    "launch a standard browser on another display."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   166
2631
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   167
    self == SystemBrowser ifFalse:[
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   168
        ^ super openOnDevice:aDisplay
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   169
    ].
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   170
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   171
    ^ self newWithLabel:(self classResources string:'System Browser')
2631
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   172
             setupBlock:[:browser | browser setupForAll]
bd18074649ed *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2623
diff changeset
   173
              onDevice:aDisplay
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   174
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   175
    "|d|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   176
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   177
     d := XWorkstation new initializeFor:'porty:0'.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   178
     d startDispatch.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   179
     SystemBrowser openOnDevice:d
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   180
    "
2818
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   181
!
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   182
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   183
openOnSnapShotImage:anImageFileName
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   184
    |environment browser|
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   185
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   186
    environment := SnapShotImage for:anImageFileName.
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   187
    browser := self 
2824
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
   188
                newWithLabel:(self classResources string:'Image Browser - %1' with:anImageFileName asFilename baseName)
2818
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   189
                setupBlock:[:browser | browser environment:environment.
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   190
                                       browser setupForAll]
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   191
                onDevice:(Screen current).
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   192
27ff722f6c45 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2813
diff changeset
   193
    "
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
   194
     SystemBrowser openOnSnapShotImage:('/tmp/stmeas.img')
2824
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
   195
    "
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
   196
! !
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   197
2551
53ad33c2879a category renamining
Claus Gittinger <cg@exept.de>
parents: 2484
diff changeset
   198
!SystemBrowser class methodsFor:'Compatibility - ST80'!
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   199
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   200
newOnClass:aClass
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   201
    ^ self browseClass:aClass
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   202
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   203
    "Created: / 27.10.1997 / 20:10:39 / cg"
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   204
! !
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
   205
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   206
!SystemBrowser class methodsFor:'accessing - history'!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   207
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   208
addToHistory:aClass selector:aSelectorOrNil
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   209
    |newEntry|
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   210
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   211
    (newEntry := self historyEntryForClass:aClass selector:aSelectorOrNil) isNil ifTrue:[^ self].
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   212
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   213
    ClassHistory isNil ifTrue:[
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   214
        ClassHistory := OrderedCollection new
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   215
    ].
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   216
    ClassHistory := ClassHistory select:[:entry | entry className ~= newEntry className].
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   217
    ClassHistory addFirst:newEntry.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   218
    ClassHistory size > self visitedHistoryMaxSize ifTrue:[
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   219
        ClassHistory removeLast
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   220
    ].
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   221
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   222
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   223
checkClassHistory
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   224
    "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
   225
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   226
    "/ 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
   227
    self classHistory reverseDo:[:histEntry|
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   228
        (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
   229
        ifFalse:[
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   230
            self classHistory remove: histEntry
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   231
        ]
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   232
    ]
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   233
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   234
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   235
classHistory
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   236
    ^ ClassHistory ? #()
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   237
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   238
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   239
classHistory:newCollection
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   240
    ClassHistory := newCollection
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   241
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   242
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   243
emptyClassHistory
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   244
    "removes all class history entries"
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   245
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   246
    self classHistory removeAll
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   247
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   248
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   249
historyEntryForClass:aClass selector:aSelectorOrNil
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   250
    |newEntry meta cls|
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
    aClass isBehavior ifFalse:[^ nil].
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   253
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   254
    newEntry := BrowserHistoryEntry new.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   255
    newEntry meta:(meta := aClass isMeta).
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   256
    meta ifTrue:[
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   257
        cls := aClass theNonMetaclass.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   258
    ] ifFalse:[
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   259
        cls := aClass
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   260
    ].
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   261
    newEntry className:cls name.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   262
    newEntry selector:aSelectorOrNil.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   263
    ^ newEntry
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   264
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   265
    "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
   266
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   267
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   268
!SystemBrowser class methodsFor:'defaults'!
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
classHistoryMaxLevels
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   271
    ^ 3
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   272
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   273
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   274
classHistoryMaxSize
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   275
    ^ 15
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   276
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   277
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   278
visitedHistoryMaxSize
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   279
    "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
   280
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
   281
    ^ 15
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
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   284
!SystemBrowser class methodsFor:'image specs'!
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   285
2748
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   286
abstractMethodIcon
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   287
    <resource: #programImage>
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   288
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   289
    ^ self padLockGrayMiniIcon
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   290
!
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   291
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   292
canvasIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   293
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   294
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   295
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   296
    "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
   297
     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
   298
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   299
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   300
     ImageEditor openOnClass:self andSelector:#canvasIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   301
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   302
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   303
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   304
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   305
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   306
        constantNamed:#'SystemBrowser canvasIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   307
        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
   308
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   309
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   310
defaultIcon
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   311
    "This resource specification was automatically generated
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   312
     by the ImageEditor of ST/X."
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   313
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   314
    "Do not manually edit this!! If it is corrupted,
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   315
     the ImageEditor may not be able to read the specification."
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   316
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   317
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   318
     self defaultIcon inspect
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   319
     ImageEditor openOnClass:self andSelector:#defaultIcon
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   320
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   321
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   322
    <resource: #image>
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   323
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   324
    ^Icon
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   325
        constantNamed:#'SystemBrowser defaultIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   326
        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
   327
@@@@@@@@@@@@@@@@@@@FY&Y&Y&X0@@@@@@@@@@YDQDQDQB@@@@@@@@@@A$QDQDQDH@@@@@@@@@@CH"H"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   328
@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@@@@@@@Y&Y&Y&X0@@@@A H"H"A!!DQDQDR@@@@@@@@@@@CH"H"H"H@@@@@H@@@@@@@@@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   329
@@@@@@@ @@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@@@@@@@Y&Y&Y&X0@@@@A H"H"A%UUUUUR@@@@@@@@@@@CH"H"H"H@@@@@@@@@@@@@@@@@@@@@@@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   330
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@@B@B@ @@H@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   331
@@@@@@@@@@@@@@@@@@@@@@@@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:'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   332
??0@@O?<@@C??@@@??0@@O?<@@C??@@@@ @@@@H@@@@B@?? A0O?8@_??>@G@?? @ O?8@H@@@@B@?? A0O?8@_??>@G@?? @@O?8@@@@@@@@@@@9O\7\IRT
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   333
QDBD%DQ@!!OH''HHRQEABT$QPP99]7\@@a') ; yourself); yourself]
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   334
!
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   335
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   336
fileImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   337
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   338
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   339
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   340
    "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
   341
     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
   342
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   343
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   344
     self fileImageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   345
     ImageEditor openOnClass:self andSelector:#fileImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   346
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   347
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   348
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   349
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   350
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   351
        constantNamed:#'SystemBrowser fileImageIcon'
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   352
        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
   353
!
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   354
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   355
greenLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   356
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   357
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   358
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   359
    "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
   360
     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
   361
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   362
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   363
     self greenLockIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   364
     ImageEditor openOnClass:self andSelector:#greenLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   365
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   366
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   367
    ^ self padLockGreenMiniIcon
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   368
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   369
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   370
helpIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   371
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   372
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   373
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   374
    "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
   375
     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
   376
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   377
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   378
     self helpIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   379
     ImageEditor openOnClass:self andSelector:#helpIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   380
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   381
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   382
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   383
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   384
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   385
        constantNamed:#'SystemBrowser helpIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   386
        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
   387
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   388
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   389
hierarchicalListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   390
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   391
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   392
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   393
    "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
   394
     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
   395
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   396
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   397
     ImageEditor openOnClass:self andSelector:#hierarchicalListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   398
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   399
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   400
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   401
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   402
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   403
        constantNamed:#'SystemBrowser hierarchicalListIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   404
        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
   405
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   406
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   407
imageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   408
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   409
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   410
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   411
    "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
   412
     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
   413
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   414
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   415
     self imageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   416
     ImageEditor openOnClass:self andSelector:#imageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   417
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   418
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   419
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   420
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   421
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   422
        constantNamed:#'SystemBrowser imageIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   423
        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
   424
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   425
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   426
menuIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   427
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   428
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   429
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   430
    "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
   431
     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
   432
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   433
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   434
     self menuIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   435
     ImageEditor openOnClass:self andSelector:#menuIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   436
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   437
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   438
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   439
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   440
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   441
        constantNamed:#'SystemBrowser menuIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   442
        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
   443
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   444
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   445
nameSpaceIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   446
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   447
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   448
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   449
    "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
   450
     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
   451
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   452
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   453
     self nameSpaceIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   454
     ImageEditor openOnClass:self andSelector:#nameSpaceIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   455
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   456
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   457
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   458
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   459
    ^Icon
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   460
        constantNamed:#'SystemBrowser class nameSpaceIcon'
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   461
        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
   462
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   463
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   464
packageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   465
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   466
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   467
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   468
    "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
   469
     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
   470
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   471
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   472
     self packageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   473
     ImageEditor openOnClass:self andSelector:#packageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   474
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   475
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   476
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   477
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   478
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   479
        constantNamed:#'SystemBrowser packageIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   480
        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
   481
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   482
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   483
padLockBlueMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   484
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   485
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   486
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   487
    "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
   488
     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
   489
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   490
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   491
     self padLockBlueMiniIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   492
     ImageEditor openOnClass:self andSelector:#padLockBlueMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   493
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   494
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   495
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   496
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   497
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   498
        constantNamed:#'SystemBrowser padLockBlueMiniIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   499
        ifAbsentPut:[(Depth2Image new) width: 12; height: 12; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?0C??F$?<TEO<S1O<@@O2**#2UUS2TES2VES2UUS<@@O????') ; colorMapFromArray:#[0 0 0 128 128 255 212 212 255 255 255 255]; mask:((Depth1Image new) width: 12; height: 12; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   500
C0@_ C?@N\@?0G? _>A?8G? _>@?0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   501
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   502
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   503
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   504
padLockGrayMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   505
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   506
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   507
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   508
    "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
   509
     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
   510
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   511
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   512
     self padLockGrayMiniIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   513
     ImageEditor openOnClass:self andSelector:#padLockGrayMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   514
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   515
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   516
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   517
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   518
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   519
        constantNamed:#'SystemBrowser padLockGrayMiniIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   520
        ifAbsentPut:[(Depth2Image new) width: 12; height: 12; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?0C??F$?<TEO<S1O<@@O2**#2UUS2TES2VES2UUS<@@O????') ; colorMapFromArray:#[0 0 0 128 128 128 212 212 212 255 255 255]; mask:((Depth1Image new) width: 12; height: 12; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   521
C0@_ C?@N\@?0G? _>A?8G? _>@?0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   522
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   523
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   524
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   525
padLockGreenMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   526
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   527
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   528
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   529
    "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
   530
     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
   531
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   532
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   533
     self padLockGreenMiniIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   534
     ImageEditor openOnClass:self andSelector:#padLockGreenMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   535
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   536
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   537
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   538
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   539
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   540
        constantNamed:#'SystemBrowser padLockGreenMiniIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   541
        ifAbsentPut:[(Depth2Image new) width: 12; height: 12; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?0C??F$?<TEO<S1O<@@O2**#2UUS2TES2VES2UUS<@@O????') ; colorMapFromArray:#[0 0 0 128 255 128 212 255 212 255 255 255]; mask:((Depth1Image new) width: 12; height: 12; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   542
C0@_ C?@N\@?0G? _>A?8G? _>@?0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   543
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   544
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   545
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   546
padLockRedMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   547
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   548
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   549
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   550
    "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
   551
     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
   552
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   553
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   554
     self padLockRedMiniIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   555
     ImageEditor openOnClass:self andSelector:#padLockRedMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   556
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   557
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   558
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   559
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   560
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   561
        constantNamed:#'SystemBrowser padLockRedMiniIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   562
        ifAbsentPut:[(Depth2Image new) width: 12; height: 12; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?0C??F$?<TEO<S1O<@@O2**#2UUS2TES2VES2UUS<@@O????') ; colorMapFromArray:#[0 0 0 255 128 128 255 212 212 255 255 255]; mask:((Depth1Image new) width: 12; height: 12; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   563
C0@_ C?@N\@?0G? _>A?8G? _>@?0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   564
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   565
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   566
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   567
privateMethodIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   568
    <resource: #programImage>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   569
2748
80829f5a575d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2743
diff changeset
   570
    ^ self padLockRedMiniIcon
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   571
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   572
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   573
programImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   574
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   575
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   576
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   577
    "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
   578
     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
   579
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   580
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   581
     self programImageIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   582
     ImageEditor openOnClass:self andSelector:#programImageIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   583
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   584
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   585
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   586
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   587
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   588
        constantNamed:#'SystemBrowser programImageIcon'
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   589
        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
   590
!
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   591
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   592
programMenuIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   593
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   594
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   595
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   596
    "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
   597
     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
   598
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   599
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   600
     self programMenuIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   601
     ImageEditor openOnClass:self andSelector:#programMenuIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   602
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   603
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   604
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   605
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   606
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   607
        constantNamed:#'SystemBrowser programMenuIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   608
        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
   609
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   610
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   611
protectedMethodIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   612
    <resource: #programImage>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   613
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   614
    ^ self padLockGreenMiniIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   615
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   616
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   617
redLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   618
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   619
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   620
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   621
    "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
   622
     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
   623
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   624
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   625
     self redLockIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   626
     ImageEditor openOnClass:self andSelector:#redLockIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   627
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   628
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   629
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   630
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   631
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   632
        constantNamed:#'SystemBrowser redLockIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   633
        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
   634
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   635
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   636
stopIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   637
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   638
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   639
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   640
    "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
   641
     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
   642
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   643
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   644
     self stopIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   645
     ImageEditor openOnClass:self andSelector:#stopIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   646
    "
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
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   649
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   650
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   651
        constantNamed:#'SystemBrowser stopIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   652
        ifAbsentPut:[(Depth1Image new) width: 13; height: 11; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@N@@8@C @N@@P@@@@N@@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]
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   653
!
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
tabListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   656
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   657
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   658
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   659
    "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
   660
     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
   661
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   662
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   663
     self tabListIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   664
     ImageEditor openOnClass:self andSelector:#tabListIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   665
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   666
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   667
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   668
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   669
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   670
        constantNamed:#'SystemBrowser tabListIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   671
        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
   672
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   673
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   674
tableColumnsIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   675
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   676
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   677
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   678
    "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
   679
     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
   680
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   681
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   682
     self tableColumnsIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   683
     ImageEditor openOnClass:self andSelector:#tableColumnsIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   684
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   685
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   686
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   687
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   688
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   689
        constantNamed:#'SystemBrowser tableColumnsIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   690
        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
   691
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   692
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   693
timeIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   694
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   695
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   696
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   697
    "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
   698
     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
   699
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   700
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   701
     self timeIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   702
     ImageEditor openOnClass:self andSelector:#timeIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   703
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   704
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   705
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   706
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   707
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   708
        constantNamed:#'SystemBrowser timeIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   709
        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
   710
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   711
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   712
traceIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   713
    "This resource specification was automatically generated
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   714
     by the ImageEditor of ST/X."
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   715
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   716
    "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
   717
     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
   718
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   719
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   720
     self traceIcon inspect
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   721
     ImageEditor openOnClass:self andSelector:#traceIcon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   722
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   723
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   724
    <resource: #image>
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   725
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   726
    ^Icon
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   727
        constantNamed:#'SystemBrowser traceIcon'
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
   728
        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
   729
!
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   730
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   731
visualStartableClassIcon
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   732
    "This resource specification was automatically generated
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   733
     by the ImageEditor of ST/X."
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   734
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   735
    "Do not manually edit this!! If it is corrupted,
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   736
     the ImageEditor may not be able to read the specification."
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   737
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   738
    "
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   739
     self visualStartableClassIcon inspect
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   740
     ImageEditor openOnClass:self andSelector:#visualStartableClassIcon
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   741
    "
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   742
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   743
    <resource: #image>
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   744
36dee112c780 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2828
diff changeset
   745
    ^Icon
2892
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   746
        constantNamed:#'SystemBrowser class visualStartableClassIcon'
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   747
        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]
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   748
!
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   749
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   750
watchIcon
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   751
    "This resource specification was automatically generated
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   752
     by the ImageEditor of ST/X."
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   753
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   754
    "Do not manually edit this!! If it is corrupted,
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   755
     the ImageEditor may not be able to read the specification."
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   756
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   757
    "
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   758
     self watchIcon inspect
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   759
     ImageEditor openOnClass:self andSelector:#watchIcon
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   760
    "
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   761
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   762
    <resource: #image>
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   763
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   764
    ^Icon
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   765
        constantNamed:#'SystemBrowser class watchIcon'
1acef635a284 icons use less colors
Claus Gittinger <cg@exept.de>
parents: 2882
diff changeset
   766
        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]
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   767
! !
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
   768
1203
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   769
!SystemBrowser class methodsFor:'interface specs'!
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   770
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   771
metaSpec
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   772
        "UIPainter new openOnClass: self andSelector: #metaSpec"
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   773
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   774
        <resource: #canvas>
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   775
        ^#(#FullSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   776
                #window: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   777
                #(#WindowSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   778
                        #label: 'Unlabeled Canvas' 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   779
                        #bounds: #(#Rectangle 27 249 325 334 ) ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   780
                #component: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   781
                #(#SpecCollection 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   782
                        #collection: #(
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   783
                                #(#RadioButtonSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   784
                                        #layout: #(#LayoutFrame 0 0 4 0 -1 0.575 20 0 ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   785
                                        #name: #instanceSwitch 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   786
                                        #model: #metaHolder 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   787
                                        #callbacksSpec: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   788
                                        #(#UIEventCallbackSubSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   789
                                                #requestValueChangeSelector: #changeRequest ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   790
                                        #label: 'instance' 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   791
                                        #select: false ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   792
                                #(#RadioButtonSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   793
                                        #layout: #(#LayoutFrame 1 0.575 4 0 -1 1 20 0 ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   794
                                        #name: #classSwitch 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   795
                                        #model: #metaHolder 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   796
                                        #callbacksSpec: 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   797
                                        #(#UIEventCallbackSubSpec 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   798
                                                #requestValueChangeSelector: #changeRequest ) 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   799
                                        #label: 'class' 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   800
                                        #select: true ) ) ) )
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   801
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   802
    "Created: / 30.10.1997 / 19:07:29 / cg"
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   803
!
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
   804
1203
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   805
methodMoveDialogSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   806
    "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
   807
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   808
    "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
   809
     handle the specification if its corrupted."
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   810
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   811
    "
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   812
     UIPainter new openOnClass:SystemBrowser andSelector:#methodMoveDialogSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   813
     SystemBrowser new openDialogInterface:#methodMoveDialogSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   814
    "
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   815
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   816
    <resource: #canvas>
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   817
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   818
    ^
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   819
     
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   820
       #(#FullSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   821
          #'window:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   822
           #(#WindowSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   823
              #'name:' 'uIPainterView'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   824
              #'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
   825
              #'label:' 'move method'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   826
              #'bounds:' #(#Rectangle 0 0 279 118)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   827
          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   828
          #'component:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   829
           #(#SpecCollection
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   830
              #'collection:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   831
               #(
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   832
                 #(#HorizontalPanelViewSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   833
                    #'name:' 'horizontalPanelView'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   834
                    #'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
   835
                    #'component:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   836
                     #(#SpecCollection
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   837
                        #'collection:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   838
                         #(
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   839
                           #(#ActionButtonSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   840
                              #'name:' 'actionButton2'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   841
                              #'label:' 'cancel'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   842
                              #'tabable:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   843
                              #'model:' #cancel
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   844
                              #'extent:' #(#Point 133 27)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   845
                          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   846
                           #(#ActionButtonSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   847
                              #'name:' 'actionButton1'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   848
                              #'label:' 'move'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   849
                              #'tabable:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   850
                              #'isDefault:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   851
                              #'model:' #accept
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   852
                              #'extent:' #(#Point 134 27)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   853
                          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   854
                        )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   855
                    )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   856
                    #'level:' 0
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   857
                    #'horizontalLayout:' #fitSpace
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   858
                    #'verticalLayout:' #center
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   859
                    #'horizontalSpace:' 4
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   860
                    #'verticalSpace:' 4
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   861
                )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   862
                 #(#LabelSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   863
                    #'name:' 'label'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   864
                    #'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
   865
                    #'label:' 'move current method to which class:'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   866
                    #'style:' 
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   867
                     #(#Font
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   868
                        'helvetica' 'medium'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   869
                        'roman' 12
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   870
                    )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   871
                    #'foregroundColor:' #(#Color 0.0 0.0 0.0)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   872
                    #'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   873
                    #'adjust:' #left
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   874
                )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   875
                 #(#ComboBoxSpec
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   876
                    #'name:' 'comboBox1'
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   877
                    #'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
   878
                    #'tabable:' true
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   879
                    #'model:' #className
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   880
                    #'comboList:' #classList
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   881
                )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   882
              )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   883
          )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   884
      )
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   885
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   886
    "Created: 25.6.1997 / 13:45:20 / cg"
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   887
    "Modified: 25.6.1997 / 13:46:44 / cg"
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   888
! !
ade0bcc06188 preps to use UISpecs
Claus Gittinger <cg@exept.de>
parents: 1190
diff changeset
   889
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   890
!SystemBrowser class methodsFor:'private helpers'!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   891
2880
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   892
askForPackageChangeFrom:oldPkg to:newPkg
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   893
    |answer oldVsNew box notAgain chk|
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   894
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   895
    box := OptionBox 
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   896
                title:
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   897
('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
   898
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
   899
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
   900
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
   901
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
   902
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
   903
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
   904
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   905
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
   906
                        bindWith:(oldPkg allBold)
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   907
                            with:(newPkg allBold))
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   908
                numberOfOptions:3.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   909
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   910
    box buttonTitles:#('cancel' 'keep' 'continue').
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   911
    box defaultButtonIndex:3. 
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   912
    box action:[:n | answer := #(#cancel #keep #continue) at:n].
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   913
    box label:'Method redefinition'; form:(WarningBox iconBitmap).
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   914
    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
   915
    box addVerticalSpace:10.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   916
    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
   917
    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
   918
    box resize.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   919
    box showAtPointer.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   920
    box destroy.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   921
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   922
    (answer ~~ #cancel) ifTrue:[
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   923
        notAgain value ifTrue:[
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   924
            Class catchMethodRedefinitions:false.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   925
        ].
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   926
    ].
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   927
    ^ answer.
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   928
!
ef6fcc02a924 give user a chance to suppress the annoying package-change-keep
Claus Gittinger <cg@exept.de>
parents: 2846
diff changeset
   929
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   930
showNoneFound
1620
51341ec8360b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1573
diff changeset
   931
    super warn:(self classResources string:'None found.').
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   932
!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   933
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   934
showNoneFound:what
1620
51341ec8360b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1573
diff changeset
   935
    |rs|
51341ec8360b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1573
diff changeset
   936
51341ec8360b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1573
diff changeset
   937
    rs := self classResources.
2398
8cefc3c21f40 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2295
diff changeset
   938
    super information:((rs string:what) , (rs string:'...\\... none found.')) withCRs.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   939
! !
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   940
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   941
!SystemBrowser class methodsFor:'private instance creation'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   942
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   943
newWithLabel:aString setupBlock:aBlock
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   944
    "common helper method for all creation methods"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   945
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   946
    ^ self newWithLabel:aString setupBlock:aBlock onDevice:Screen current
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   947
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   948
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   949
newWithLabel:aString setupBlock:aBlock onDevice:aWorkstation
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   950
    "common helper method for all creation methods"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   951
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   952
    |newBrowser|
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
   953
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   954
    newBrowser := BrowserView onDevice:aWorkstation.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   955
    newBrowser title:aString.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   956
    aBlock value:newBrowser.
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
   957
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   958
    newBrowser open.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   959
    ^ newBrowser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   960
!
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
   961
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   962
newWithLabel:aString setupSelector:aSymbol arg:arg
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   963
    "common helper method for all creation methods"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   964
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   965
    ^ self newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:Screen current 
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   966
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
   967
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   968
newWithLabel:aString setupSelector:aSymbol arg:arg onDevice:aWorkstation
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   969
    "common helper method for all creation methods"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   970
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   971
    |newBrowser|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
   972
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   973
    newBrowser := BrowserView onDevice:aWorkstation.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   974
    newBrowser title:aString.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   975
    newBrowser perform:aSymbol with:arg.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   976
    newBrowser open.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   977
    ^ newBrowser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   978
! !
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   979
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
   980
!SystemBrowser class methodsFor:'special search startup'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
   981
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   982
allCallsOn:aSelectorString
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   983
    "return a collection of methods which send aSelector."
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   984
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
   985
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
   986
        allCallsOn:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
   987
        in:(Smalltalk allClasses)
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   988
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   989
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   990
     SystemBrowser allCallsOn:#at:put:
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   991
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   992
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   993
    "Created: 24.1.1997 / 19:42:57 / cg"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   994
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   995
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   996
allCallsOn:aSelectorString in:aCollectionOfClasses
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   997
    "return a collection of methods which send aSelector.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   998
     Methods from classes in aCollectionOfClasses are searched only."
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
   999
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1000
    ^ self
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1001
        allCallsOn:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1002
        in:aCollectionOfClasses 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1003
        ignoreCase:false
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1004
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1005
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1006
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1007
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
  1008
    "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
  1009
     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
  1010
2901
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1011
    |sel searchBlock selMatch lcString  quickMatch classesSearched|
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1012
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1013
    classesSearched := aCollectionOfClasses.
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1014
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1015
    ((aSelectorString ~= '*') 
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1016
     and:[(aSelectorString includesMatchCharacters or:[ignoreCase])]) ifTrue:[
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1017
        "/ a matchString - need string matching procedure
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1018
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1019
        ignoreCase ifTrue:[
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1020
            lcString := aSelectorString asLowercase.
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1021
        ] ifFalse:[
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1022
            lcString := aSelectorString.
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1023
        ].
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1024
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1025
        quickMatch := aSelectorString.
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1026
        (quickMatch startsWith:'*') ifTrue:[
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1027
            quickMatch := quickMatch copyFrom:2
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1028
        ].
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1029
        (quickMatch endsWith:'*') ifTrue:[
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1030
            quickMatch := quickMatch copyWithoutLast:1
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1031
        ].
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1032
        (quickMatch includes:$:) ifTrue:[
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1033
            quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1.
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1034
        ].
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1035
        searchBlock := [:class :method :s |
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1036
                            |src|
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1037
2770
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1038
                            (ignoreCase not and:[quickMatch includesMatchCharacters not]) ifTrue:[
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1039
                                "/ do quick search first
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1040
                                method isLazyMethod ifTrue:[
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1041
                                    src := method source.
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1042
                                    (src notNil 
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1043
                                    and:[src includesString:quickMatch]) ifTrue:[
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1044
                                        method makeRealMethod.
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1045
                                        (method literalsDetect:[:aLiteral|
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1046
                                            (aLiteral isMemberOf:Symbol) 
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1047
                                              and:[(lcString includesString:quickMatch)
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1048
                                              and:[(lcString match:aLiteral)]]
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1049
                                        ] ifNone:nil) notNil
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1050
                                    ] ifFalse:[
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1051
                                        false
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1052
                                    ]
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1053
                                ] ifFalse:[
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1054
                                    (method literalsDetect:[:aLiteral|
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1055
                                        (aLiteral isMemberOf:Symbol) 
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1056
                                          and:[(lcString includesString:quickMatch)
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1057
                                          and:[(lcString match:aLiteral)]]
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1058
                                    ] ifNone:nil) notNil
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1059
                                ]
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1060
                            ] ifFalse:[
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1061
                                "/ expensive search
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1062
                                method isLazyMethod ifTrue:[
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1063
                                    src := method source.
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1064
                                    (src notNil and:[src includesMatchString:aSelectorString]) ifTrue:[
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1065
                                        method makeRealMethod.
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1066
                                        (method literalsDetect:[:aLiteral|
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1067
                                            (aLiteral isMemberOf:Symbol) 
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1068
                                              and:[(ignoreCase and:[lcString match:aLiteral asLowercase])
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1069
                                                   or:[ignoreCase not and:[lcString match:aLiteral]]]
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1070
                                        ] ifNone:nil) notNil
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1071
                                    ] ifFalse:[
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1072
                                        false
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1073
                                    ]
da09dbcf45f8 mutch faster searching for senders of *foo*
Claus Gittinger <cg@exept.de>
parents: 2769
diff changeset
  1074
                                ] ifFalse:[
1143
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1075
                                    (method literalsDetect:[:aLiteral|
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1076
                                        (aLiteral isMemberOf:Symbol) 
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1077
                                          and:[(ignoreCase and:[lcString match:aLiteral asLowercase])
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1078
                                               or:[ignoreCase not and:[lcString match:aLiteral]]]
1143
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1079
                                    ] ifNone:nil) notNil
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1080
                                ]
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1081
                            ]
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1082
                       ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1083
    ] ifFalse:[
1018
7c620027fa4d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 996
diff changeset
  1084
        (aSelectorString = '*') ifTrue:[
7c620027fa4d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 996
diff changeset
  1085
            searchBlock := [:class :method :s | true].
7c620027fa4d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 996
diff changeset
  1086
        ] ifFalse:[
7c620027fa4d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 996
diff changeset
  1087
            "/ no matchString - can do it much faster
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1088
1018
7c620027fa4d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 996
diff changeset
  1089
            sel := aSelectorString asSymbolIfInterned.
7c620027fa4d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 996
diff changeset
  1090
            sel isNil ifTrue:[
7c620027fa4d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 996
diff changeset
  1091
                ^ nil     "/ none
7c620027fa4d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 996
diff changeset
  1092
            ].
2901
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1093
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1094
            "/ exclude javaClasses, if selector cannot be a valid java-selector
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1095
            (sel includes:$() ifFalse:[
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1096
                classesSearched := classesSearched select:[:eachClass | eachClass theNonMetaclass isJavaClass not].
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1097
            ].
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1098
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1099
            quickMatch := sel.
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1100
            (quickMatch includes:$:) ifTrue:[
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1101
                quickMatch := quickMatch copyTo:(quickMatch indexOf:$:)-1.
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1102
            ].
2208
e077aa992f7a check for nil source in #allCallsOn: (for methods where src in not available)
Claus Gittinger <cg@exept.de>
parents: 1937
diff changeset
  1103
            searchBlock := [:class :method :s |
e077aa992f7a check for nil source in #allCallsOn: (for methods where src in not available)
Claus Gittinger <cg@exept.de>
parents: 1937
diff changeset
  1104
                                |src|
e077aa992f7a check for nil source in #allCallsOn: (for methods where src in not available)
Claus Gittinger <cg@exept.de>
parents: 1937
diff changeset
  1105
1059
918deae4d1c7 care for lazy methods when searching senders
Claus Gittinger <cg@exept.de>
parents: 1036
diff changeset
  1106
                                method isLazyMethod 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
  1107
                                    src := method source.
2846
b332c41c3daa allCallsOn fix
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
  1108
                                    (src notNil and:[src includesString:quickMatch]) ifTrue:[
1143
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1109
                                        method makeRealMethod.
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1110
                                        method sends:sel.
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1111
                                    ] ifFalse:[
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1112
                                        false
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1113
                                    ]
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1114
                                ] ifFalse:[
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1115
                                    method sends:sel
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1116
                                ]
1059
918deae4d1c7 care for lazy methods when searching senders
Claus Gittinger <cg@exept.de>
parents: 1036
diff changeset
  1117
                           ].
1018
7c620027fa4d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 996
diff changeset
  1118
        ]
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1119
    ].
2901
8d162dedd271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2892
diff changeset
  1120
    ^ self allMethodsIn:classesSearched where:searchBlock
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1121
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1122
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1123
     SystemBrowser allCallsOn:#at:put: in:(Smalltalk allClasses)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1124
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1125
1143
0707461e582a avoid compilation of lazy methods when searching for senders
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  1126
    "Modified: 18.4.1997 / 10:32:50 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1127
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1128
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1129
allMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1130
    "return a collection of methods which pass the given test.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1131
     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
  1132
     considered.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1133
     Only classes in aCollectionOfClasses are inspected in the search"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1134
2769
768b6aa2fb5f eliminated a message
Claus Gittinger <cg@exept.de>
parents: 2748
diff changeset
  1135
    |list activePriority|
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1136
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1137
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1138
     since this may take a long time, lower my priority ...
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1139
    "
2769
768b6aa2fb5f eliminated a message
Claus Gittinger <cg@exept.de>
parents: 2748
diff changeset
  1140
    activePriority := Processor activePriority.
2295
4e05198e7dd8 execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  1141
    Processor activeProcess 
2769
768b6aa2fb5f eliminated a message
Claus Gittinger <cg@exept.de>
parents: 2748
diff changeset
  1142
        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
  1143
    do:[
2484
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  1144
        |checkedClasses checkBlock detectedMethods|
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1145
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1146
        checkedClasses := IdentitySet new.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1147
        list := OrderedCollection new.
2484
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  1148
        detectedMethods := IdentitySet new.
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1149
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1150
        checkBlock := [:cls |
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1151
            (checkedClasses includes:cls) ifFalse:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1152
                cls isObsolete ifTrue:[
2882
2a12342fef79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2880
diff changeset
  1153
                    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
  1154
                ] ifFalse:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1155
                    cls methodDictionary keysAndValuesDo:[:sel :method |
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1156
                        (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
  1157
                            "/ 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
  1158
                            (detectedMethods includes:method) ifFalse:[
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  1159
                                list add:method.
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  1160
                                detectedMethods add:method
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  1161
                            ]
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1162
                        ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1163
                    ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1164
                    checkedClasses add:cls.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1165
                ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1166
            ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1167
        ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1168
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1169
        aCollectionOfClasses do:[:aClass |
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1170
            "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1171
             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
  1172
             implementors or senders)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1173
            "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1174
            wantInst ifTrue:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1175
"/                Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1176
                checkBlock value:aClass
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1177
            ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1178
            wantClass ifTrue:[
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1179
"/                Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1180
                checkBlock value:(aClass class)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1181
            ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1182
            Processor yield
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1183
        ]
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1184
    ].
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1185
    ^ list
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1186
2484
afd8d8dbd9e2 care vor methods being found in multiple classes
Claus Gittinger <cg@exept.de>
parents: 2439
diff changeset
  1187
    "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
  1188
    "Modified: / 14.12.1999 / 14:59:02 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1189
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1190
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1191
allMethodsIn:aCollectionOfClasses where:aBlock
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1192
    "return a collection of methods which pass the given test.
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1193
     Only classes in aCollectionOfClasses are inspected in the search"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1194
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1195
    ^ self
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1196
        allMethodsIn:aCollectionOfClasses 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1197
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1198
        class:true
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1199
        where:aBlock
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1200
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1201
    "Created: 24.1.1997 / 19:41:49 / cg"
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1202
!
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1203
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1204
aproposSearch:aString
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  1205
    "browse all methods, which have aString in their selector."
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1206
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1207
    ^ self aproposSearch:aString in:(Smalltalk allClasses)
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  1208
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1209
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1210
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1211
aproposSearch:aString in:aCollectionOfClasses
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  1212
    "browse all methods, which have aString.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1213
     This is relatively slow, since all source must be processed."
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1214
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1215
    |matchString list s searchBlock browser|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1216
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1217
    matchString := '*' , aString , '*'.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1218
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1219
    list := OrderedCollection new.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1220
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1221
    (aString includesMatchCharacters) ifTrue:[
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  1222
        s := '*' , aString asLowercase , '*'.
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1223
        "a matchString"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1224
        searchBlock := [:text | (text asCollectionOfLinesfindFirst:[:line | s match:line]) ~~ 0].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1225
    ] ifFalse:[
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  1226
        searchBlock := [:source | (source findString:aString asLowercase) ~~ 0]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1227
    ].
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1228
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1229
    browser := self browseMethodsIn:aCollectionOfClasses 
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1230
                     where:[:class :method :sel |
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1231
                                |comment|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1232
2655
9e90bbd1eb18 apropos search is now: selectors containing
Claus Gittinger <cg@exept.de>
parents: 2642
diff changeset
  1233
                                (searchBlock value:sel asLowercase)
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1234
                           ]
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  1235
                     title:(self classResources string:'selectors containing: %1' with:aString).
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1236
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1237
    browser notNil ifTrue:[
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1238
        browser autoSearch:aString 
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1239
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1240
    ^ browser
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1241
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1242
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1243
     SystemBrowser aproposSearch:'append' in:(Collection withAllSubclasses)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1244
     SystemBrowser aproposSearch:'add'    in:(Collection withAllSubclasses)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1245
     SystemBrowser aproposSearch:'sort'   in:(Collection withAllSubclasses)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1246
     SystemBrowser aproposSearch:'[Aa]bsent' in:(Collection withAllSubclasses)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1247
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1248
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1249
    "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
  1250
!
6f4460d5a09d added supersend searches; offer comparing the current version with the
Claus Gittinger <cg@exept.de>
parents: 203
diff changeset
  1251
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1252
browseAllCallsOn:aSelectorString
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1253
    "launch a browser for all senders of aSelector"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1254
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1255
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1256
        browseAllCallsOn:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1257
        in:(Smalltalk allClasses)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1258
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1259
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1260
     SystemBrowser browseAllCallsOn:#+
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1261
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1262
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1263
    "Created: 9.12.1995 / 18:00:41 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1264
    "Modified: 10.7.1996 / 10:26:15 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1265
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1266
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1267
browseAllCallsOn:aSelectorString in:aSetOfClasses
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1268
    "launch a browser for all senders of aSelector"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1269
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1270
    ^ self
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1271
        browseAllCallsOn:aSelectorString 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1272
        in:aSetOfClasses
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1273
        title:(self classResources string:'senders of: %1' with:aSelectorString)
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1274
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1275
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1276
     SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses)
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1277
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1278
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1279
    "Created: 10.7.1996 / 10:25:49 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1280
    "Modified: 24.1.1997 / 19:49:34 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1281
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1282
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1283
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
  1284
    "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
  1285
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1286
    ^ self
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1287
        browseAllCallsOn:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1288
        in:aSetOfClasses
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1289
        ignoreCase:ignoreCase
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1290
        title:(self classResources string:'senders of: %1' with:aSelectorString)
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1291
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1292
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1293
     SystemBrowser browseAllCallsOn:#+ in:(Number withAllSubclasses)
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1294
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1295
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1296
    "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
  1297
    "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
  1298
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1299
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1300
browseAllCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:title
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1301
    "launch a browser for all senders of aSelector in aCollectionOfClasses"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1302
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1303
    |browser|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1304
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1305
    browser := self
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1306
                browseMethods:(self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase)
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1307
                title:title.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1308
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1309
    browser notNil ifTrue:[
648
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  1310
        |s|
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1311
648
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  1312
        "
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  1313
         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
  1314
         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
  1315
        "
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  1316
        s := aSelectorString.
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  1317
        (s includes:$:) ifTrue:[
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  1318
            s := s copyTo:(s indexOf:$:)
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  1319
        ].
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  1320
        browser autoSearch:s 
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1321
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1322
    ^ browser
648
6ec086b7972c Move method's literals form literalArray to indexed instvars.
Stefan Vogel <sv@exept.de>
parents: 634
diff changeset
  1323
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1324
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1325
     SystemBrowser
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1326
        browseAllCallsOn:#+ 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1327
        in:(Number withAllSubclasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1328
        title:'just a test'
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1329
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1330
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1331
    "Modified: 24.1.1997 / 19:48:54 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1332
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1333
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1334
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
  1335
    "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
  1336
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1337
    ^ self
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1338
        browseAllCallsOn:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1339
        in:aCollectionOfClasses 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1340
        ignoreCase:false 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1341
        title:title
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1342
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1343
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1344
     SystemBrowser
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1345
        browseAllCallsOn:#+ 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1346
        in:(Number withAllSubclasses) 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1347
        title:'just a test'
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1348
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1349
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1350
    "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
  1351
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1352
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1353
browseCallsOn:aSelectorString under:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1354
    "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
  1355
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1356
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1357
        browseAllCallsOn:aSelectorString
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1358
                      in:(aClass withAllSubclasses)
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1359
                   title:(self classResources 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1360
                                string:'senders of: %1 (in and below %2)'
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1361
                                with:aSelectorString 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1362
                                with:aClass name)
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1363
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1364
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1365
     SystemBrowser browseCallsOn:#+ under:Number
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1366
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1367
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1368
    "Created: 9.12.1995 / 17:59:57 / cg"
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  1369
    "Modified: 24.1.1997 / 19:50:33 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1370
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1371
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1372
browseClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1373
    "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
  1374
     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
  1375
     classvar is modified"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1376
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1377
    ^ self browseRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1378
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1379
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1380
browseClassRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1381
    "launch a browser for all methods in aCollectionOfClasses,
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1382
     where the classVar named aString is referenced; 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1383
     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
  1384
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1385
    ^ self browseRefsTo:varName classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1386
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1387
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1388
browseClassRefsTo:aString under:aClass modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1389
    "launch a browser for all methods in aClass and subclasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1390
     where the classVar named aString is referenced; 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1391
     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
  1392
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1393
    ^ self browseClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1394
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1395
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1396
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1397
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
  1398
    "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
  1399
     resource in aCollectionOfClasses.
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1400
     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
  1401
     are parsed.
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1402
     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
  1403
        browseForResource:#style containing:nil in:... title:...
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1404
     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
  1405
        browseForResource:#style containing:'arrowButtonDownForm' in:... title:..."
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1406
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 675
diff changeset
  1407
    |browser searchBlock|
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1408
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1409
    "/ search for any resource can be done without looking
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1410
    "/ at the source ...
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1411
    (aResourceSymbol isNil and:[item isNil]) ifTrue:[
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1412
        searchBlock := [:class :method :s | method hasResource]
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1413
    ] ifFalse:[
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1414
        searchBlock := [:class :method :s |
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1415
                            |rsrc val found|
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1416
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1417
                            found := false.
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1418
                            method hasResource ifTrue:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1419
                                rsrc := method resources.
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1420
                                rsrc notNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1421
                                    aResourceSymbol isNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1422
                                        item isNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1423
                                            found := true
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1424
                                        ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1425
                                            rsrc isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1426
                                                rsrc keysAndValuesDo:[:rsrc :val |
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1427
                                                    val isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1428
                                                        val do:[:v |
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1429
                                                            found := item match:v printString 
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1430
                                                        ]
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1431
                                                    ] ifFalse:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1432
                                                        found := item match:val printString 
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1433
                                                    ]
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1434
                                                ]
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1435
                                            ] ifFalse:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1436
                                                found := item match:rsrc printString
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1437
                                            ]
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1438
                                        ]
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1439
                                    ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1440
                                        (rsrc includesKey:aResourceSymbol) ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1441
                                            item isNil ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1442
                                                found := true
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1443
                                            ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1444
                                                rsrc isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1445
                                                    val := rsrc at:aResourceSymbol.
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1446
                                                    val isCollection ifTrue:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1447
                                                        val do:[:v |
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1448
                                                            found := item match:v printString 
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1449
                                                        ]
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1450
                                                    ] ifFalse:[
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1451
                                                        found := item match:val printString 
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1452
                                                    ]
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1453
                                                ] ifFalse:[
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1454
                                                    found := item match:rsrc printString
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1455
                                                ]
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1456
                                            ]
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1457
                                        ]
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1458
                                    ]
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1459
                                ].
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1460
                            ].
1356
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1461
                            found
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1462
                       ].
0080df099c35 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1203
diff changeset
  1463
    ].
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1464
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1465
    browser := self browseMethodsIn:aCollectionOfClasses
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1466
                              where:searchBlock
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1467
                              title:title.
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1468
    browser notNil ifTrue:[
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1469
        browser autoSearch:'resource:' 
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1470
    ].
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1471
    ^ browser
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1472
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1473
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1474
     SystemBrowser
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1475
        browseForResource:nil
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1476
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1477
        title:'methods with a resource'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1478
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1479
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1480
     SystemBrowser
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1481
        browseForResource:#style
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1482
        containing:nil
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1483
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1484
        title:'methods with a #style resource'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1485
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1486
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1487
     SystemBrowser
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1488
        browseForResource:#style
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1489
        containing:'arrowButton*'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1490
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1491
        title:'methods with a #style resource'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1492
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1493
1573
4b6ce12dff2b dont duplicate the code in method>>resources
Claus Gittinger <cg@exept.de>
parents: 1561
diff changeset
  1494
    "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
  1495
!
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1496
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1497
browseForResource:aResourceSymbol in:aCollectionOfClasses title:title
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1498
    "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
  1499
     resource in aCollectionOfClasses"
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1500
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1501
    ^ self
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1502
        browseForResource:aResourceSymbol
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1503
        containing:nil
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1504
        in:aCollectionOfClasses 
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1505
        title:title
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1506
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1507
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1508
     SystemBrowser
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1509
        browseForResource:#style
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1510
        in:Smalltalk allClasses
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1511
        title:'methods accessing styleSheet values'
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1512
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1513
    "
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1514
     SystemBrowser
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1515
        browseForResource:#keyboard
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1516
        in:Smalltalk allClasses
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1517
        title:'methods handling keyboard events'
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1518
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1519
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1520
     SystemBrowser
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1521
        browseForResource:nil
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1522
        in:Smalltalk allClasses
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1523
        title:'methods with a resource'
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1524
    "
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1525
929
a2275f1b4c94 enhanced resource search, to search for a particular
Claus Gittinger <cg@exept.de>
parents: 825
diff changeset
  1526
    "Modified: 9.1.1997 / 12:44:38 / cg"
573
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1527
!
e32bd3e46a72 added startup for searching resourceSpecs
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
  1528
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1529
browseForString:aString
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1530
    "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
  1531
     This may be slow, since source-code has to be scanned."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1532
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1533
    ^ self browseForString:aString in:(Smalltalk allClasses) ignoreCase:false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1534
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1535
    "Modified: / 18.6.1998 / 16:42:39 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1536
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1537
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1538
browseForString:aString in:aCollectionOfClasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1539
    "launch a browser for all methods in aCollectionOfClasses  
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1540
     containing a string in their source.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1541
     This may be slow, since source-code has to be scanned."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1542
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1543
    ^ self
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1544
        browseForString:aString 
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1545
        in:aCollectionOfClasses 
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1546
        ignoreCase:false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1547
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1548
    "
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1549
     SystemBrowser browseForString:'all'      in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1550
     SystemBrowser browseForString:'should'   in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1551
     SystemBrowser browseForString:'[eE]rror' in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1552
    "
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1553
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1554
    "Created: / 9.12.1995 / 18:03:12 / cg"
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1555
    "Modified: / 18.6.1998 / 16:43:27 / cg"
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1556
!
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1557
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1558
browseForString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1559
    "launch a browser for all methods in aCollectionOfClasses  
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1560
     containing a string in their source.
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1561
     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
  1562
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1563
    |browser searchBlock title s|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1564
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1565
    title := self classResources string:'methods containing: %1' with:aString displayString.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1566
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1567
    (aString includesMatchCharacters
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1568
    or:[ignoreCase]) ifTrue:[
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1569
        s := '*' , aString , '*'.
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1570
        "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
  1571
        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
  1572
                            |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
  1573
                            src := m source.
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1574
                            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
  1575
                                ('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
  1576
                                false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1577
                            ] ifFalse:[
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1578
                                s match:src ignoreCase:ignoreCase
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1579
                            ]
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
  1580
                       ]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1581
    ] 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
  1582
        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
  1583
                            |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
  1584
b14b3ab39af6 dont crash if searching a string in a method which has no accessable source
Claus Gittinger <cg@exept.de>
parents: 436
diff changeset
  1585
                            src := m source.
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1586
                            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
  1587
                                ('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
  1588
                                false
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1589
                            ] ifFalse:[
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1590
                                (src findString:aString) ~~ 0
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1591
                            ]
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
  1592
                       ]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1593
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1594
    browser := self browseMethodsIn:aCollectionOfClasses where:searchBlock title:title.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1595
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1596
    browser notNil ifTrue:[
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1597
        browser autoSearch:aString ignoreCase:ignoreCase
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1598
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1599
    ^ browser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1600
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1601
    "
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1602
     SystemBrowser browseForString:'all'      in:(Array with:Object)
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1603
     SystemBrowser browseForString:'should'   in:(Array with:Object)
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1604
     SystemBrowser browseForString:'[eE]rror' in:(Array with:Object)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1605
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1606
1703
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1607
    "Created: / 18.6.1998 / 16:42:50 / cg"
ea66390f879b added ignoreCase option to string-search.
Claus Gittinger <cg@exept.de>
parents: 1681
diff changeset
  1608
    "Modified: / 18.6.1998 / 16:51:25 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1609
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1610
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1611
browseForSymbol:aSymbol
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1612
    "launch a browser for all methods referencing aSymbol"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1613
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1614
    ^ self 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1615
        browseForSymbol:aSymbol 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1616
        title:(self classResources string:'users of: %1' with:aSymbol) 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1617
        warnIfNone:true
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1618
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1619
    "Created: 9.12.1995 / 18:04:34 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1620
    "Modified: 10.7.1996 / 10:35:34 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1621
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1622
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1623
browseForSymbol:aSymbol in:aSetOfClasses title:title warnIfNone:doWarn
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1624
    "launch a browser for all methods referencing aSymbol"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1625
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1626
    |browser searchBlock sym|
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1627
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1628
    (aSymbol includesMatchCharacters) ifTrue:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1629
        "a matchString"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1630
        searchBlock := [:c :m :s |
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1631
                            (m literalsDetect:[:aLiteral|
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1632
                                (aLiteral isMemberOf:Symbol) 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1633
                                  and:[aSymbol match:aLiteral]
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1634
                            ] ifNone:nil) notNil
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1635
                       ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1636
    ] ifFalse:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1637
        "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1638
         can do a faster search
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1639
        "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1640
        sym := aSymbol asSymbolIfInterned.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1641
        sym isNil ifTrue:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1642
            self showNoneFound:title.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1643
            ^ nil
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1644
        ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1645
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1646
        searchBlock := [:c :m :s |
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1647
                            (m literalsDetect:[:aLiteral|
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1648
                                (sym == aLiteral) 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1649
                            ] ifNone:nil) notNil
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1650
                       ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1651
    ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1652
    doWarn ifFalse:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1653
        WarningSignal ignoreIn:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1654
            browser := self browseMethodsIn:aSetOfClasses where:searchBlock title:title.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1655
        ]
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1656
    ] ifTrue:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1657
        browser := self browseMethodsIn:aSetOfClasses where:searchBlock title:title.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1658
    ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1659
    browser notNil ifTrue:[
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1660
        browser autoSearch:aSymbol
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1661
    ].
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1662
    ^ browser
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1663
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1664
    "Modified: 24.6.1996 / 14:39:07 / stefan"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1665
    "Modified: 30.6.1996 / 16:45:25 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1666
    "Created: 10.7.1996 / 10:36:36 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1667
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1668
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1669
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
  1670
    "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
  1671
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1672
    |browser searchBlock sym|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1673
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1674
    (aSymbol includesMatchCharacters) ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1675
        "a matchString"
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1676
        searchBlock := [:c :m :s |
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1677
                            (m literalsDetect:[:aLiteral|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1678
                                (aLiteral isMemberOf:Symbol) 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1679
                                  and:[aSymbol match:aLiteral]
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1680
                            ] ifNone:nil) notNil
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1681
                       ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1682
    ] ifFalse:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1683
        "
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1684
         can do a faster search
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1685
        "
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1686
        sym := aSymbol asSymbolIfInterned.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1687
        sym isNil ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1688
            self showNoneFound:title.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1689
            ^ nil
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1690
        ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1691
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1692
        searchBlock := [:c :m :s |
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1693
                            (m literalsDetect:[:aLiteral|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1694
                                (sym == aLiteral) 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1695
                            ] ifNone:nil) notNil
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1696
                       ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1697
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1698
    doWarn ifFalse:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1699
        WarningSignal ignoreIn:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1700
            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
  1701
        ]
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1702
    ] ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1703
        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
  1704
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1705
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1706
    (browser notNil 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1707
    and:[searchString notNil]) ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1708
        browser autoSearch:searchString
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1709
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1710
    ^ browser
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1711
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1712
    "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
  1713
    "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
  1714
    "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
  1715
!
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1716
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1717
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
  1718
    "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
  1719
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1720
    |browser searchBlock sym|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1721
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1722
    (aSymbol includesMatchCharacters) ifTrue:[
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1723
        "a matchString"
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1724
        searchBlock := [:c :m :s |
2439
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  1725
                            m referencesGlobalMatching:aSymbol
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  1726
"/                            (m literalsDetect:[:aLiteral|
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  1727
"/                                (aLiteral isMemberOf:Symbol) 
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  1728
"/                                  and:[aSymbol match:aLiteral]
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  1729
"/                            ] ifNone:nil) notNil
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1730
                       ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1731
    ] ifFalse:[
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1732
        "
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1733
         can do a faster search
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1734
        "
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1735
        sym := aSymbol asSymbolIfInterned.
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1736
        sym isNil ifTrue:[
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1737
            actionIfNoneFound value.
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1738
            ^ nil
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1739
        ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1740
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1741
        searchBlock := [:c :m :s |
2439
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  1742
                            m referencesGlobal:sym
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  1743
"/                            (m literalsDetect:[:aLiteral|
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  1744
"/                                (sym == aLiteral) 
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  1745
"/                            ] ifNone:nil) notNil
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1746
                       ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1747
    ].
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1748
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1749
    WarningSignal ignoreIn:[
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1750
        InformationSignal ignoreIn:[
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1751
            browser := self browseMethodsWhere:searchBlock title:title.
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1752
        ]
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1753
    ].
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1754
    browser isNil ifTrue:[
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1755
        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
  1756
    ].
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1757
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1758
    (browser notNil 
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1759
    and:[searchString notNil]) ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1760
        browser autoSearch:searchString
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1761
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1762
    ^ browser
375
a82f2fe29802 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
  1763
2439
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  1764
    "Modified: / 24.6.1996 / 14:39:07 / stefan"
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  1765
    "Created: / 31.10.1996 / 14:45:08 / cg"
2c7133af56df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2418
diff changeset
  1766
    "Modified: / 9.11.1999 / 17:04:30 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1767
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1768
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1769
browseForSymbol:aSymbol title:title warnIfNone:doWarn
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1770
    "launch a browser for all methods referencing aSymbol"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1771
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1772
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1773
        browseForSymbol:aSymbol 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1774
        title:title 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1775
        warnIfNone:doWarn 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1776
        searchFor:aSymbol
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1777
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1778
    "Modified: 31.10.1996 / 14:45:38 / cg"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1779
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1780
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1781
browseForSymbol:aSymbol title:title warnIfNone:doWarn searchFor:searchString
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1782
    "launch a browser for all methods referencing aSymbol"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1783
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  1784
    |b|
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  1785
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  1786
    doWarn ifTrue: [
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  1787
	b := [self showNoneFound:title]
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  1788
    ].
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1789
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1790
        browseForSymbol:aSymbol 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1791
        title:title 
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  1792
        ifNone:b
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1793
        searchFor:searchString
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1794
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1795
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1796
browseImplementorsOf:aSelectorString
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1797
    "launch a browser for all implementors of aSelector"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1798
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1799
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1800
        browseImplementorsOf:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1801
        in:(Smalltalk allClasses)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1802
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1803
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1804
     SystemBrowser browseImplementorsOf:#+
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1805
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1806
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1807
    "Created: 9.12.1995 / 18:01:18 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1808
    "Modified: 10.7.1996 / 10:21:26 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1809
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1810
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1811
browseImplementorsOf:aSelectorString in:aSetOfClasses
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1812
    "launch a browser for all implementors of aSelector"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1813
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1814
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1815
        browseImplementorsOf:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1816
        in:aSetOfClasses
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1817
        title:(self classResources string:'implementors of: %1' with:aSelectorString)
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1818
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1819
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1820
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1821
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1822
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1823
    "Created: 10.7.1996 / 10:20:59 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1824
    "Modified: 10.7.1996 / 10:21:49 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1825
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1826
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1827
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
  1828
    "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
  1829
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1830
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1831
        browseImplementorsOf:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1832
        in:aSetOfClasses
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1833
        ignoreCase:ignoreCase
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1834
        title:(self classResources string:'implementors of: %1' with:aSelectorString)
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1835
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1836
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1837
     SystemBrowser browseImplementorsOf:#+ in:(Number withAllSubclasses)
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1838
    "
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1839
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1840
    "Created: 10.7.1996 / 10:20:59 / cg"
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1841
    "Modified: 10.7.1996 / 10:21:49 / cg"
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1842
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1843
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1844
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1845
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1846
browseImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase title:title
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1847
    "launch a browser for all implementors of aSelector in
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1848
     the classes contained in aCollectionOfClasses and its metaclasses"
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1849
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  1850
    |list|
270
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  1851
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  1852
    list := self 
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  1853
                findImplementorsOf:aSelectorString 
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  1854
                in:aCollectionOfClasses 
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  1855
                ignoreCase:ignoreCase.
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  1856
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  1857
    list size == 0 ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  1858
        self showNoneFound:title.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  1859
        ^ nil
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1860
    ].
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1861
270
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  1862
    ^ self browseMethods:list asOrderedCollection title:title
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1863
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1864
    "
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1865
     SystemBrowser browseImplementorsOf:#+
270
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  1866
                                     in:(Array with:Number
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  1867
                                               with:Float
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  1868
                                               with:SmallInteger)
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  1869
                                  title:'some implementors of +'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1870
    "
132
claus
parents: 118
diff changeset
  1871
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  1872
    "Modified: / 4.9.1995 / 17:33:39 / claus"
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  1873
    "Modified: / 19.6.1996 / 14:19:02 / stefan"
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  1874
    "Modified: / 16.10.1998 / 13:16:29 / cg"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1875
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1876
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1877
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
  1878
    "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
  1879
     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
  1880
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1881
    ^ self
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1882
        browseImplementorsOf:aSelectorString 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1883
        in:aCollectionOfClasses 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1884
        ignoreCase:false
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1885
        title:title
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1886
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1887
!
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1888
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1889
browseImplementorsOf:aSelectorString under:aClass
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1890
    "launch a browser for all implementors of aSelector in aClass
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1891
     and its subclasses"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1892
2623
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1893
    ^ self 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1894
        browseImplementorsOf:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1895
        in:(aClass withAllSubclasses)
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1896
        title:(self classResources 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1897
                string:'implementors of: %1 (in and below %2)' 
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1898
                with:aSelectorString
9e488daf53da allow for senders/implementors to be searched with caseIgnore
Claus Gittinger <cg@exept.de>
parents: 2551
diff changeset
  1899
                with:aClass name)
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1900
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1901
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1902
     SystemBrowser browseImplementorsOf:#+ under:Integer
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1903
    "
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1904
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1905
    "Created: 9.12.1995 / 18:06:09 / cg"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1906
    "Modified: 9.12.1995 / 18:11:38 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1907
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1908
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1909
browseInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1910
    "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
  1911
     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
  1912
     instvar is modified"
45
950b84ba89e6 *** empty log message ***
claus
parents: 41
diff changeset
  1913
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1914
    ^ self browseRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1915
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1916
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1917
browseInstRefsTo:varName in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1918
    "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
  1919
     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
  1920
     instvar is modified"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1921
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1922
    ^ self browseRefsTo:varName classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly title:title
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1923
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  1924
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1925
browseInstRefsTo:aString under:aClass modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1926
    "launch a browser for all methods in aClass and subclasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1927
     where the instVar named aString is referenced; 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1928
     if modsOnly is true, browse only methods where the instvar is modified"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1929
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  1930
    ^ self browseInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1931
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1932
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1933
browseReferendsOf:aGlobalName
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1934
    "launch a browser for all methods referencing a global
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1935
     named aGlobalName. The argument may be a symbol, a string or
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1936
     a matchPattern.
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1937
    "
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1938
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1939
    ^ self browseReferendsOf:aGlobalName warnIfNone:true 
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1940
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1941
   "
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1942
    Browser browseReferendsOf:#Transcript
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1943
    Browser browseReferendsOf:'Tr*'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1944
   "
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  1945
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  1946
    "Modified: / 30.10.1997 / 23:45:52 / cg"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1947
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  1948
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1949
browseReferendsOf:aGlobalName ifNone:actionIfNone
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1950
    "launch a browser for all methods referencing a global
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1951
     named aGlobalName.
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1952
    "
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1953
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1954
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1955
        browseReferendsOf:aGlobalName 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1956
        title:(self classResources string:'users of: %1' with:aGlobalName)
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1957
        ifNone:actionIfNone
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1958
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1959
    "Modified: / 31.10.1997 / 15:42:05 / cg"
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1960
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1961
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1962
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  1963
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1964
browseReferendsOf:aGlobalName in:aSetOfClasses
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1965
    "launch a browser for all methods referencing a global
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1966
     named aGlobalName.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1967
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1968
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1969
    ^ self browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:true 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1970
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1971
   "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1972
    Browser browseReferendsOf:#Transcript
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1973
   "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1974
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1975
    "Created: 10.7.1996 / 10:37:30 / cg"
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1976
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1977
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1978
browseReferendsOf:aGlobalName in:aSetOfClasses warnIfNone:doWarn
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1979
    "launch a browser for all methods referencing a global
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1980
     named aGlobalName.
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1981
    "
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1982
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1983
    |globalsPlainName idx|
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1984
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1985
    globalsPlainName := aGlobalName.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1986
    (idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1987
        globalsPlainName := globalsPlainName copyFrom:idx+1
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1988
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1989
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1990
    ^ self browseForSymbol:aGlobalName
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1991
                        in:aSetOfClasses
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1992
                     title:(self classResources string:'users of: %1' with:aGlobalName) 
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1993
                warnIfNone:doWarn
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  1994
                 searchFor:globalsPlainName
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1995
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1996
    "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
  1997
    "Modified: 31.10.1996 / 14:56:38 / cg"
666
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1998
!
c349555a5550 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 653
diff changeset
  1999
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2000
browseReferendsOf:aGlobalName title:title ifNone:actionIfNone
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2001
    "launch a browser for all methods referencing a global
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2002
     named aGlobalName.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2003
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2004
2828
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2005
    |globalsPlainName idx searchBlock
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2006
     sym browser|
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2007
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2008
    globalsPlainName := aGlobalName.
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2009
    (idx := globalsPlainName lastIndexOf:$:) ~~ 0 ifTrue:[
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2010
        globalsPlainName := globalsPlainName copyFrom:idx+1.
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2011
        (globalsPlainName size == 0
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2012
        or:[globalsPlainName = '*']) ifTrue:[
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2013
            globalsPlainName := aGlobalName
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2014
        ]
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2015
    ].
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2016
3125
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2017
    (sym := aGlobalName asSymbolIfInterned) notNil ifTrue:[
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2018
        searchBlock := [:cls :mthd :sel | |mSource|
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2019
                        "/ 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
  2020
                        mthd isLazyMethod ifTrue:[
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2021
                            mSource := mthd source.
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2022
                            (mSource notNil
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2023
                            and:[(mSource includesString:sym)
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2024
                            and:[mthd usedGlobals includes:sym]])
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2025
                        ] ifFalse:[ 
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2026
                            ((mthd refersToLiteral:sym)
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2027
                             and:[mthd usedGlobals includes:sym])
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2028
                        ]
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2029
                      ]
ed9aa14fe97b avoid double symbol lookup
Claus Gittinger <cg@exept.de>
parents: 3109
diff changeset
  2030
    ] ifFalse:[
2828
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2031
        aGlobalName includesMatchCharacters ifFalse:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2032
            actionIfNone value.
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2033
            ^ nil
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2034
        ].
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2035
        searchBlock := [:cls :mthd :sel | |mSource|
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2036
                        "/ 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
  2037
                        mthd isLazyMethod ifTrue:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2038
                            mSource := mthd source.
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2039
                            (mSource notNil
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2040
                            and:[mthd usedGlobals contains:[:lit | aGlobalName match:lit]])
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2041
                        ] ifFalse:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2042
                            ((mthd literals contains:[:lit | aGlobalName match:lit])
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2043
                             and:[mthd usedGlobals contains:[:lit | aGlobalName match:lit] ])
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2044
                        ]
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2045
                      ]
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2046
    ].
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2047
    WarningSignal ignoreIn:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2048
        InformationSignal ignoreIn:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2049
            browser := self browseMethodsWhere:searchBlock title:title.
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2050
        ]
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2051
    ].
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2052
    browser isNil ifTrue:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2053
        actionIfNone value
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2054
    ] ifFalse:[
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2055
        browser autoSearch:globalsPlainName
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2056
    ].
6e54ebb9b75e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2826
diff changeset
  2057
    ^ browser
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2058
!
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2059
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2060
browseReferendsOf:aGlobalName title:title warnIfNone:doWarn
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2061
    "launch a browser for all methods referencing a global
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2062
     named aGlobalName.
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2063
    "
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2064
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2065
    |b|
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2066
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2067
    doWarn ifTrue: [
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2068
	b := [self showNoneFound:title]
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2069
    ].
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2070
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2071
    ^ self
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2072
        browseReferendsOf:aGlobalName 
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2073
        title:title 
2414
a84eac935500 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2412
diff changeset
  2074
        ifNone:b
2409
656eeb7197fa checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2398
diff changeset
  2075
1367
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2076
!
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2077
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2078
browseReferendsOf:aGlobalName warnIfNone:doWarn
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2079
    "launch a browser for all methods referencing a global
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2080
     named aGlobalName.
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2081
    "
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2082
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2083
    ^ self
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2084
        browseReferendsOf:aGlobalName 
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2085
        title:(self classResources string:'users of: %1' with:aGlobalName)
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2086
        warnIfNone:doWarn
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2087
80e92dd370c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1356
diff changeset
  2088
    "Modified: / 31.10.1997 / 15:42:05 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2089
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2090
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2091
browseRefsTo:aString classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2092
    "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
  2093
     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
  2094
     instvar is modified"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2095
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2096
    |title|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2097
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2098
    modsOnly ifTrue:[
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2099
        title := 'modifications of: %1'
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2100
    ] ifFalse:[
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2101
        title := 'references to: %1 '
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2102
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2103
    ^ self 
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2104
        browseRefsTo:aString 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2105
        classVars:classVars 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2106
        in:aCollectionOfClasses 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2107
        modificationsOnly:modsOnly 
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2108
        title:(self classResources string:title with:aString)
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2109
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2110
    "Created: 9.12.1995 / 18:07:05 / cg"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2111
    "Modified: 9.12.1995 / 18:11:49 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2112
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2113
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2114
browseRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2115
    "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
  2116
     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
  2117
     instvar is modified"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2118
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2119
    |filter browser pattern|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2120
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2121
    filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly.
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2122
    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
  2123
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2124
    browser notNil ifTrue:[
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2125
        modsOnly ifTrue:[
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2126
            pattern := varName , ' :='
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2127
        ] ifFalse:[
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2128
            pattern := varName
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2129
        ].
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2130
        browser autoSearch:pattern 
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2131
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2132
    ^ browser
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2133
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2134
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2135
browseSuperCallsIn:aCollectionOfClasses title:title
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2136
    "launch a browser for all super sends in aCollectionOfClasses"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2137
742
2ef5e22d8983 code cleanup (unused vars eliminated)
Claus Gittinger <cg@exept.de>
parents: 675
diff changeset
  2138
    |browser searchBlock|
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2139
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2140
    searchBlock := [:class :method :s | 
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2141
        |src parser|
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2142
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2143
        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
  2144
        (src notNil and:[src findString:'super']) ~~ 0 ifTrue:[
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2145
            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
  2146
                        parseMethod:src 
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2147
                        in:class 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2148
                        ignoreErrors:true 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2149
                        ignoreWarnings:true.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2150
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2151
            parser notNil and:[parser usesSuper]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2152
        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2153
            false
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2154
        ]
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2155
    ].
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2156
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2157
    browser := self browseMethodsIn:aCollectionOfClasses
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2158
                              where:searchBlock
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2159
                              title:title.
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2160
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2161
    browser notNil ifTrue:[
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2162
        browser autoSearch:'super' 
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2163
    ].
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2164
    ^ browser
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2165
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2166
    "
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2167
     SystemBrowser
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2168
         browseSuperCallsIn:(Array with:SortedCollection)
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2169
                      title:'superSends in SortedCollection'
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2170
    "
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2171
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2172
    "Created: 23.11.1995 / 14:08:55 / cg"
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2173
    "Modified: 24.4.1996 / 13:25:31 / cg"
256
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2174
!
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2175
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2176
browseSuperCallsUnder:aClass
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2177
    "launch a browser for all supersends in aClass and subclasses"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2178
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2179
    ^ self browseSuperCallsIn:(aClass withAllSubclasses)
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2180
                        title:(self classResources string:'supersends (in and below %1)' with:aClass name)
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2181
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2182
    "
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2183
     SystemBrowser browseSuperCallsUnder:Number
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2184
    "
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2185
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2186
    "Created: 23.11.1995 / 12:06:06 / cg"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2187
    "Modified: 9.12.1995 / 18:11:59 / cg"
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2188
!
5ae592de1b4f national strings
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2189
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2190
browseUsesOf:aClass
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2191
    |dict owners offsets
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2192
     sz  "{ Class: SmallInteger }"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2193
     n   "{ Class: SmallInteger }"
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2194
     removeSet newDict|
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2195
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2196
    owners := ObjectMemory whoReferencesInstancesOf:aClass.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2197
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2198
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2199
     collect set of offsets in dict; key is class
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2200
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2201
    dict := IdentityDictionary new.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2202
    owners do:[:someObject |
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2203
	|cls create|
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2204
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2205
	someObject isContext ifFalse:[
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2206
	    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2207
	     someObject refers to an instance of aClass;
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2208
	     find out, which instVar(s)
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2209
	    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2210
	    cls := someObject class.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2211
	    cls ~~ Array ifTrue:[
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2212
		n := cls instSize.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2213
		create := [|s| s := Set new. dict at:cls put:s. s].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2214
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2215
		1 to:n do:[:i |
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2216
		    |ref|
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2217
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2218
		    ref := someObject instVarAt:i.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2219
		    (ref isMemberOf:aClass) ifTrue:[
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2220
			offsets := dict at:cls ifAbsent:create.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2221
			offsets add:i.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2222
		    ]
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2223
		].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2224
		cls isVariable ifTrue:[
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2225
		    cls isPointers ifTrue:[
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2226
			| idx "{ Class: SmallInteger }" |
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2227
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2228
			sz := someObject basicSize.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2229
			idx := 1.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2230
			[idx <= sz] whileTrue:[
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2231
			    |ref|
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2232
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2233
			    ref := someObject basicAt:idx.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2234
			    (ref isMemberOf:aClass) ifTrue:[
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2235
				offsets := dict at:cls ifAbsent:create.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2236
				offsets add:0.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2237
				idx := sz
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2238
			    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2239
			    idx := idx + 1
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2240
			]
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2241
		    ]        
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2242
		]
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2243
	    ]
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2244
	]
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2245
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2246
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2247
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2248
     merge with superclass refs
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2249
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2250
    dict keysAndValuesDo:[:cls :set |
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2251
	cls allSuperclasses do:[:aSuperclass |
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2252
	    |superSet|
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2253
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2254
	    superSet := dict at:aSuperclass ifAbsent:[].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2255
	    superSet notNil ifTrue:[
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2256
		|removeSet|
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2257
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2258
		superSet := dict at:aSuperclass.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2259
		removeSet := Set new.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2260
		set do:[:offset |
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2261
		    (superSet includes:offset) ifTrue:[
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2262
			removeSet add:offset
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2263
		    ]
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2264
		].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2265
		set removeAll:removeSet
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2266
	    ]
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2267
	]
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2268
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2269
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2270
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2271
     remove empty ones
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2272
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2273
    removeSet := Set new.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2274
    dict keysAndValuesDo:[:cls :set |
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2275
	set isEmpty ifTrue:[
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2276
	    removeSet add:cls
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2277
	]
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2278
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2279
    removeSet do:[:cls |
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2280
	dict removeKey:cls
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2281
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2282
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2283
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2284
     replace the indices by real names
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2285
    "
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2286
    newDict := IdentityDictionary new.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2287
    dict keysAndValuesDo:[:cls :set |
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2288
	|newSet names|
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2289
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2290
	names := cls allInstVarNames.
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2291
	newSet := set collect:[:index | 
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2292
		index == 0 ifTrue:['*indexed*'] ifFalse:[names at:index].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2293
	].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2294
	newDict at:cls put:newSet
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2295
    ].
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2296
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2297
    newDict inspect
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2298
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  2299
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2300
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2301
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2302
filterToSearchRefsTo:varName classVars:classVars access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2303
    "return a searchblock for variable references"
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2304
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2305
    |searchBlock|
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2306
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2307
    searchBlock := [:c :m :s |
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2308
        |src result parser vars needMatch|
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2309
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2310
        needMatch := varName includesMatchCharacters.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2311
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2312
        src := m source.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2313
        src isNil ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2314
            result := false
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2315
        ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2316
            needMatch ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2317
                "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2318
                 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
  2319
                 methods source for the variables name ...
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2320
                "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2321
                result := (src findString:varName) ~~ 0.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2322
            ] ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2323
                result := true.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2324
            ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2325
            result ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2326
                result := false.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2327
                parser := Parser
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2328
                                parseMethod:src 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2329
                                in:c 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2330
                                ignoreErrors:true 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2331
                                ignoreWarnings:true.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2332
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2333
                (parser notNil and:[parser ~~ #Error]) ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2334
                    classVars ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2335
                        accessType == #read ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2336
                            vars := parser readInstVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2337
                        ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2338
                            accessType == #write ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2339
                                vars := parser modifiedInstVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2340
                            ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2341
                                vars := parser usedInstVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2342
                            ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2343
                        ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2344
                    ] ifTrue:[    
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2345
                        accessType == #read ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2346
                            vars := parser readClassVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2347
                        ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2348
                            accessType == #write ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2349
                                vars := parser modifiedClassVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2350
                            ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2351
                                vars := parser usedClassVars
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2352
                            ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2353
                        ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2354
                    ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2355
                    vars size > 0 ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2356
                        needMatch ifTrue:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2357
                            vars do:[:cv |
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2358
                                (varName match:cv) ifTrue:[result := true]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2359
                            ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2360
                        ] ifFalse:[
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2361
                            result := vars includes:varName
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2362
                        ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2363
                    ]
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2364
                ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2365
            ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2366
        ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2367
        Processor yield.
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2368
        result
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2369
    ].
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2370
    ^ searchBlock
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2371
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2372
    "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
  2373
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2374
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2375
filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2376
    "return a searchblock for variable references"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2377
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2378
    |searchBlock|
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  2379
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2380
    searchBlock := [:c :m :s |
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2381
        |src result parser vars needMatch|
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2382
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2383
        needMatch := varName includesMatchCharacters.
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2384
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2385
        src := m source.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2386
        src isNil ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2387
            result := false
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2388
        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2389
            needMatch ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2390
                "
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2391
                 before doing a slow parse, quickly scan the
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2392
                 methods source for the variables name ...
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2393
                "
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2394
                result := (src findString:varName) ~~ 0.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2395
            ] ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2396
                result := true.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2397
            ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2398
            result ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2399
                result := false.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2400
                parser := Parser
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2401
                                parseMethod:src 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2402
                                in:c 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2403
                                ignoreErrors:true 
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2404
                                ignoreWarnings:true.
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2405
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2406
                (parser notNil and:[parser ~~ #Error]) ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2407
                    classVars ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2408
                        modsOnly ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2409
                            vars := parser modifiedInstVars
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2410
                        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2411
                            vars := parser usedInstVars
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2412
                        ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2413
                    ] ifTrue:[    
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2414
                        modsOnly ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2415
                            vars := parser modifiedClassVars
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2416
                        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2417
                            vars := parser usedClassVars
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2418
                        ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2419
                    ].
1190
d265f77ecbc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1143
diff changeset
  2420
                    vars size > 0 ifTrue:[
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2421
                        needMatch ifTrue:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2422
                            vars do:[:cv |
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2423
                                (varName match:cv) ifTrue:[result := true]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2424
                            ]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2425
                        ] ifFalse:[
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2426
                            result := vars includes:varName
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2427
                        ]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2428
                    ]
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2429
                ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2430
            ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2431
        ].
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2432
        Processor yield.
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2433
        result
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2434
    ].
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2435
    ^ searchBlock
504
1bb5e6002ebb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 475
diff changeset
  2436
1190
d265f77ecbc8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1143
diff changeset
  2437
    "Modified: 19.6.1997 / 18:27:57 / cg"
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2438
!
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2439
2743
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  2440
findAnyResourceIn:aCollectionOfClasses 
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  2441
    "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
  2442
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  2443
    ^ 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
  2444
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  2445
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  2446
     SystemBrowser findAnyResourceIn:(ApplicationModel withAllSubclasses)
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  2447
    "
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  2448
!
4fa5e36bef74 code cleanup: moved iconMethods from BrowserView to SystemBrowser
Claus Gittinger <cg@exept.de>
parents: 2741
diff changeset
  2449
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2450
findClassRefsTo:aString in:aCollectionOfClasses access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2451
    "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
  2452
     aString is referenced; 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2453
     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
  2454
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2455
    ^ 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
  2456
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2457
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2458
findClassRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2459
    "return all methods in aCollectionOfClasses where the classVar named
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2460
     aString is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2461
     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
  2462
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2463
    ^ self findRefsTo:aString classVars:true in:aCollectionOfClasses modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2464
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2465
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2466
findClassRefsTo:aString inClass:aClass access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2467
    "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
  2468
     aString is referenced; 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2469
     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
  2470
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2471
    ^ 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
  2472
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2473
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2474
findClassRefsTo:aString inClass:aClass modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2475
    "return all methods in aClass where the classVar named
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2476
     aString is referenced; 
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2477
     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
  2478
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2479
    ^ self findRefsTo:aString classVars:true in:(Array with:aClass) modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2480
!
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2481
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2482
findClassRefsTo:aString under:aClass access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2483
    "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
  2484
     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
  2485
     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
  2486
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2487
    ^ 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
  2488
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2489
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2490
findClassRefsTo:aString under:aClass modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2491
    "return all methods in aClass and subclasses
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2492
     where the classVar named aString is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2493
     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
  2494
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2495
    ^ self findClassRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2496
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2497
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2498
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2499
findImplementorsOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2500
    "search for all implementors of aSelector in
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2501
     the classes contained in aCollectionOfClasses and its metaclasses.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2502
     Return a collection of methods"
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2503
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2504
    |list sel srchST srchJava lcSelector|
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2505
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2506
    list := IdentitySet new.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2507
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2508
    ((aSelectorString ~= '*') and:[aSelectorString includesMatchCharacters]) ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2509
        "a matchString"
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2510
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2511
        ignoreCase == true ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2512
            lcSelector := aSelectorString asLowercase.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2513
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2514
            srchST := [:aSelector :aMethod |
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2515
                            (lcSelector match:aSelector asLowercase) ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2516
                                list add:aMethod
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2517
                            ]
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2518
                      ].
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2519
            srchJava := [:aSelector :aMethod |
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2520
                            (aSelector match:aMethod name asLowercase) ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2521
                                list add:aMethod
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2522
                            ]
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2523
                      ].
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2524
        ] ifFalse:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2525
            srchST := [:aSelector :aMethod |
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2526
                            (aSelectorString match:aSelector) ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2527
                                list add:aMethod
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2528
                            ]
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2529
                      ].
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2530
            srchJava := [:aSelector :aMethod |
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2531
                            (aSelectorString match:aMethod name) ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2532
                                list add:aMethod
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2533
                            ]
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2534
                      ].
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2535
        ].
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2536
    ] ifFalse:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2537
        "can do a faster search"
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2538
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2539
        sel := aSelectorString asSymbolIfInterned.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2540
        sel isNil ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2541
            ^ nil
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2542
        ].
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2543
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2544
        ignoreCase == true ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2545
            lcSelector := sel asLowercase.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2546
            srchJava := [:aSelector :aMethod |
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2547
                            "/ allow search for signature AND
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2548
                            "/ search for plain name
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2549
                            ((aMethod name asLowercase = lcSelector)
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2550
                            or:[aSelector asLowercase = lcSelector]) ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2551
                                list add:aMethod
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2552
                            ]
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2553
                        ].
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2554
            srchST := [:aSelector :aMethod |
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2555
                            (aSelector asLowercase = lcSelector) ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2556
                                list add:aMethod
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2557
                            ]
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2558
                        ].
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2559
        ] ifFalse:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2560
            srchJava := [:aSelector :aMethod |
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2561
                            "/ allow search for signature AND
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2562
                            "/ search for plain name
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2563
                            ((aMethod name = sel)
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2564
                            or:[aSelector == sel]) ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2565
                                list add:aMethod
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2566
                            ]
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2567
                        ].
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2568
            srchST := [:aSelector :aMethod |
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2569
                            (aSelector == sel) ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2570
                                list add:aMethod
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2571
                            ]
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2572
                        ].
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2573
        ].
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2574
    ].
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2575
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2576
    aCollectionOfClasses do:[:aClass |
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2577
        |srchBlock|
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2578
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2579
        aClass isObsolete ifFalse:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2580
            aClass isJavaClass ifTrue:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2581
                srchBlock := srchJava
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2582
            ] ifFalse:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2583
                srchBlock := srchST
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2584
            ].
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2585
            aClass methodDictionary keysAndValuesDo:srchBlock.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2586
            aClass isMeta ifFalse:[
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2587
                aClass class methodDictionary keysAndValuesDo:srchBlock
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2588
            ]
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2589
        ]
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2590
    ].
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2591
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2592
    ^ list
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2593
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2594
    "
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2595
     SystemBrowser findImplementorsOf:#+
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2596
                                     in:(Array with:Number
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2597
                                               with:Float
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2598
                                               with:SmallInteger)
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2599
    "
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2600
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2601
!
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2602
2811
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2603
findImplementorsOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2604
    "search for all implementors of any in aCollectionOfSelectors in
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2605
     the classes contained in aCollectionOfClasses and its metaclasses.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2606
     Return a collection of methods.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2607
     CAVEAT: searches multiple times (could be tuned alot if heavily used)"
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2608
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2609
    |implementors|
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2610
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2611
    implementors := IdentitySet new.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2612
    aCollectionOfSelectors do:[:eachSelector |
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2613
        implementors addAll:(self findImplementorsOf:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase).
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2614
    ].
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2615
    ^ implementors
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2616
!
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2617
2741
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  2618
findInstRefsTo:aString in:aCollectionOfClasses access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  2619
    "return all methods in aCollectionOfClasses where the instVar named
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  2620
     aString is referenced; 
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  2621
     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
  2622
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  2623
    ^ self findRefsTo:aString classVars:false in:aCollectionOfClasses access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  2624
!
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  2625
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2626
findInstRefsTo:aString in:aCollectionOfClasses modificationsOnly:modsOnly
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2627
    "return all methods in aCollectionOfClasses where the instVar named
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2628
     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
  2629
     instvar is modified"
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2630
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2631
    ^ self findRefsTo:aString classVars:false in:aCollectionOfClasses modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2632
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2633
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2634
findInstRefsTo:aString inClass:aClass access:accessType
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2635
    "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
  2636
     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
  2637
     instvar is modified"
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2638
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2639
    ^ 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
  2640
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2641
2728
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2642
findInstRefsTo:aString inClass:aClass modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2643
    "return all methods in aClass where the instVar named
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2644
     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
  2645
     instvar is modified"
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2646
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2647
    ^ self findRefsTo:aString classVars:false in:(Array with:aClass) modificationsOnly:modsOnly
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2648
!
5ba2a9de7472 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2692
diff changeset
  2649
2741
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  2650
findInstRefsTo:aString under:aClass access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  2651
    "return all methods in aClass and subclasses
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  2652
     where the classVar named aString is referenced; 
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  2653
     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
  2654
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  2655
    ^ self findInstRefsTo:aString in:(aClass withAllSubclasses) access:accessType
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  2656
!
aedd23d595cd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2736
diff changeset
  2657
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2658
findInstRefsTo:aString under:aClass modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2659
    "return all methods in aClass and subclasses
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2660
     where the instVar named aString is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2661
     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
  2662
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2663
    ^ self findInstRefsTo:aString in:(aClass withAllSubclasses) modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2664
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2665
2736
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2666
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
  2667
    "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
  2668
     varName is referenced; 
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2669
     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
  2670
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2671
    |filter|
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2672
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2673
    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
  2674
    ^ 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
  2675
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2676
    "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2677
     self
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2678
        findRefsTo:'x'
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2679
        classVars:false
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2680
        in:(Array with:Point)
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2681
        modificationsOnly:true
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2682
    "
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2683
!
5b585170e14a added search to find readers of an isntVar
Claus Gittinger <cg@exept.de>
parents: 2729
diff changeset
  2684
2677
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2685
findRefsTo:varName classVars:classVars in:aCollectionOfClasses modificationsOnly:modsOnly
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2686
    "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
  2687
     varName is referenced; 
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2688
     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
  2689
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2690
    |filter|
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2691
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2692
    filter := self filterToSearchRefsTo:varName classVars:classVars modificationsOnly:modsOnly.
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2693
    ^ self findMethodsIn:aCollectionOfClasses inst:true class:classVars where:filter.
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2694
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2695
    "
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2696
     self
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2697
        findRefsTo:'x'
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2698
        classVars:false
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2699
        in:(Array with:Point)
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2700
        modificationsOnly:true
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2701
    "
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2702
!
a5ef0e288aae search protocol enhanced
Claus Gittinger <cg@exept.de>
parents: 2675
diff changeset
  2703
2692
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2704
findResource:aResourceSymbolOrCollectionOfSymbols in:aCollectionOfClasses 
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2705
    "return a collection of all methods in aCollectionOfClasses  
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2706
     containing a resource."
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2707
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2708
    |searchBlock|
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2709
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2710
    aResourceSymbolOrCollectionOfSymbols isSymbol ifTrue:[
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2711
        searchBlock := [:c :m :sel | |resources|
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2712
                            (resources := m resources) size > 0
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2713
                            and:[resources includesKey:aResourceSymbolOrCollectionOfSymbols]
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2714
                       ].
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2715
    ] ifFalse:[
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2716
        searchBlock := [:c :m :sel | |resources|
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2717
                            (resources := m resources) size > 0
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2718
                            and:[resources keys includesAny:aResourceSymbolOrCollectionOfSymbols]
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2719
                       ].
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2720
    ].
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2721
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2722
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2723
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2724
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2725
     SystemBrowser findResource:#image in:(ApplicationModel withAllSubclasses)
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2726
     SystemBrowser findResource:#menu in:(ApplicationModel withAllSubclasses)
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2727
     SystemBrowser findResource:#(menu programMenu) in:(ApplicationModel withAllSubclasses)
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2728
    "
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2729
!
652bbda35217 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2677
diff changeset
  2730
2642
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2731
findSendersOf:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2732
    "search for all senders of aSelector in
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2733
     the classes contained in aCollectionOfClasses and its metaclasses.
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2734
     Return a collection of methods"
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2735
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2736
    ^ self allCallsOn:aSelectorString in:aCollectionOfClasses ignoreCase:ignoreCase
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2737
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2738
    "
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2739
     SystemBrowser findSendersOf:#+
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2740
                   in:(Array with:Number
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2741
                             with:Float
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2742
                             with:SmallInteger)
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2743
                   ignoreCase:false
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2744
    "
cab6366238a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2631
diff changeset
  2745
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2746
!
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2747
2811
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2748
findSendersOfAny:aCollectionOfSelectors in:aCollectionOfClasses ignoreCase:ignoreCase
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2749
    "search for all senders of any selector in aCollectionOfSelectors in
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2750
     the classes contained in aCollectionOfClasses and its metaclasses.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2751
     Return a collection of methods.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2752
     CAVEAT: searches multiple times (could be tuned alot if heavily used)"
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2753
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2754
    |allSenders|
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2755
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2756
    allSenders := IdentitySet new.
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2757
    aCollectionOfSelectors do:[:eachSelector |
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2758
        allSenders addAll:(self allCallsOn:eachSelector in:aCollectionOfClasses ignoreCase:ignoreCase)
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2759
    ].
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2760
    ^ allSenders
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2761
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2762
    "
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2763
     SystemBrowser findSendersOfAny:#(#'+' #'-')
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2764
                   in:(Array with:Number
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2765
                             with:Float
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2766
                             with:SmallInteger)
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2767
                   ignoreCase:false  
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2768
    "
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2769
!
85f8454fbd26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2770
diff changeset
  2770
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2771
findString:aString in:aCollectionOfClasses ignoreCase:ignoreCase
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2772
    "return a colelction of all methods in aCollectionOfClasses  
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2773
     containing a string in their source.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2774
     This may be slow, since source-code has to be scanned."
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2775
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2776
    |browser searchBlock title s|
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2777
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2778
    (aString includesMatchCharacters
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2779
    or:[ignoreCase]) ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2780
        s := '*' , aString , '*'.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2781
        "a matchString"
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2782
        searchBlock := [:c :m :sel | 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2783
                            |src|       
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2784
                            src := m source.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2785
                            src isNil ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2786
                                ('Browser [info]: no source for ' , m printString) infoPrintCR.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2787
                                false
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2788
                            ] ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2789
                                s match:src ignoreCase:ignoreCase
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2790
                            ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2791
                       ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2792
    ] ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2793
        searchBlock := [:c :m :sel | 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2794
                            |src|
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2795
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2796
                            src := m source.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2797
                            src isNil ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2798
                                ('Browser [info]: no source for ' , m printString) infoPrintCR.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2799
                                false
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2800
                            ] ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2801
                                (src findString:aString) ~~ 0
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2802
                            ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2803
                       ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2804
    ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2805
    ^ self findMethodsIn:aCollectionOfClasses where:searchBlock.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2806
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2807
    "
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2808
     SystemBrowser findString:'should'   in:(Array with:Object) ignoreCase:false
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  2809
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2810
! !
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2811
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  2812
!SystemBrowser class methodsFor:'startup'!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2813
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2814
browseAllSelect:aBlock
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2815
    "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
  2816
     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
  2817
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2818
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2819
        browseMethodsWhere:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2820
        title:'selected messages'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2821
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  2822
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2823
     SystemBrowser browseAllSelect:[:aClass :aMethod :selector | selector numArgs == 3]
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  2824
    "
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2825
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2826
    "Modified: 24.1.1997 / 19:45:05 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2827
!
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  2828
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2829
browseClass:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2830
    "launch a browser for aClass"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2831
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2832
    ^ self 
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2833
        newWithLabel:aClass name
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2834
        setupSelector:#setupForClass:
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2835
        arg:aClass
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2836
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2837
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2838
     SystemBrowser browseClass:Object
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2839
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2840
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2841
    "Modified: 24.1.1997 / 19:45:16 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2842
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2843
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2844
browseClass:aClass methodCategory:aCategory
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2845
    "launch a browser for all methods under aCategory in aClass"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2846
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2847
    ^ self newWithLabel:(aClass name , ' ' , aCategory)
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2848
          setupBlock:[:browser | browser setupForClass:aClass methodCategory:aCategory]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2849
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2850
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2851
     SystemBrowser browseClass:String methodCategory:'copying'
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2852
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2853
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2854
    "Modified: 24.1.1997 / 19:45:23 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2855
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2856
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2857
browseClass:aClass selector:selector
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2858
    "launch a browser for the method at selector in aClass"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2859
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2860
    ^ self 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2861
	newWithLabel:(aClass name , ' ' , selector , ' ' , selector)
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2862
	setupBlock:[:newBrowser | newBrowser setupForClass:aClass selector:selector]
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2863
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2864
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2865
     SystemBrowser browseClass:Object selector:#printString
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2866
    "
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2867
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2868
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2869
browseClassCategory:aClassCategory
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2870
    "launch a browser for all classes under aCategory"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2871
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2872
    ^ self 
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2873
        newWithLabel:aClassCategory
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2874
        setupSelector:#setupForClassCategory:
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2875
        arg:aClassCategory
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2876
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2877
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2878
     SystemBrowser browseClassCategory:'Kernel-Objects'
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2879
    "
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2880
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2881
    "Modified: 24.1.1997 / 19:45:32 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2882
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2883
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2884
browseClassHierarchy:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2885
    "launch a browser for aClass and all its superclasses.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2886
     this is different from the fullProtocol browser."
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2887
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2888
    ^ self 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2889
	newWithLabel:(aClass name , '-' , 'hierarchy')
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2890
	setupSelector:#setupForClassHierarchy:
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2891
	arg:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2892
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2893
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2894
     SystemBrowser browseClassHierarchy:Number
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2895
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2896
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2897
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2898
browseClasses:aList title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2899
    "launch a browser for all classes in aList"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2900
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2901
    ^ self 
576
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2902
        newWithLabel:title
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2903
        setupBlock:[:b | b setupForClassList:aList sort:true]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2904
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2905
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2906
     SystemBrowser browseClasses:(Array with:Object
576
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2907
                                        with:Float)
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2908
                           title:'two classes'
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2909
    "
576
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2910
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2911
    "Modified: 28.5.1996 / 13:52:25 / cg"
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2912
!
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2913
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2914
browseClasses:aList title:title sort:doSort
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2915
    "launch a browser for all classes in aList"
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2916
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2917
    ^ self 
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2918
        newWithLabel:title
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2919
        setupBlock:[:b | b setupForClassList:aList sort:doSort]
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2920
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2921
    "
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2922
     SystemBrowser browseClasses:(Array with:Object
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2923
                                        with:Float)
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2924
                           title:'two classes'
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2925
    "
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2926
62dc6c67d71c show subclasses hierarchical (spawn subclasses)
Claus Gittinger <cg@exept.de>
parents: 573
diff changeset
  2927
    "Created: 28.5.1996 / 13:52:09 / cg"
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2928
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  2929
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2930
browseFullClassProtocol:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2931
    "launch a browser for aClasses full protocol.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2932
     This is different from hierarchy browsing."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2933
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2934
    ^ self 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2935
	newWithLabel:(aClass name , '-' , 'full protocol')
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2936
	setupSelector:#setupForFullClassProtocol:
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2937
	arg:aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2938
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2939
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2940
     SystemBrowser browseFullClassProtocol:Number
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2941
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2942
!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2943
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2944
browseFullClasses
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2945
    "launch a browser showing all methods at once"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2946
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2947
    ^ self 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2948
	newWithLabel:'Full Class Browser'
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2949
	setupBlock:[:newBrowser | newBrowser setupForFullClass]
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2950
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2951
    "SystemBrowser browseFullClasses"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2952
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2953
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2954
browseInstMethodsFrom:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2955
    "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
  2956
     where aBlock evaluates to true"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2957
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2958
    ^ self      
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2959
        browseMethodsIn:(aClass withAllSubclasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2960
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2961
        class:false 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2962
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2963
        title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2964
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2965
    "Modified: 24.1.1997 / 19:44:45 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2966
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2967
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2968
browseInstMethodsIn:aCollectionOfClasses where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2969
    "launch a browser for all instance methods of all classes in
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2970
     aCollectionOfClasses where aBlock evaluates to true"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2971
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2972
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2973
        browseMethodsIn:aCollectionOfClasses 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2974
        inst:true class:false 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2975
        where:aBlock title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2976
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2977
    "Modified: 24.1.1997 / 19:43:41 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2978
!
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  2979
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2980
browseInstMethodsOf:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2981
    "launch a browser for all instance methods in aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2982
     where aBlock evaluates to true"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2983
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2984
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2985
        browseMethodsIn:(Array with:aClass) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2986
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2987
        class:false 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2988
        where:aBlock title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2989
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  2990
    "Modified: 24.1.1997 / 19:43:50 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2991
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2992
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2993
browseMethodCategory:aCategory
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2994
    "launch a browser for all methods where category = aCategory"
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2995
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2996
    |searchBlock|
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2997
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  2998
    aCategory includesMatchCharacters ifTrue:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  2999
        searchBlock := [:c :m :s | aCategory match:m category].
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  3000
    ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  3001
        searchBlock := [:c :m :s | m category = aCategory]
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  3002
    ].
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  3003
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  3004
    ^ self browseMethodsWhere:searchBlock title:('all methods with category of ' , aCategory)
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3005
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3006
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3007
     SystemBrowser browseMethodCategory:'printing & storing'
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3008
     SystemBrowser browseMethodCategory:'print*'
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3009
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3010
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3011
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3012
browseMethods:aList title:aString
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3013
    "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
  3014
     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
  3015
     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
  3016
     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
  3017
1919
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3018
    ^ self
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3019
        browseMethods:aList
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3020
        title:aString
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3021
        sort:true
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3022
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3023
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3024
    "
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3025
     SystemBrowser 
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3026
        browseMethods:#('Object printOn:' 'Collection add:')
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3027
        title:'some methods'
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3028
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3029
     SystemBrowser 
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3030
        browseMethods:#('Behavior new:' 'Setclass new:')
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3031
        title:'some new: methods'
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3032
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3033
     SystemBrowser 
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3034
        browseMethods:(Array with:(Object compiledMethodAt:#printOn:)
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3035
                             with:(Collection compiledMethodAt:#add:)
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3036
                             with:(Object class compiledMethodAt:#initialize))
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3037
        title:'some methods'
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3038
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3039
    "
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3040
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3041
    "Modified: 1.11.1996 / 16:30:17 / cg"
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3042
!
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3043
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3044
browseMethods:aList title:aString sort:doSort
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3045
    "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
  3046
     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
  3047
     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
  3048
     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
  3049
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  3050
    |l|
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3051
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3052
    (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
  3053
        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
  3054
        ^ nil
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3055
    ].
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  3056
    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
  3057
    l := l collect:[:entry |
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  3058
        |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
  3059
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  3060
        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
  3061
            entry
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  3062
        ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  3063
            cls := entry mclass.
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  3064
            cls isNil ifTrue:[
1031
5d77c99b877e dont crash when unbound methods are passed
ca
parents: 1018
diff changeset
  3065
                '??? unbound'
5d77c99b877e dont crash when unbound methods are passed
ca
parents: 1018
diff changeset
  3066
            ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  3067
                cls isJavaClass ifTrue:[
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  3068
                    clsName := 'JAVA::' , cls fullName 
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  3069
                ] ifFalse:[
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  3070
                    clsName := cls name
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  3071
                ].
2824
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
  3072
(cls selectorAtMethod:entry) isNil ifTrue:[
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
  3073
    self halt.
85795055a3bf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2822
diff changeset
  3074
].
2822
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  3075
                clsName
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  3076
                , ' ' 
8127e7726fdd changes for environment browsing
Claus Gittinger <cg@exept.de>
parents: 2818
diff changeset
  3077
                , (entry printStringForBrowserWithSelector:(cls selectorAtMethod:entry))
1031
5d77c99b877e dont crash when unbound methods are passed
ca
parents: 1018
diff changeset
  3078
            ]
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  3079
        ]
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  3080
      ].
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  3081
        
1919
0652e55065f9 added sort option to #browserMethods:
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  3082
    doSort ifTrue:[l sort].
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  3083
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3084
    ^ 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
  3085
        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
  3086
        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
  3087
        arg:l 
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  3088
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3089
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3090
     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
  3091
        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
  3092
        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
  3093
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  3094
     SystemBrowser 
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  3095
        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
  3096
        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
  3097
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  3098
     SystemBrowser 
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  3099
        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
  3100
                             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
  3101
                             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
  3102
        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
  3103
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3104
    "
279
062022b53f22 allow browseMethods to be passed a collection of methodObjects (in addition to strings)
Claus Gittinger <cg@exept.de>
parents: 270
diff changeset
  3105
1937
fc541342f2db more support for java code (implementors)
Claus Gittinger <cg@exept.de>
parents: 1931
diff changeset
  3106
    "Modified: / 17.6.1996 / 17:07:46 / stefan"
2826
9d7f11697806 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2824
diff changeset
  3107
    "Modified: / 17.10.1998 / 11:25:53 / cg"
9d7f11697806 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2824
diff changeset
  3108
!
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  3109
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3110
browseMethodsFrom:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3111
    "launch a browser for all instance- and classmethods in aClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3112
     and all its subclasses where aBlock evaluates to true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3113
     The block is called with 3 arguments, class, method and seelctor."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3114
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3115
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3116
        browseMethodsIn:(aClass withAllSubclasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3117
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3118
        title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3119
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3120
    "Modified: 24.1.1997 / 19:44:00 / cg"
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3121
!
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3122
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3123
browseMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3124
    "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
  3125
     classmethods (if wantClass is true) from classes in aCollectionOfClasses,
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3126
     where aBlock evaluates to true.
270
f97a37f5df7a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
  3127
     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
  3128
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3129
    |list|
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  3130
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  3131
    "
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3132
     since this may take a long time, lower my priority ...
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  3133
    "
2295
4e05198e7dd8 execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  3134
    Processor activeProcess 
4e05198e7dd8 execute BG tasks at a prio range, to ensure progress.
Claus Gittinger <cg@exept.de>
parents: 2208
diff changeset
  3135
        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
  3136
    do:[
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3137
        list := self findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3138
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3139
    ^ self browseMethods:list title:title
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  3140
!
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  3141
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3142
browseMethodsIn:aCollectionOfClasses where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3143
    "launch a browser for all instance- and classmethods from 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3144
     all classes in aCollectionOfClasses where aBlock evaluates to true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3145
     The block is called with 3 arguments, class, method and seelctor."
53
2fc78a0165e7 *** empty log message ***
claus
parents: 52
diff changeset
  3146
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3147
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3148
        browseMethodsIn:aCollectionOfClasses 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3149
        inst:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3150
        class:true 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3151
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3152
        title:title
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  3153
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3154
    "Modified: 24.1.1997 / 19:44:17 / cg"
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3155
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3156
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3157
browseMethodsOf:aClass where:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3158
    "launch a browser for all instance- and classmethods in aClass 
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3159
     where aBlock evaluates to true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3160
     The block is called with 3 arguments, class, method and seelctor."
93
claus
parents: 90
diff changeset
  3161
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3162
    ^ self browseMethodsIn:(Array with:aClass) where:aBlock title:title
93
claus
parents: 90
diff changeset
  3163
!
claus
parents: 90
diff changeset
  3164
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3165
browseMethodsWhere:aBlock title:title
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3166
    "launch a browser for all methods where aBlock returns true.
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3167
     The block is called with 3 arguments, class, method and seelctor."
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3168
996
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3169
    ^ self 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3170
        browseMethodsIn:(Smalltalk allClasses) 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3171
        where:aBlock 
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3172
        title:title
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3173
ed470d0b6029 more generic browseAll protocol;
Claus Gittinger <cg@exept.de>
parents: 929
diff changeset
  3174
    "Modified: 24.1.1997 / 19:44:30 / cg"
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3175
!
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3176
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3177
findMethodsIn:aCollectionOfClasses inst:wantInst class:wantClass where:aBlock
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3178
    "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
  3179
     from classes in aCollectionOfClasses, where aBlock evaluates to true."
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3180
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3181
    |list checkedClasses checkBlock|
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3182
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3183
    checkedClasses := IdentitySet new.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3184
    list := OrderedCollection new.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3185
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3186
    checkBlock := [:cls |
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3187
        (checkedClasses includes:cls) ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3188
            cls isObsolete ifTrue:[
2882
2a12342fef79 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2880
diff changeset
  3189
                Transcript showCR:'Browser method search: skipping obsolete class: ' , cls displayString
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3190
            ] ifFalse:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3191
                cls methodDictionary keysAndValuesDo:[:sel :method |
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3192
                    (aBlock value:cls value:method value:sel) ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3193
                        list add:method "/ (cls name , ' ' , sel)
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3194
                    ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3195
                ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3196
                checkedClasses add:cls.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3197
            ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3198
        ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3199
    ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3200
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3201
    aCollectionOfClasses do:[:aClass |
3008
1a45c272b13f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2901
diff changeset
  3202
        (aClass notNil and:[aClass isObsolete not]) ifTrue:[
2675
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3203
            "
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3204
             output disabled - it slows down things too much (when searching for
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3205
             implementors or senders)
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3206
            "
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3207
            wantInst ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3208
"/                Transcript show:'searching '; show:aClass name; showCR:' ...'; endEntry.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3209
                checkBlock value:aClass
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3210
            ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3211
            wantClass ifTrue:[
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3212
"/                Transcript show:'searching '; show:aClass class name; showCR:' ...'; endEntry.
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3213
                checkBlock value:(aClass class)
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3214
            ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3215
            Processor yield
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3216
        ]
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3217
    ].
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3218
    ^ list
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3219
!
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3220
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3221
findMethodsIn:aCollectionOfClasses where:aBlock
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3222
    "return all instance- and classmethods 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3223
     from classes in aCollectionOfClasses, where aBlock evaluates to true."
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3224
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3225
    ^ self
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3226
        findMethodsIn:aCollectionOfClasses 
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3227
        inst:true
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3228
        class:true      
9a1138c3fe76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2655
diff changeset
  3229
        where:aBlock
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3230
! !
93
claus
parents: 90
diff changeset
  3231
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3232
!SystemBrowser class methodsFor:'startup with query'!
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3233
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3234
askThenBrowseClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3235
    self getClassThenPerform:#browseClass:
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3236
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3237
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3238
     SystemBrowser askThenBrowseClass
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3239
    "
93
claus
parents: 90
diff changeset
  3240
!
claus
parents: 90
diff changeset
  3241
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3242
askThenBrowseClassHierarchy
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3243
    self getClassThenPerform:#browseClassHierarchy:
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3244
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3245
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3246
     SystemBrowser askThenBrowseClassHierarchy
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3247
    "
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3248
!
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3249
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3250
askThenBrowseFullClassProtocol
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3251
    self getClassThenPerform:#browseFullClassProtocol:
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3252
203
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
     SystemBrowser askThenBrowseFullClassProtocol
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3255
    "
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3256
!
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3257
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3258
getClassThenPerform:aSelector
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3259
    |enterBox resources|
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3260
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3261
    resources := self classResources.
52
7b48409ae088 *** empty log message ***
claus
parents: 49
diff changeset
  3262
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3263
    enterBox := EnterBox title:(self classResources at:'Browse which class:') withCRs.
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3264
    enterBox okText:(resources at:'browse').
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3265
    enterBox entryCompletionBlock:[:contents |
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3266
        |s what m|
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3267
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3268
        s := contents withoutSpaces.
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3269
        what := Smalltalk classnameCompletion:s.
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3270
        enterBox contents:what first.
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3271
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3272
    enterBox action:[:className |
2729
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3273
        |cls|
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3274
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3275
        cls := Smalltalk classNamed:className.
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3276
        cls isNil ifTrue:[
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3277
            self warn:(resources at:'no such class').
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3278
        ] ifFalse:[
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3279
            self perform:aSelector with:cls  
9af04074a4bb no direct access to super-class-instvars
Claus Gittinger <cg@exept.de>
parents: 2728
diff changeset
  3280
        ]
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3281
    ].
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3282
    enterBox showAtPointer
75
f6310cbc93b6 *** empty log message ***
claus
parents: 72
diff changeset
  3283
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3284
    "
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3285
     SystemBrowser getClassThenPerform:#browseClass:
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3286
    "
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3287
! !
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3288
2813
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3289
!SystemBrowser class methodsFor:'utilities'!
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3290
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3291
extractClassAndSelectorFrom:aString into:aBlock
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3292
    "given a string which can be either 'class>>sel' or
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3293
     'class sel', extract className and selector, and call aBlock with
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3294
     the result.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3295
     Useful to open browser on a method as selected in some documentation."
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3296
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3297
    |sel clsName isMeta sep s|
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3298
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3299
    sel := aString.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3300
    sel notNil ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3301
        sel := sel asString withoutSeparators.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3302
        ('*>>*' match:sel) ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3303
            sep := $>
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3304
        ] ifFalse:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3305
            ('* *' match:sel) ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3306
                sep := Character space
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3307
            ]
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3308
        ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3309
        sep notNil ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3310
            "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3311
             extract class/sel from selection
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3312
            "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3313
            s := ReadStream on:sel.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3314
            clsName := s upTo:sep.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3315
            [s peek == sep] whileTrue:[s next].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3316
            sel := s upToEnd.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3317
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3318
            (clsName endsWith:' class') ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3319
                isMeta := true.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3320
                clsName := clsName copyWithoutLast:6 "copyTo:(clsName size - 5)"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3321
            ] ifFalse:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3322
                isMeta := false
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3323
            ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3324
        ]
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3325
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3326
    aBlock value:clsName value:sel value:isMeta
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3327
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3328
    "Modified: / 17.6.1996 / 16:52:14 / stefan"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3329
    "Created: / 6.2.2000 / 00:51:51 / cg"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3330
    "Modified: / 6.2.2000 / 00:56:43 / cg"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3331
!
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3332
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3333
extractSelectorFrom:aString
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3334
    "given an arbitrary string, try to extract a useful selector.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3335
     Useful to open browser on a selected code fragment."
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3336
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3337
    |s sel t|
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3338
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3339
    aString isNil ifTrue:[^ nil].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3340
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3341
    s := aString asString string.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3342
    s := s withoutSeparators.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3343
    sel := s.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3344
    sel knownAsSymbol ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3345
        "/ might be already correct ...
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3346
        ^ sel
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3347
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3348
    (sel startsWith:'#') ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3349
        t := Symbol readFrom:sel.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3350
        t knownAsSymbol ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3351
            ^ t
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3352
        ]
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3353
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3354
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3355
    t := Parser selectorInExpression:sel.
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3356
    t notNil ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3357
        sel := t
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3358
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3359
    (sel = s or:[sel isNil or:[t == #>>]]) ifTrue:[
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3360
        "oops - thats probably not what we want here ..."
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3361
        self extractClassAndSelectorFrom:s into:[:c :s :m |
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3362
            sel := s
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3363
        ]
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3364
    ].
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3365
    ^ sel
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3366
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3367
    "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3368
     self extractSelectorFrom:'at:put:'      
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3369
     self extractSelectorFrom:'#at:put:'                       
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3370
     self extractSelectorFrom:'at:something put:someValue'     
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3371
     self extractSelectorFrom:'self at:something put:someValue'
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3372
     self extractSelectorFrom:'(self at:something put:someValue)' 
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3373
     self extractSelectorFrom:'[self at:something put:someValue] value' 
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3374
     self extractSelectorFrom:'Array>>at:put:' 
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3375
    "
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3376
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3377
    "Created: / 6.2.2000 / 00:49:44 / cg"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3378
    "Modified: / 6.2.2000 / 00:57:08 / cg"
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3379
! !
ebef400fdd3b code reuse
Claus Gittinger <cg@exept.de>
parents: 2811
diff changeset
  3380
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3381
!SystemBrowser::BrowserHistoryEntry methodsFor:'accessing'!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3382
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3383
className
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3384
    "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
  3385
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3386
    ^ className
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3387
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3388
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3389
className:something
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3390
    "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
  3391
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3392
    className := something.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3393
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3394
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3395
meta
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3396
    "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
  3397
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3398
    ^ meta
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3399
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3400
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3401
meta:something
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3402
    "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
  3403
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3404
    meta := something.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3405
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3406
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3407
selector
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3408
    "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
  3409
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3410
    ^ selector
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3411
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3412
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3413
selector:something
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3414
    "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
  3415
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3416
    selector := something.
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3417
!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3418
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3419
theClass
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3420
    ^ Smalltalk at:className asSymbol
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3421
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3422
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3423
!SystemBrowser::BrowserHistoryEntry methodsFor:'comparing'!
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3424
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3425
= anEntry
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3426
    ^ className = anEntry className
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3427
      and:[meta = anEntry meta
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3428
      and:[selector = anEntry selector]]
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3429
! !
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3430
820
2a412afad51d fixed autoSearch, when searching for a private-classes name
Claus Gittinger <cg@exept.de>
parents: 742
diff changeset
  3431
!SystemBrowser class methodsFor:'documentation'!
93
claus
parents: 90
diff changeset
  3432
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3433
version
3131
883d7b34bb86 history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents: 3125
diff changeset
  3434
    ^ '$Header: /cvs/stx/stx/libtool/SystemBrowser.st,v 1.132 2001-09-10 09:05:55 cg Exp $'
36
ccde5a941840 *** empty log message ***
claus
parents:
diff changeset
  3435
! !
203
de8d39d459fd checkin from browser
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3436
SystemBrowser initialize!