Tools_MethodList.st
author Claus Gittinger <cg@exept.de>
Fri, 08 Jul 2011 08:50:25 +0200
changeset 10274 baa3a285f686
parent 10257 bdc20c20c46c
child 10298 cc70ede4c310
permissions -rw-r--r--
changed: #isAvailable keep the working stuff active, until the experimental stuff is finished.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2000 by eXept Software AG
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
	      All Rights Reserved
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ NameSpace: Tools }"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
BrowserList subclass:#MethodList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:'classes selectedMethodNameIndices methodList lastSelectedMethods
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
		browserNameList variableFilter filterClassVars updateProcess
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
		lastShowClass lastShowCategory lastShowClassFirst
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
		showMethodInheritance lastMethodClass lastMethodClassesSubclasses
6259
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
    21
		classAndSelectorsRedefinedBySubclassesOfClass showClass
8197
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
    22
		showMethodComplexity showMethodTypeIcon
10228
18cbae55c53b coverageInfo aspect lifted
Claus Gittinger <cg@exept.de>
parents: 10200
diff changeset
    23
		showImageResourceMethodsImages'
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
    24
	classVariableNames:'ShowComplexityValue'
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
	poolDictionaries:''
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
	category:'Interface-Browsers-New'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
!MethodList class methodsFor:'documentation'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
copyright
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 COPYRIGHT (c) 2000 by eXept Software AG
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
	      All Rights Reserved
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
 This software is furnished under a license and may be used
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
 only in accordance with the terms of that license and with the
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
 inclusion of the above copyright notice.   This software may not
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
 be provided or otherwise made available to, or used by, any
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
 other person.  No title to or ownership of the software is
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
 hereby transferred.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
!MethodList class methodsFor:'interface specs'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
singleMethodWindowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
    "This resource specification was automatically generated
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
     by the UIPainter of ST/X."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
    "Do not manually edit this!! If it is corrupted,
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
     the UIPainter may not be able to read the specification."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    "
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
     UIPainter new openOnClass:MethodList andSelector:#singleMethodWindowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
     MethodList new openInterface:#singleMethodWindowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
    "
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    <resource: #canvas>
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
    ^ 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
     #(#FullSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
        #name: #singleMethodWindowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
        #window: 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
       #(#WindowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
          #label: 'SingleSelectorList'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
          #name: 'SingleSelectorList'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
          #min: #(#Point 0 0)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
          #max: #(#Point 1024 721)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
          #bounds: #(#Rectangle 12 22 312 322)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
        )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
        #component: 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
       #(#SpecCollection
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
          #collection: #(
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
           #(#LabelSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
              #label: 'MethodName'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
              #name: 'MethodLabel'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
              #layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 25 0)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
              #translateLabel: true
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
              #labelChannel: #methodLabelHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
              #menu: #menuHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
           )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
           )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
         
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
        )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
      )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
    "Modified: / 1.3.2000 / 20:50:15 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
windowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
    "This resource specification was automatically generated
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
     by the UIPainter of ST/X."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
    "Do not manually edit this!! If it is corrupted,
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
     the UIPainter may not be able to read the specification."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
    "
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
     UIPainter new openOnClass:MethodList andSelector:#windowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
     MethodList new openInterface:#windowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
     MethodList open
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
    "
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
    <resource: #canvas>
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
    ^ 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
     #(#FullSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
        #name: #windowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
        #window: 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
       #(#WindowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
          #label: 'SelectorList'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
          #name: 'SelectorList'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
          #min: #(#Point 0 0)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
          #bounds: #(#Rectangle 12 22 312 322)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
        )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
        #component: 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
       #(#SpecCollection
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
          #collection: #(
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
           #(#SequenceViewSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
              #name: 'List'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
              #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
              #tabable: true
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
              #model: #selectedMethodNameIndices
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
              #menu: #menuHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
              #hasHorizontalScrollBar: true
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
              #hasVerticalScrollBar: true
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
              #miniScrollerHorizontal: true
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
              #isMultiSelect: true
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
              #valueChangeSelector: #selectionChangedByClick
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
              #useIndex: true
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
              #sequenceList: #browserNameList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
              #doubleClickChannel: #doubleClickChannel
6774
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   133
              #properties: 
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   134
             #(#PropertyListDictionary
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   135
                #dragArgument: nil
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   136
                #dropArgument: nil
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   137
                #canDropSelector: #canDropContext:
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   138
                #dropSelector: #doDropContext:
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   139
              )
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
            )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
           )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
         
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
        )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
      )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
!MethodList class methodsFor:'plugIn spec'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
aspectSelectors
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
    "This resource specification was automatically generated
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
     by the UIPainter of ST/X."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
    "Do not manually edit this. If it is corrupted,
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
     the UIPainter may not be able to read the specification."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
    "Return a description of exported aspects;
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
     these can be connected to aspects of an embedding application
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
     (if this app is embedded in a subCanvas)."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
    ^ #(
9421
7f9db26667e2 changed: #aspectSelectors
Claus Gittinger <cg@exept.de>
parents: 9252
diff changeset
   161
        "/ #classHolder
6259
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   162
        #(#doubleClickChannel #action )
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   163
        #forceGeneratorTrigger
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   164
        #immediateUpdate
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   165
        #inGeneratorHolder
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   166
        #menuHolder
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   167
        #methodCategoryHolder
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   168
        #packageFilter
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   169
        #selectedMethods
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   170
        #selectionChangeCondition
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   171
        #updateTrigger
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   172
        #variableFilter
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   173
        #filterClassVars
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   174
        #showMethodInheritance
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   175
        #showMethodComplexity
6268
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   176
        #showMethodTypeIcon
8197
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   177
        #showImageResourceMethodsImages
6259
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   178
        #sortBy
9438
199fea3d5cef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9433
diff changeset
   179
        #showCoverageInformation
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
      ).
9421
7f9db26667e2 changed: #aspectSelectors
Claus Gittinger <cg@exept.de>
parents: 9252
diff changeset
   181
9438
199fea3d5cef *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9433
diff changeset
   182
    "Modified: / 27-04-2010 / 16:13:57 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
!MethodList methodsFor:'aspects'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
browserNameList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
    browserNameList isNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
	browserNameList := List new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
    ^ browserNameList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
    "Modified: / 31.1.2000 / 00:42:44 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
    "Created: / 5.2.2000 / 22:38:32 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
defaultSlaveModeValue
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
    ^ false.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
filterClassVars
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
    filterClassVars isNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
	filterClassVars := false asValue.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
	filterClassVars addDependent:self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
    ^  filterClassVars
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
filterClassVars:aValueHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
    filterClassVars notNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
	filterClassVars removeDependent:self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
    filterClassVars := aValueHolder.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
    filterClassVars notNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
	filterClassVars addDependent:self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   218
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
methodLabelHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
    ^ self pseudoListLabelHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   221
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
    "Created: / 1.3.2000 / 20:50:07 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   223
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   224
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
methodList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
    ^ methodList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
selectedMethodNameIndices
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
    selectedMethodNameIndices isNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
	selectedMethodNameIndices := ValueHolder new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
	selectedMethodNameIndices addDependent:self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   234
    ^ selectedMethodNameIndices.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   235
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
    "Modified: / 5.2.2000 / 00:31:48 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
    "Created: / 5.2.2000 / 22:59:31 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
selectedMethods
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
    ^ self selectionHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
selectedMethods:aValueHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
    ^ self selectionHolder:aValueHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
8197
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   248
showImageResourceMethodsImages
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   249
    showImageResourceMethodsImages isNil ifTrue:[
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   250
        showImageResourceMethodsImages := false asValue.
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   251
        showImageResourceMethodsImages addDependent:self
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   252
    ].
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   253
    ^  showImageResourceMethodsImages
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   254
!
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   255
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   256
showImageResourceMethodsImages:aValueHolder
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   257
    showImageResourceMethodsImages notNil ifTrue:[
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   258
        showImageResourceMethodsImages removeDependent:self
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   259
    ].
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   260
    showImageResourceMethodsImages := aValueHolder.
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   261
    showImageResourceMethodsImages notNil ifTrue:[
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   262
        showImageResourceMethodsImages addDependent:self
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   263
    ].
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   264
!
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
   265
6259
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   266
showMethodComplexity
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   267
    showMethodComplexity isNil ifTrue:[
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   268
        showMethodComplexity := false asValue.
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   269
        showMethodComplexity addDependent:self
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   270
    ].
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   271
    ^  showMethodComplexity
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   272
!
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   273
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   274
showMethodComplexity:aValueHolder
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   275
    showMethodComplexity notNil ifTrue:[
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   276
        showMethodComplexity removeDependent:self
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   277
    ].
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   278
    showMethodComplexity := aValueHolder.
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   279
    showMethodComplexity notNil ifTrue:[
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   280
        showMethodComplexity addDependent:self
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   281
    ].
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   282
!
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   283
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
showMethodInheritance
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
    showMethodInheritance isNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
	showMethodInheritance := false asValue.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
	showMethodInheritance addDependent:self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   289
    ^  showMethodInheritance
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
showMethodInheritance:aValueHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   293
    showMethodInheritance notNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
	showMethodInheritance removeDependent:self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   295
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   296
    showMethodInheritance := aValueHolder.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   297
    showMethodInheritance notNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
	showMethodInheritance addDependent:self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   301
6268
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   302
showMethodTypeIcon
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   303
    showMethodTypeIcon isNil ifTrue:[
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   304
        showMethodTypeIcon := true asValue.
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   305
        showMethodTypeIcon addDependent:self
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   306
    ].
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   307
    ^  showMethodTypeIcon
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   308
!
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   309
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   310
showMethodTypeIcon:aValueHolder
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   311
    showMethodTypeIcon notNil ifTrue:[
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   312
        showMethodTypeIcon removeDependent:self
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   313
    ].
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   314
    showMethodTypeIcon := aValueHolder.
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   315
    showMethodTypeIcon notNil ifTrue:[
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   316
        showMethodTypeIcon addDependent:self
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   317
    ].
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   318
!
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
   319
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
variableFilter
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
    variableFilter isNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
	variableFilter := nil asValue.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
	variableFilter addDependent:self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
    ^  variableFilter
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
variableFilter:aValueHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
    variableFilter notNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
	variableFilter removeDependent:self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
    variableFilter := aValueHolder.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
    variableFilter notNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
	variableFilter addDependent:self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
!MethodList methodsFor:'change & update'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
delayedUpdate:something with:aParameter from:changedObject
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
    |cls sel oldMethod newMethod methods newSelection
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
     selectionHolder selection needSelectionChange|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   343
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   344
    selectionHolder := self selectedMethods.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   345
    selection := selectionHolder value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   346
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   347
    changedObject == Smalltalk ifTrue:[
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   348
        classes notNil ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   349
            something == #methodCategory ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   350
                "/ ignore here - methodCategoryList will tell me if required
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   351
                ^ self
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   352
            ].
6663
1453d4f33815 changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6575
diff changeset
   353
            (something == #classOrganization
1453d4f33815 changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6575
diff changeset
   354
            or:[ something == #methodCategoryAdded
1453d4f33815 changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6575
diff changeset
   355
            or:[ something == #methodCategoryRemoved
1453d4f33815 changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6575
diff changeset
   356
            or:[ something == #methodCategoriesRemoved
1453d4f33815 changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6575
diff changeset
   357
            or:[ something == #methodCategoryRenamed ]]]]) ifTrue:[
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   358
                "/ ignore here - methodCategoryList will tell me if required
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   359
                ^ self
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   360
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   362
            something == #methodInClass ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   363
                "/ a method has been added/changed
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   364
                cls := aParameter at:1.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   365
                (classes includesIdentical:cls) ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   366
                    sel := aParameter at:2.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   367
                    oldMethod := aParameter at:3.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   368
                    newMethod := cls compiledMethodAt:sel.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   369
                    (oldMethod notNil and:[newMethod notNil]) ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   370
                        "a method was changed & acccepted;
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   371
                         No need for a rescan of the methodDictionary;
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   372
                         however, ensure that the refs to the old method are updated
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   373
                        "
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   374
                        methods := selection.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   375
                        methods size > 0 ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   376
                            (methods includesIdentical:oldMethod) ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   377
                                needSelectionChange := true.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   378
                            ]
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   379
                        ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   380
                        methodList replaceAllIdentical:oldMethod with:newMethod.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   381
                        lastSelectedMethods notNil ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   382
                            lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   383
                        ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   384
                        methods size > 0 ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   385
                            methods := methods asOrderedCollection.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   386
                            methods replaceAllIdentical:oldMethod with:newMethod.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   387
                        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   388
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   389
                        needSelectionChange == true ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   390
                            selectionHolder setValue:methods.
6575
94f336bcb07b update notifiaction from other browsers (refix)
Claus Gittinger <cg@exept.de>
parents: 6490
diff changeset
   391
                            "/ self enqueueDelayedMethodsSelectionChanged.
94f336bcb07b update notifiaction from other browsers (refix)
Claus Gittinger <cg@exept.de>
parents: 6490
diff changeset
   392
                            "/ need this to inform my browser that method was changed
94f336bcb07b update notifiaction from other browsers (refix)
Claus Gittinger <cg@exept.de>
parents: 6490
diff changeset
   393
                            "/ by someone else.
94f336bcb07b update notifiaction from other browsers (refix)
Claus Gittinger <cg@exept.de>
parents: 6490
diff changeset
   394
                            selectionHolder changed.
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   395
                        ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   396
                        (variableFilter value size > 0
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   397
                        or:[oldMethod package ~= newMethod package
6260
9e7aa671f1b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6259
diff changeset
   398
                        or:[oldMethod resources ~= newMethod resources
6694
a746318dd357 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6663
diff changeset
   399
                        or:[showMethodComplexity value == true]]]) ifTrue:[
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   400
                            "/ only update that methods entry
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   401
                            self updateListEntryFor:newMethod.    
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   402
                            "/ sigh - must invalidate
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   403
                            "/ self invalidateList.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   404
                        ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   405
                        ^ self.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   406
                    ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   407
                    "/ method was added - update the methodList
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   408
                    "/ Q: is this needed (methodCategoryList should send me a new inGenerator)
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   409
                    self invalidateList.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   410
                ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   411
                ^ self.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   412
            ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   413
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   414
            something == #methodInClassRemoved ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   415
                cls := aParameter at:1.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   416
                (classes includesIdentical:cls) ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   417
                    sel := aParameter at:2.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   418
                    "/ method was removed - update the methodList
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   419
                    "/ Q: is this needed (methodCategoryList should send me a new inGenerator)
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   420
                    self invalidateList.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   421
                ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   422
                ^ self.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   423
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   424
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   425
            (something == #methodTrap 
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   426
            or:[ something == #privacyOfMethod ]) ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   427
                cls := aParameter at:1.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   428
                sel := aParameter at:2.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   429
                (classes includesIdentical:cls) ifFalse:[ ^ self].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   430
                newMethod := cls compiledMethodAt:sel.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   431
                newMethod isNil ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   432
                    self invalidateList.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   433
                    ^ self
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   434
                ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   435
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   436
                (something == #privacyOfMethod) ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   437
                    self updateListEntryFor:newMethod.    
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   438
                ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   439
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   440
                (something == #methodTrap) ifTrue:[ 
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   441
                    newMethod isWrapped ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   442
                        oldMethod := newMethod originalMethod
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   443
                    ] ifFalse:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   444
                        selection size > 0 ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   445
                            oldMethod := selection detect:[:each | each isWrapped and:[each originalMethod == newMethod]] ifNone:nil.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   446
                        ]
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   447
                    ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   448
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   449
                    selection size > 0 ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   450
                        (selection includesIdentical:oldMethod) ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   451
                            needSelectionChange := true.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   452
                        ]
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   453
                    ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   454
                    methodList replaceAllIdentical:oldMethod with:newMethod.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   455
                    lastSelectedMethods notNil ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   456
                        lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   457
                    ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   458
                    selection size > 0 ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   459
                        selection := selection asOrderedCollection.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   460
                        selection replaceAllIdentical:oldMethod with:newMethod.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   461
                    ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   462
                    needSelectionChange == true ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   463
                        selectionHolder changed.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   464
                    ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   465
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   466
                    "/ actually, could just change that single item ...
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   467
                    "/ ... might be cheaper, if list is huge.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   468
                    "/ only update that methods entry
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   469
                    self updateListEntryFor:newMethod.    
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   470
                    "/ self invalidateList.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   471
                ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   472
                ^ self
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   473
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
6846
b7d2d17e4ae5 testresult indicators
Claus Gittinger <cg@exept.de>
parents: 6841
diff changeset
   475
            (something == #projectOrganization
b7d2d17e4ae5 testresult indicators
Claus Gittinger <cg@exept.de>
parents: 6841
diff changeset
   476
            or:[something == #lastTestRunResult]) ifTrue:[
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   477
                aParameter notNil ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   478
                    cls := aParameter at:1.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   479
                    cls notNil ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   480
                        ((classes includesIdentical:cls theNonMetaclass)
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   481
                        or:[(classes includesIdentical:cls theMetaclass)]) ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   482
                            self invalidateList.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   483
                        ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   484
                    ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   485
                ] ifFalse:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   486
                    self invalidateList.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   487
                ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   488
                ^ self
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   489
            ].
6846
b7d2d17e4ae5 testresult indicators
Claus Gittinger <cg@exept.de>
parents: 6841
diff changeset
   490
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   491
            "/ everything else is ignored
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   492
            "/ self halt.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   493
        ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   494
        ^ self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   495
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   496
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   497
"/    something == #organization ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   498
"/self halt:'no longer'.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   499
"/^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   500
"/        "/ a methods cateory has changed
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   501
"/        (classes includesIdentical:changedObject) ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
"/            aParameter isSymbol ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   503
"/                "/ a method with a new category
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   504
"/                (self methodList includesIdentical:(changedObject compiledMethodAt:aParameter)) ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   505
"/                    self invalidateList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   506
"/                ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   507
"/                ^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
"/            ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
"/            "/ a new category (no method yet)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
"/            self invalidateList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
"/        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   512
"/        ^ self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   513
"/    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   514
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   515
"/    something == #methodDictionary ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   516
"/self halt:'no longer'.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   517
"/^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   518
"/        "/ a method has been added/removed
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   519
"/        (classes includesIdentical:changedObject) ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
"/            aParameter isArray ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   521
"/                sel := aParameter at:1.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   522
"/                oldMethod := aParameter at:2.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   523
"/                newMethod := changedObject compiledMethodAt:sel.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
"/                oldMethod notNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
"/                    "a method was changed & acccepted;
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
"/                     No need for a rescan of the methodDictionary;
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
"/                     however, ensure that the refs to the old method are updated
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   528
"/                    "
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   529
"/                    methods := selection.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   530
"/                    methods size > 0 ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
"/                        (methods includesIdentical:oldMethod) ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
"/                            needSelectionChange := true.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
"/                        ]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
"/                    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
"/                    methodList replaceAllIdentical:oldMethod with:newMethod.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   536
"/                    lastSelectedMethods notNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
"/                        lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
"/                    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   539
"/                    methods size > 0 ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   540
"/                        methods := methods asOrderedCollection.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   541
"/                        methods replaceAllIdentical:oldMethod with:newMethod.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
"/                    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   543
"/                    needSelectionChange == true ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   544
"/                        selectionHolder setValue:methods.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   545
"/                        selectionHolder changed.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   546
"/                    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   547
"/                    ^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   548
"/                ]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   549
"/            ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   550
"/            "/ class has changed must update the methodList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   551
"/            self invalidateList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   552
"/        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   553
"/        ^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   554
"/    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   555
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
"/    something == #projectOrganization ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
"/        ((classes includesIdentical:changedObject theNonMetaclass)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   558
"/        or:[(classes includesIdentical:changedObject theMetaclass)]) ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   559
"/            self invalidateList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   560
"/        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   561
"/        ^ self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   562
"/    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   563
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   564
    changedObject == sortBy ifTrue:[
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   565
        listValid ~~ true ifTrue:[  "/ could be nil
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   566
            inGeneratorHolder value isNil ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   567
                "/ ok, no need to react on that one 
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   568
                "/ (will invalidate anyway, once I have more info at hand)
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   569
                ^ self
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   570
            ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   571
        ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   572
        self invalidateList.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   573
        ^ self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   574
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   575
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   576
    (changedObject == variableFilter
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   577
    or:[changedObject == filterClassVars
6259
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   578
    or:[changedObject == showMethodInheritance
e440c14b02aa experimental display of method complexity
Claus Gittinger <cg@exept.de>
parents: 5998
diff changeset
   579
    or:[changedObject == showMethodComplexity]]]) ifTrue:[
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   580
        self invalidateList.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   581
        ^  self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   582
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   583
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   584
    changedObject == selectedMethodNameIndices ifTrue:[
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   585
        newSelection := self selectedMethodNameIndices value collect:[:idx | methodList at:idx].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   586
        newSelection ~= selection ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   587
            selectionHolder value:newSelection.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   588
            lastSelectedMethods := newSelection.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   589
            lastSelectedMethods notNil ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   590
                lastSelectedMethods := lastSelectedMethods asOrderedCollection
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   591
            ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   592
        ] ifFalse:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   593
            "/ a reselect - force update
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
"/            selection size == 1 ifTrue:[
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   595
                selectionHolder setValue:newSelection.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   596
                selectionHolder changed:#value.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   597
"/            ].
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   598
        ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   599
        ^ self 
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   600
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   601
    changedObject == selectionHolder ifTrue:[
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   602
        self selectedMethodsChanged.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   603
        lastSelectedMethods := selectionHolder value.
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   604
        lastSelectedMethods notNil ifTrue:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   605
            lastSelectedMethods := lastSelectedMethods asOrderedCollection
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   606
        ].
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   607
        ^ self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
"/    something == #methodTrap ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   610
"/self halt:'no longer'.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
"/^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   612
"/        (classes includesIdentical:changedObject) ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   613
"/            newMethod := changedObject compiledMethodAt:aParameter.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   614
"/            newMethod isNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   615
"/                self invalidateList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   616
"/                ^ self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
"/            ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   618
"/            newMethod isWrapped ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   619
"/                oldMethod := newMethod originalMethod
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   620
"/            ] ifFalse:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   621
"/                selection size > 0 ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   622
"/                    oldMethod := selection detect:[:each | each isWrapped and:[each originalMethod == newMethod]] ifNone:nil.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   623
"/                ]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   624
"/            ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   625
"/
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   626
"/            selection size > 0 ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   627
"/                (selection includesIdentical:oldMethod) ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   628
"/                    needSelectionChange := true.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   629
"/                ]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   630
"/            ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   631
"/"/            methodList replaceAllIdentical:oldMethod with:newMethod.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   632
"/            lastSelectedMethods notNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   633
"/                lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   634
"/            ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   635
"/            selection size > 0 ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   636
"/                selection := selection asOrderedCollection.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   637
"/                selection replaceAllIdentical:oldMethod with:newMethod.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   638
"/            ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   639
"/            needSelectionChange == true ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   640
"/                selectionHolder changed.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   641
"/            ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   642
"/            self invalidateList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   643
"/            ^ self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   644
"/        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   645
"/        ^ self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   646
"/    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   647
    super delayedUpdate:something with:aParameter from:changedObject
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   648
6846
b7d2d17e4ae5 testresult indicators
Claus Gittinger <cg@exept.de>
parents: 6841
diff changeset
   649
    "Created: / 05-02-2000 / 13:42:14 / cg"
b7d2d17e4ae5 testresult indicators
Claus Gittinger <cg@exept.de>
parents: 6841
diff changeset
   650
    "Modified: / 06-08-2006 / 10:36:49 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   651
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   652
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   653
selectedMethodsChanged
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   654
    "the set of selected methods has changed;
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   655
     update the selection-index collection (for the selectionInListView)"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   656
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   657
    |indices methods reverseMap 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   658
     selectedMethodsHolder selectedMethods selectedMethodNameIndicesHolder|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   659
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   660
    methods := methodList ? #().
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   661
    methods size == 0 ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   662
	"/ this may happen during early startup, 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   663
	"/ when invoked with a preset methodSelection,
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   664
	"/ and the methodGenerator has not yet been setup
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   665
	"/ to not clobber the selection, defer the update
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   666
	"/ until the methodList arrives ...
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   667
	^ self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   668
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   669
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   670
    selectedMethodsHolder := self selectedMethods.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   671
    selectedMethods := selectedMethodsHolder value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   672
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   673
    "/ check if all is selected (likely)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   674
    ((selectedMethods size == methodList size)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   675
    and:[selectedMethods = methodList]) ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   676
	indices := (1 to:selectedMethods size)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   677
    ] ifFalse:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   678
	selectedMethods size > 100 ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   679
	    "/ check if all is selected (likely)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   680
	    ((selectedMethods size == methodList size)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   681
	    and:[selectedMethods = methodList]) ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   682
		indices := (1 to:selectedMethods size)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   683
	    ] ifFalse:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   684
		"/ for big collections, generate a reverse map
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   685
		reverseMap := IdentityDictionary new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   686
		methods keysAndValuesDo:[:idx :mthd | reverseMap at:mthd put:idx].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   687
		indices := selectedMethods collect:[:eachSelectedMethod |
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   688
		    reverseMap at:eachSelectedMethod ifAbsent:0
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   689
		]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   690
	    ]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   691
	] ifFalse:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   692
	    indices := (selectedMethods ? #()) collect:[:eachSelectedMethod |
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   693
		methods identityIndexOf:eachSelectedMethod.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   694
	    ]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   695
	].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   696
	indices := indices select:[:idx | idx ~= 0].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   697
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   698
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   699
    selectedMethodNameIndicesHolder := self selectedMethodNameIndices.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   700
    selectedMethodNameIndicesHolder value ~= indices ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   701
	selectedMethodNameIndicesHolder value:indices.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   702
    ]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   703
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   704
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   705
selectionChanged
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   706
    |methods|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   707
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   708
    methods := ((self selectedMethodNameIndices value) ? #()) collect:[:idx | methodList at:idx].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   709
    methods notEmpty ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   710
	lastSelectedMethods := methods asOrderedCollection.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   711
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   712
    "/ to allow reselect, change my valueHolder, even if the same collection
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   713
"/    self selectedMethods value ~= methods ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   714
	self selectedMethods value:methods
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   715
"/    ]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   716
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   717
    "Created: / 5.2.2000 / 13:42:14 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   718
    "Modified: / 5.2.2000 / 23:32:20 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   719
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   720
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   721
selectionChangedByClick
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   722
    "we are not interested in that - get another notification
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   723
     via the changed valueHolder"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   724
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   725
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   726
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   727
update:something with:aParameter from:changedObject
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   728
    |cls|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   729
10228
18cbae55c53b coverageInfo aspect lifted
Claus Gittinger <cg@exept.de>
parents: 10200
diff changeset
   730
changedObject == showCoverageInformation ifTrue:[self halt].
18cbae55c53b coverageInfo aspect lifted
Claus Gittinger <cg@exept.de>
parents: 10200
diff changeset
   731
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   732
    "/ some can be ignored immediately
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   733
    changedObject == Smalltalk ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   734
        classes isNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   735
            ^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   736
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   737
        something isNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   738
            "/ self halt "/ huh - Smalltalk changed - so what ?
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   739
            ^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   740
        ].
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   741
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   742
        something == #classComment ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   743
            ^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   744
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   745
        something == #classVariables ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   746
            ^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   747
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   748
        something == #organization ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   749
            ^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   750
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   751
        something == #methodCategory ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   752
            "/ ignore here - methodCategoryList will tell me if required
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   753
            ^ self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   754
        ].
6663
1453d4f33815 changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6575
diff changeset
   755
        (something == #classOrganization
1453d4f33815 changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6575
diff changeset
   756
        or:[ something == #methodCategoryAdded
1453d4f33815 changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6575
diff changeset
   757
        or:[ something == #methodCategoryRemoved
1453d4f33815 changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6575
diff changeset
   758
        or:[ something == #methodCategoriesRemoved
1453d4f33815 changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6575
diff changeset
   759
        or:[ something == #methodCategoryRenamed ]]]]) ifTrue:[
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   760
            "/ ignore here - methodCategoryList will tell me if required
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   761
            ^ self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   762
        ].
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   763
        (something == #methodTrap 
6846
b7d2d17e4ae5 testresult indicators
Claus Gittinger <cg@exept.de>
parents: 6841
diff changeset
   764
        or:[ something == #methodPrivacy
b7d2d17e4ae5 testresult indicators
Claus Gittinger <cg@exept.de>
parents: 6841
diff changeset
   765
        or:[ something == #lastTestRunResult] ]) ifTrue:[
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   766
            self window shown ifFalse:[
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   767
                changedObject removeDependent:self. "/ ?????
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   768
                ^ self
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   769
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   770
            cls := aParameter at:1.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   771
            (classes includesIdentical:cls) ifFalse:[
5998
6e40a20b361a icons & privacy update
Claus Gittinger <cg@exept.de>
parents: 5885
diff changeset
   772
                ^ self   "/ I dont care for that class
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   773
            ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   774
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   775
6846
b7d2d17e4ae5 testresult indicators
Claus Gittinger <cg@exept.de>
parents: 6841
diff changeset
   776
        "/ as the organisation changes, flush my remembered redefinition-cache-info
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   777
        classAndSelectorsRedefinedBySubclassesOfClass := nil.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   778
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   779
        something == #classDefinition ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   780
            cls := aParameter.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   781
            (classes contains:[:aClass | aClass name == cls name]) ifFalse:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   782
                ^ self   "/ I dont care for that class
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   783
            ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   784
            classes := classes collect:[:eachClass | eachClass isMeta ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   785
                                                         (Smalltalk at:eachClass theNonMetaclass name) class 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   786
                                                     ] ifFalse:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   787
                                                         Smalltalk at:eachClass name
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   788
                                                     ]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   789
                                       ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   790
            self updateList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   791
            ^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   792
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   793
        something == #newClass ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   794
            ^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   795
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   796
        something == #classRemove ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   797
            ^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   798
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   799
        something == #classRename ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   800
            ^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   801
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   802
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   803
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   804
    "/ these must lead to immediate update of the selectedMethods collection
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   805
    "/ (otherwise, that collection might be updated too late, leading to
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   806
    "/ an obsolete methods code being shown by the codeView.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   807
    something == #methodInClass ifTrue:[
6846
b7d2d17e4ae5 testresult indicators
Claus Gittinger <cg@exept.de>
parents: 6841
diff changeset
   808
        "/ as the organisation changes, flush my remembered redefinition-cache-info
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   809
        classAndSelectorsRedefinedBySubclassesOfClass := nil.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   810
        cls := aParameter at:1.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   811
        (classes includesIdentical:cls) ifFalse:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   812
            ^ self   "/ I dont care for that class
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   813
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   814
        self enqueueDelayedUpdate:something with:aParameter from:changedObject.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   815
        ^ self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   816
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   817
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   818
    something == #methodInClassRemoved ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   819
        cls := aParameter at:1.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   820
        (classes includesIdentical:cls) ifFalse:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   821
            ^ self   "/ I dont care for that class
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   822
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   823
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   824
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   825
    super update:something with:aParameter from:changedObject
6846
b7d2d17e4ae5 testresult indicators
Claus Gittinger <cg@exept.de>
parents: 6841
diff changeset
   826
10228
18cbae55c53b coverageInfo aspect lifted
Claus Gittinger <cg@exept.de>
parents: 10200
diff changeset
   827
    "Modified: / 06-07-2011 / 19:50:58 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   828
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   829
6774
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   830
!MethodList methodsFor:'drag & drop'!
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   831
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   832
canDropContext:aDropContext
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   833
    |methods|
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   834
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   835
    aDropContext sourceWidget == aDropContext targetWidget ifTrue:[^ false].
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   836
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   837
    methods := aDropContext dropObjects collect:[:obj | obj theObject].
7122
e672979a8111 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7057
diff changeset
   838
    (methods conform:[:aMethod | aMethod isMethod]) ifFalse:[^ false].
6774
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   839
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   840
    self masterApplication theSingleSelectedClass isNil ifTrue:[^ false].
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   841
    ^ true
7122
e672979a8111 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7057
diff changeset
   842
e672979a8111 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7057
diff changeset
   843
    "Modified: / 13-09-2006 / 11:43:54 / cg"
6774
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   844
!
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   845
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   846
doDropContext:aDropContext
8596
731b9e2442d9 better drop
Claus Gittinger <cg@exept.de>
parents: 8474
diff changeset
   847
    |methods browser|
6774
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   848
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   849
    methods := aDropContext dropObjects collect:[:aDropObject | aDropObject theObject].
7122
e672979a8111 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7057
diff changeset
   850
    (methods conform:[:something | something isMethod]) ifFalse:[^ self].
6774
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   851
8596
731b9e2442d9 better drop
Claus Gittinger <cg@exept.de>
parents: 8474
diff changeset
   852
    browser := self masterApplication.
731b9e2442d9 better drop
Claus Gittinger <cg@exept.de>
parents: 8474
diff changeset
   853
    aDropContext dragType == DropContext dragTypeCopy ifTrue:[
731b9e2442d9 better drop
Claus Gittinger <cg@exept.de>
parents: 8474
diff changeset
   854
        browser
731b9e2442d9 better drop
Claus Gittinger <cg@exept.de>
parents: 8474
diff changeset
   855
            copyMethods:methods 
731b9e2442d9 better drop
Claus Gittinger <cg@exept.de>
parents: 8474
diff changeset
   856
            toClass:(browser theSingleSelectedClass).
731b9e2442d9 better drop
Claus Gittinger <cg@exept.de>
parents: 8474
diff changeset
   857
    ] ifFalse:[
731b9e2442d9 better drop
Claus Gittinger <cg@exept.de>
parents: 8474
diff changeset
   858
        browser
731b9e2442d9 better drop
Claus Gittinger <cg@exept.de>
parents: 8474
diff changeset
   859
            moveMethods:methods 
731b9e2442d9 better drop
Claus Gittinger <cg@exept.de>
parents: 8474
diff changeset
   860
            toClass:(browser theSingleSelectedClass).
731b9e2442d9 better drop
Claus Gittinger <cg@exept.de>
parents: 8474
diff changeset
   861
    ].
7122
e672979a8111 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7057
diff changeset
   862
e672979a8111 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7057
diff changeset
   863
    "Modified: / 13-09-2006 / 11:43:44 / cg"
6774
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   864
! !
ae9ed5b0b548 move method via drag and drop
Claus Gittinger <cg@exept.de>
parents: 6697
diff changeset
   865
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   866
!MethodList methodsFor:'private'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   867
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   868
listOfMethodNames
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   869
    |methods entries selectorBag newNameList allClasses newClasses 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   870
     allCategories                 "allSelectors"
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   871
     generator doShowClass doShowClassFirst doShowCategory enforceClassAndProtocolInList theMethod sortByClass anyMethodToWatch mclass|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   872
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   873
    generator := inGeneratorHolder value.
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   874
    generator isNil ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   875
        ^ #()
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   876
    ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   877
    allClasses := IdentitySet new.
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   878
    allCategories := IdentitySet new.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   879
    
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   880
    "/ allSelectors := Set new.
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   881
    
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   882
    newClasses := IdentitySet new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   883
    selectorBag := Bag new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   884
    entries := OrderedCollection new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   885
    enforceClassAndProtocolInList := false.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   886
    anyMethodToWatch := false.
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   887
    
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   888
    "/ generator generates nil-selector entries
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   889
    "/ to pass multiple-class and multiple-protocol info
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   890
    
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   891
    generator do:[:cls :cat :sel :mthd | 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   892
        (cls isNil and:[ cat isNil and:[ sel isNil ] ]) ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   893
            enforceClassAndProtocolInList := true
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   894
        ] ifFalse:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   895
            cls notNil ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   896
                allClasses add:cls.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   897
            ].
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   898
            cat notNil ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   899
                allCategories add:cat.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   900
            ].
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   901
             "JV: Filter method through package filter"
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   902
            (mthd notNil 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   903
                and:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   904
                    mthd isSynthetic not 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   905
                        and:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   906
                            sel notNil 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   907
                                and:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   908
                                    packageFilter value isNil 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   909
                                        or:[ packageFilter value includes:mthd package ]
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   910
                                ]
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   911
                        ]
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   912
                ]) 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   913
                    ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   914
                        entries add:(Array 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   915
                                    with:cls
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   916
                                    with:sel
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   917
                                    with:mthd).
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   918
                        selectorBag add:sel.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   919
                        newClasses add:cls.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   920
                        
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   921
                        "/ allSelectors add:sel.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   922
                    ]
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   923
        ].
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   924
        (mthd notNil and:[ mthd isWrapped ]) ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   925
            (mthd isTiming or:[ mthd isCounting or:[ mthd isCountingMemoryUsage ] ]) ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   926
                anyMethodToWatch := true
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   927
            ]
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   928
        ].
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   929
    ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   930
    showMethodInheritance value ~~ false ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   931
        "/ collect redefinition information once (big speedup for #methodIsRedefinedbelow)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   932
        classAndSelectorsRedefinedBySubclassesOfClass isNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   933
            classAndSelectorsRedefinedBySubclassesOfClass := IdentityDictionary new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   934
        ].
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   935
        allClasses do:[:cls | 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   936
            |d|
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   937
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   938
            d := classAndSelectorsRedefinedBySubclassesOfClass.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   939
            (d notNil and:[ (d includesKey:cls) not ]) ifTrue:[
8206
b500138740eb *** empty log message ***
fm
parents: 8198
diff changeset
   940
                cls isLoaded ifTrue:[
b500138740eb *** empty log message ***
fm
parents: 8198
diff changeset
   941
                    d at:cls put:(self setOfAllSelectorsImplementedBelow:cls)
b500138740eb *** empty log message ***
fm
parents: 8198
diff changeset
   942
                ]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   943
            ]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   944
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   945
    ].
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   946
    
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   947
    "/ multiple classes must: add the className for some
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   948
    
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   949
    doShowClass := enforceClassAndProtocolInList or:[ allClasses size > 1 ].
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   950
    
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   951
    "/ multiple categories: must add the categorie for some
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   952
    
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   953
    doShowCategory := enforceClassAndProtocolInList 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   954
                or:[ allCategories size > 1 ].
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   955
    doShowClassFirst := doShowClass.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   956
    doShowClassFirst := doShowClass and:[ sortBy value == #class ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   957
    sortBy value == false ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   958
        "/ do not sort
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   959
    ] ifFalse:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   960
        (doShowClass not and:[ sortBy value == #class ]) ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   961
            "/ multiple classes must add the className for some
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   962
            "/ check, if doShowClass must be enforced
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   963
            entries do:[:entry | 
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   964
                |cls sel mthd s needClass|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   965
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   966
                cls := entry at:1.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   967
                sel := entry at:2.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   968
                mthd := entry at:3.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   969
                doShowClass ifFalse:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   970
                    doShowClass := (selectorBag occurrencesOf:sel) > 1
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   971
                ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   972
            ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   973
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   974
        sortByClass := doShowClass and:[ sortBy value == #class ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   975
        sortByClass ifTrue:[
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   976
            entries 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   977
                sort:[:a :b | 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   978
                    |nmA nmB clsNmA clsNmB nsNmA nsNmB|
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   979
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   980
                    clsNmA := (a at:1) name.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   981
                    clsNmB := (b at:1) name.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   982
                    clsNmA = clsNmB ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   983
                        nmA := (a at:2) asSymbol selector.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   984
                        nmB := (b at:2) asSymbol selector.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   985
                        nmA = nmB ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   986
                            nsNmA := (a at:3) nameSpaceName.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   987
                            nsNmB := (b at:3) nameSpaceName.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   988
                            nsNmA < nsNmB
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   989
                        ] ifFalse:[ nmA < nmB ]
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   990
                    ] ifFalse:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   991
                        clsNmA < clsNmB
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   992
                    ]
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   993
                ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   994
        ] ifFalse:[
7610
3f630d7a4a1a sort by category
Claus Gittinger <cg@exept.de>
parents: 7502
diff changeset
   995
            sortBy value == #category ifTrue:[
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   996
                entries 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   997
                    sort:[:a :b | 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   998
                        |nmA nmB catA catB clsNmA clsNmB nsNmA nsNmB|
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
   999
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1000
                        catA := (a at:3) category.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1001
                        catB := (b at:3) category.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1002
                        catA = catB ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1003
                            nmA := (a at:2) asSymbol selector.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1004
                            nmB := (b at:2) asSymbol selector.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1005
                            nmA = nmB ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1006
                                clsNmA := (a at:1) name.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1007
                                clsNmB := (b at:1) name.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1008
                                clsNmA = clsNmB ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1009
                                    nsNmA := (a at:3) nameSpaceName.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1010
                                    nsNmB := (b at:3) nameSpaceName.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1011
                                    nsNmA < nsNmB
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1012
                                ] ifFalse:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1013
                                    clsNmA < clsNmB
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1014
                                ]
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1015
                            ] ifFalse:[ nmA < nmB ]
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1016
                        ] ifFalse:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1017
                            catA < catB
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1018
                        ]
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1019
                    ].
7610
3f630d7a4a1a sort by category
Claus Gittinger <cg@exept.de>
parents: 7502
diff changeset
  1020
            ] ifFalse:[
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1021
                entries 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1022
                    sort:[:a :b | 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1023
                        |nmA nmB clsNmA clsNmB nsNmA nsNmB|
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1024
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1025
                        nmA := (a at:2) asSymbol selector.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1026
                        nmB := (b at:2) asSymbol selector.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1027
                        nmA = nmB ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1028
                            clsNmA := (a at:1) name.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1029
                            clsNmB := (b at:1) name.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1030
                            clsNmA = clsNmB ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1031
                                nsNmA := (a at:3) nameSpaceName.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1032
                                nsNmB := (b at:3) nameSpaceName.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1033
                                nsNmA < nsNmB
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1034
                            ] ifFalse:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1035
                                clsNmA < clsNmB
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1036
                            ]
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1037
                        ] ifFalse:[ nmA < nmB ]
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1038
                    ].
7610
3f630d7a4a1a sort by category
Claus Gittinger <cg@exept.de>
parents: 7502
diff changeset
  1039
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1040
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1041
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1042
    methods := OrderedCollection new:(entries size).
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1043
    
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1044
    "/ first generate the new methodList, and see if it is different ...
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1045
    
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1046
    entries do:[:entry | 
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1047
        |sel mthd|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1048
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1049
        mthd := entry at:3.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1050
        methods add:mthd.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1051
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1052
    false "methodList = methods" "does not care for changed icons" ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1053
        "/ same list
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1054
        newNameList := self browserNameList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1055
    ] ifFalse:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1056
        newNameList := OrderedCollection new:(entries size).
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1057
        
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1058
        "/ multiple classes must add the className for some
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1059
        
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1060
        entries do:[:entry | 
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1061
            |cls sel mthd s needClass|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1062
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1063
            cls := entry at:1.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1064
            sel := entry at:2.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1065
            mthd := entry at:3.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1066
            needClass := doShowClass.
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1067
            
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1068
"/        needClass ifFalse:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1069
"/            needClass := (selectorBag occurrencesOf:sel) > 1
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1070
"/        ].
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1071
            
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1072
            s := self 
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1073
                        listEntryForMethod:mthd
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1074
                        selector:sel
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1075
                        class:cls
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1076
                        showClass:needClass
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1077
                        showCategory:doShowCategory
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1078
                        classFirst:doShowClassFirst.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1079
            
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1080
"/        s := mthd printStringForBrowserWithSelector:sel inClass:cls.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1081
"/        needClass ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1082
"/            s := s , ' [' , cls name , ']'.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1083
"/        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1084
"/        doShowCategory ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1085
"/            s := s , ' {' , mthd category "asText allItalic" , '}'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1086
"/        ].
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1087
            
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1088
            newNameList add:s.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1089
        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1090
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1091
    self makeIndependent.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1092
    classes := newClasses.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1093
    self makeDependent.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1094
    methodList := methods.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1095
    methods size == 1 ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1096
        theMethod := methods first.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1097
        mclass := theMethod mclass.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1098
        mclass isNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1099
            theMethod isWrapped ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1100
                theMethod := theMethod originalMethod.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1101
                mclass := theMethod mclass.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1102
            ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1103
        ].
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1104
        self methodLabelHolder value:(mclass isNil 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1105
                    ifTrue:[ ('???' , ' ' , '???') ]
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1106
                    ifFalse:[ (mclass name , ' ' , theMethod selector) ])
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1107
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1108
    anyMethodToWatch ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1109
        self startWatchProcess.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1110
    ] ifFalse:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1111
        self stopWatchProcess.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1112
    ].
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1113
    
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1114
    "/ remember these, in case of an incremental (single method only)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1115
    "/ update in the future.
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1116
    
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1117
    lastShowClass := doShowClass.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1118
    lastShowClassFirst := doShowClassFirst.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1119
    lastShowCategory := doShowCategory.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1120
    ^ newNameList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1121
7610
3f630d7a4a1a sort by category
Claus Gittinger <cg@exept.de>
parents: 7502
diff changeset
  1122
    "Created: / 05-02-2000 / 22:43:40 / cg"
3f630d7a4a1a sort by category
Claus Gittinger <cg@exept.de>
parents: 7502
diff changeset
  1123
    "Modified: / 26-01-2007 / 14:58:59 / cg"
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1124
    "Modified: / 20-07-2010 / 11:21:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1125
    "Modified: / 24-08-2010 / 20:34:09 / Jan Vrany <enter your email here>"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1126
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1127
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1128
makeDependent
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1129
    Smalltalk addDependent:self.
7502
a6cf14a9d385 preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7122
diff changeset
  1130
"/    ChangeSet addDependent:self.
a6cf14a9d385 preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7122
diff changeset
  1131
a6cf14a9d385 preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7122
diff changeset
  1132
    "Modified: / 10-11-2006 / 17:57:01 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1133
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1134
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1135
makeIndependent
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1136
    Smalltalk removeDependent:self.
8218
01508d17559b dont forget to make independent
fm
parents: 8206
diff changeset
  1137
"/    ChangeSet removeDependent:self.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1138
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1139
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1140
method:mthd includesModsOfClassVariable:variablesToHighLight
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1141
    ^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#modifiedClassVars
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1142
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1143
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1144
method:mthd includesModsOfInstanceVariable:variablesToHighLight
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1145
    ^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#modifiedInstVars
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1146
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1147
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1148
method:mthd includesRefsToClassVariable:variablesToHighLight
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1149
    ^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#usedClassVars
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1150
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1151
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1152
method:mthd includesRefsToInstanceVariable:variablesToHighLight
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1153
    ^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#usedInstVars
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1154
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1155
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1156
method:mthd includesRefsToVariable:variablesToHighLight askParserWith:querySelector
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1157
    |cls src parser usedVars anyVarNameAccessable|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1158
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1159
    cls := mthd mclass.
5885
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1160
    cls isNil ifTrue:[^ false].
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1161
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1162
    anyVarNameAccessable := cls allInstVarNames includesAny:variablesToHighLight.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1163
    anyVarNameAccessable ifFalse:[
5885
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1164
        anyVarNameAccessable := cls theNonMetaclass allClassVarNames includesAny:variablesToHighLight.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1165
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1166
    anyVarNameAccessable ifFalse:[
5885
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1167
        "/ no need to parse
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1168
        ^ false
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1169
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1170
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1171
    src := mthd source.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1172
    src notNil ifTrue:[
5885
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1173
        "
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1174
         before doing a slow parse, quickly scan the
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1175
         methods source for the variables name ...
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1176
        "
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1177
        (variablesToHighLight contains:[:varName | (src findString:varName) ~~ 0]) ifTrue:[
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1178
            parser := Parser
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1179
                            parseMethod:src 
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1180
                            in:cls 
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1181
                            ignoreErrors:true 
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1182
                            ignoreWarnings:true.
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1183
            (parser notNil and:[parser ~~ #Error]) ifTrue:[
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1184
                usedVars := parser perform:querySelector.
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1185
                (usedVars includesAny:variablesToHighLight)
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1186
                ifTrue:[
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1187
                    ^  true
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1188
                ]
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1189
            ]
26dee2c80ea9 care for unbound methods
Claus Gittinger <cg@exept.de>
parents: 5761
diff changeset
  1190
        ]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1191
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1192
    ^ false
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1193
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1194
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1195
methodIsInheritedFromAbove:aMethod
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1196
    |mClass|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1197
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1198
    mClass := aMethod mclass.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1199
    (mClass notNil and:[mClass superclass notNil]) ifTrue:[
6789
6e87cc2011a7 Do not use obsolete method
Stefan Vogel <sv@exept.de>
parents: 6774
diff changeset
  1200
        ^ (mClass superclass whichClassIncludesSelector:aMethod selector) notNil.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1201
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1202
    ^ false
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1203
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1204
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1205
methodIsRedefinedBelow:aMethod
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1206
    |mclass subClasses setOfRedefinedSelectors|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1207
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1208
    mclass := aMethod mclass.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1209
    mclass isNil ifTrue:[^ false].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1210
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1211
    "/ if possible, make use of info prepared by listOfMethodNames
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1212
    classAndSelectorsRedefinedBySubclassesOfClass notNil
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1213
    ifTrue:[
9004
fbd6a4c325f6 changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents: 8644
diff changeset
  1214
        setOfRedefinedSelectors := classAndSelectorsRedefinedBySubclassesOfClass at:mclass ifAbsent:nil.
fbd6a4c325f6 changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents: 8644
diff changeset
  1215
        setOfRedefinedSelectors notNil ifTrue:[
fbd6a4c325f6 changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents: 8644
diff changeset
  1216
            ^ setOfRedefinedSelectors includes:aMethod selector
fbd6a4c325f6 changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents: 8644
diff changeset
  1217
        ]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1218
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1219
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1220
    lastMethodClass == mclass ifTrue:[
9004
fbd6a4c325f6 changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents: 8644
diff changeset
  1221
        subClasses := lastMethodClassesSubclasses
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1222
    ] ifFalse:[
9004
fbd6a4c325f6 changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents: 8644
diff changeset
  1223
        subClasses := aMethod mclass allSubclasses.
fbd6a4c325f6 changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents: 8644
diff changeset
  1224
        lastMethodClassesSubclasses := subClasses.
fbd6a4c325f6 changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents: 8644
diff changeset
  1225
        lastMethodClass := mclass.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1226
    ].
9004
fbd6a4c325f6 changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents: 8644
diff changeset
  1227
    ^ subClasses contains:[:cls | cls includesSelector:aMethod selector].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1228
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1229
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1230
redefinedOrInheritedIconFor:aMethod
5761
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5591
diff changeset
  1231
    |inherited redefined subclassResponsibility|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1232
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1233
    inherited := self methodIsInheritedFromAbove:aMethod.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1234
    redefined := self methodIsRedefinedBelow:aMethod.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1235
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1236
    inherited ifTrue:[
5761
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5591
diff changeset
  1237
        redefined ifTrue:[
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5591
diff changeset
  1238
            ^ self methodInheritedFromAboveAndRedefinedBelowIcon.
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5591
diff changeset
  1239
        ].
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5591
diff changeset
  1240
        ^ self methodInheritedFromAboveIcon.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1241
    ].
5761
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5591
diff changeset
  1242
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5591
diff changeset
  1243
    subclassResponsibility := aMethod sends:#subclassResponsibility.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1244
    redefined ifTrue:[
5761
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5591
diff changeset
  1245
        subclassResponsibility ifTrue:[
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5591
diff changeset
  1246
            ^ self methodIsSubclassResponsibilityAndRedefinedBelowIcon.
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5591
diff changeset
  1247
        ].
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5591
diff changeset
  1248
        ^ self methodRedefinedBelowIcon.
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5591
diff changeset
  1249
    ].
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5591
diff changeset
  1250
    subclassResponsibility ifTrue:[
b350e042dc9f Icons for subclassResponsibility and deprecated methods
Stefan Vogel <sv@exept.de>
parents: 5591
diff changeset
  1251
        ^ self methodIsSubclassResponsibilityIcon.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1252
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1253
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1254
    ^ self methodEmptyInheritedIcon
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1255
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1256
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1257
release
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1258
    super release.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1259
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1260
    filterClassVars removeDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1261
    selectedMethodNameIndices removeDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1262
    showMethodInheritance removeDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1263
    variableFilter removeDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1264
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1265
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1266
resourceIconForMethod:aMethod
6903
1fb966ff068c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6846
diff changeset
  1267
    ^ SystemBrowser resourceIconForMethod:aMethod
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1268
6903
1fb966ff068c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6846
diff changeset
  1269
    "Modified: / 17-08-2006 / 09:09:01 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1270
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1271
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1272
setOfAllSelectorsImplementedBelow:aClass
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1273
    |set|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1274
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1275
    set := IdentitySet new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1276
    aClass allSubclassesDo:[:eachSubclass |
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1277
	set addAll:(eachSubclass methodDictionary keys).
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1278
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1279
    ^ set
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1280
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1281
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1282
updateList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1283
    |prevSelection newList newSelection newSelIdx reverseMap sameContents newListSize oldListSize
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1284
     prevClasses methodSet selectedMethodsHolder|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1285
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1286
    selectedMethodsHolder := self selectedMethods.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1287
    prevSelection := selectedMethodsHolder value ? #().
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1288
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1289
    prevClasses := classes ifNil:[ #() ] ifNotNil:[ classes copy ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1290
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1291
    oldListSize := self browserNameList size.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1292
8644
bf28461ddc2b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8638
diff changeset
  1293
        self topApplication withWaitCursorDo:[
bf28461ddc2b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8638
diff changeset
  1294
            newList := self listOfMethodNames.
bf28461ddc2b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8638
diff changeset
  1295
        ].
7702
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1296
        newListSize := newList size.
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1297
        sameContents := self updateListFor:newList.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1298
7702
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1299
        sameContents ifFalse:[
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1300
    "/            self browserNameList value:newList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1301
7702
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1302
            (prevSelection size == 0 
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1303
            and:[selectedMethodsHolder value size ~~ 0]) ifTrue:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1304
                "/ this happens during early startup time,
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1305
                "/ when the selection is already (pre-)set,
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1306
                "/ and the methodList is generated the first time
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1307
                "/ (i.e. when opened with preset selection
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1308
7702
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1309
                "/ do not clobber the selection in this case.
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1310
                prevSelection := selectedMethodsHolder value.
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1311
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1312
7702
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1313
            (methodList size == 0 or:[prevSelection size == 0]) ifTrue:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1314
                newSelection := #()
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1315
            ] ifFalse:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1316
                methodSet := methodList.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1317
7702
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1318
                "/ inclusion test is much faster with sets, if the number of items is large
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1319
                methodList size > 30 ifTrue:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1320
                    "/ however, only if its worth building the set ...
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1321
                    prevSelection size > 5 ifTrue:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1322
                        methodSet := methodSet asIdentitySet.
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1323
                    ]
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1324
                ].
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1325
                newSelection := prevSelection select:[:item | methodSet includesIdentical:item].
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1326
            ].
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1327
            newSelection size > 0 ifTrue:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1328
                newSelection size > 100 ifTrue:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1329
                    "/ need selection indices - might be expensive if done straight forward...
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1330
                    reverseMap := IdentityDictionary new.
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1331
                    methodList keysAndValuesDo:[:idx :mthd | reverseMap at:mthd put:idx].
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1332
                    newSelIdx := newSelection collect:[:mthd | reverseMap at:mthd].
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1333
                ] ifFalse:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1334
                    newSelIdx := newSelection collect:[:mthd | methodList identityIndexOf:mthd]
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1335
                ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1336
"/ self halt.
7702
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1337
                "/ force change (for dependents)
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1338
                newSelIdx ~= selectedMethodNameIndices value ifTrue:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1339
                    selectedMethodNameIndices value:newSelIdx.
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1340
                ].
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1341
            ] ifFalse:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1342
                lastSelectedMethods := selectedMethodsHolder value.
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1343
                lastSelectedMethods notNil ifTrue:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1344
                    lastSelectedMethods := lastSelectedMethods asOrderedCollection
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1345
                ].
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1346
                selectedMethodNameIndices value size > 0 ifTrue:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1347
                    selectedMethodNameIndices value:#().
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1348
                ]
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1349
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1350
7702
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1351
            newSelection ~= prevSelection ifTrue:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1352
                self selectionChanged.
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1353
            ]
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1354
        ] ifTrue:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1355
            "/ same list - but classes might have changed
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1356
            "/ that is the case, if the class selection has been changed,
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1357
            "/ to another class which has the same categories.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1358
7702
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1359
            (prevClasses size ~= classes size 
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1360
            or:[prevClasses asOrderedCollection ~= (classes ? #()) asOrderedCollection ]) ifTrue:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1361
                (newListSize > 0 or:[oldListSize > 0]) ifTrue:[
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1362
                    self selectionChanged.
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1363
                ]
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1364
            ]
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1365
        ]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1366
    "/ ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1367
7702
2d1ef9372f1f avoid useless redraw
Claus Gittinger <cg@exept.de>
parents: 7610
diff changeset
  1368
    "Modified: / 05-03-2007 / 16:07:24 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1369
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1370
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1371
updateListEntryFor:aMethod
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1372
    "update my list for a single method.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1373
     (used when a single methods package, code or whatever changes, and a full udpate
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1374
      would be too slow)"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1375
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1376
    |s idx|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1377
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1378
    s := self 
6268
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
  1379
            listEntryForMethod:aMethod 
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
  1380
            selector:aMethod selector 
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
  1381
            class:aMethod mclass 
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
  1382
            showClass:lastShowClass 
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
  1383
            showCategory:lastShowCategory
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
  1384
            classFirst:lastShowClassFirst.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1385
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1386
    idx := methodList identityIndexOf:aMethod.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1387
    idx == 0 ifTrue:[
6268
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
  1388
        aMethod isWrapped ifTrue:[
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
  1389
            idx := methodList identityIndexOf:aMethod originalMethod.
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
  1390
        ]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1391
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1392
    idx == 0 ifTrue:[
6268
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
  1393
        self invalidateList
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1394
    ] ifFalse:[
6268
df63cb5277cc metrics display
Claus Gittinger <cg@exept.de>
parents: 6261
diff changeset
  1395
        self browserNameList at:idx put:s.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1396
    ]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1397
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1398
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1399
!MethodList methodsFor:'private-presentation'!
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1400
9451
79d033f585b9 added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents: 9448
diff changeset
  1401
colorForCoverageInformationOfMethod:aMethod
9430
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1402
    aMethod isInstrumented ifFalse:[^ nil].
9448
f9258f99d465 changed: #emphasisForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents: 9438
diff changeset
  1403
    aMethod category = 'documentation' ifTrue:[^ nil].
9430
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1404
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1405
    aMethod hasBeenCalled ifTrue:[
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1406
        aMethod haveAllBlocksBeenExecuted ifTrue:[
9451
79d033f585b9 added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents: 9448
diff changeset
  1407
            ^ UserPreferences current colorForInstrumentedFullyCoveredCode
9430
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1408
        ].
9451
79d033f585b9 added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents: 9448
diff changeset
  1409
        ^ UserPreferences current colorForInstrumentedPartiallyCoveredCode
9430
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1410
    ].
9451
79d033f585b9 added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents: 9448
diff changeset
  1411
    ^ UserPreferences current colorForInstrumentedNeverCalledCode
9430
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1412
9451
79d033f585b9 added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents: 9448
diff changeset
  1413
    "Created: / 30-04-2010 / 11:53:38 / cg"
9430
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1414
!
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1415
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1416
listEntryForMethod:aMethod selector:selector class:cls showClass:showClass showCategory:showCategory classFirst:showClassFirst
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1417
    "answer a method list entry 
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1418
     gimmics: 
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1419
        adding a little image to breakPointed methods,
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1420
        inheritance indicators,
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1421
        highlight accessors of variable"
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1422
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1423
    |clsName s icn variablesToHighlight classVarsToHighLight 
9451
79d033f585b9 added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents: 9448
diff changeset
  1424
     doHighLight doHighLightRed clr emp cat l redefIcon 
7502
a6cf14a9d385 preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7122
diff changeset
  1425
     metrics complexity complexityString complexityIcon mark|
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1426
9038
9b56d0b8c38e required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 9004
diff changeset
  1427
    aMethod isNil ifTrue:[
9b56d0b8c38e required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 9004
diff changeset
  1428
        "/ a non-existing (pseudo) method (such as required protocol)
9b56d0b8c38e required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 9004
diff changeset
  1429
        ^ selector colorizeAllWith:Color red.
9b56d0b8c38e required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 9004
diff changeset
  1430
    ].
9b56d0b8c38e required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 9004
diff changeset
  1431
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1432
    aMethod isAssociation ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1433
        self halt:'should not happen'.
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1434
    ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1435
8638
2283abcb54ff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8637
diff changeset
  1436
    selector isNil ifTrue:[
2283abcb54ff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8637
diff changeset
  1437
        s := '???'
2283abcb54ff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8637
diff changeset
  1438
    ] ifFalse:[
2283abcb54ff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8637
diff changeset
  1439
        s := aMethod printStringForBrowserWithSelector:selector inClass:cls.
2283abcb54ff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8637
diff changeset
  1440
    ].
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1441
    showClassFirst ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1442
        clsName := cls nameInBrowser.
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1443
        s := clsName , ' ' , s allBold
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1444
    ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1445
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1446
    "/
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1447
    "/ wrap icons (i.e. break- or trace points)
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1448
    "/ have higher prio ...
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1449
    "/
9038
9b56d0b8c38e required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 9004
diff changeset
  1450
    (aMethod notNil and:[aMethod isWrapped]) ifTrue:[
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1451
        (s endsWith:' !!') ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1452
            s := s copyWithoutLast:2
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1453
        ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1454
        aMethod isBreakpointed ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1455
            icn := self stopIcon
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1456
        ] ifFalse:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1457
            aMethod isTimed ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1458
                icn := self timeIcon
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1459
            ] ifFalse:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1460
                icn := self traceIcon
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1461
            ]
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1462
        ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1463
    ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1464
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1465
    icn isNil ifTrue:[
8198
f4b0d497d1e6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8197
diff changeset
  1466
        self showImageResourceMethodsImages value ~~ false ifTrue:[
9252
ee7770f155ca changed: #listEntryForMethod:selector:class:showClass:showCategory:classFirst:
Claus Gittinger <cg@exept.de>
parents: 9038
diff changeset
  1467
            (aMethod hasImageResource) ifTrue:[
8474
301be082b20d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8218
diff changeset
  1468
                aMethod mclass isMeta ifTrue:[
301be082b20d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8218
diff changeset
  1469
                    icn := aMethod valueWithReceiver:nil arguments:nil .
8197
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1470
                ].
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1471
            ].
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1472
        ].
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1473
    ].
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1474
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1475
    icn isNil ifTrue:[
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1476
        showMethodTypeIcon value ~~ false ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1477
            icn := self resourceIconForMethod:aMethod.
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1478
        ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1479
        icn isNil ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1480
            aMethod isProtected ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1481
                icn := self protectedMethodIcon
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1482
            ] ifFalse:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1483
                aMethod isPrivate ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1484
                    icn := self privateMethodIcon
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1485
                ] ifFalse:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1486
                    (aMethod isIgnored) ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1487
                        icn := self ignoredMethodIcon
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1488
                    ] ifFalse:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1489
                        (aMethod isJavaMethod and:[aMethod isAbstract]) ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1490
                            icn := self abstractMethodIcon
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1491
                        ]
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1492
                    ]
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1493
                ]
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1494
            ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1495
        ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1496
    ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1497
    icn isNil ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1498
        (selector startsWith:'test') ifTrue:[
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1499
            ((cls isSubclassOf:TestCase) 
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1500
            and:[cls isAbstract not]) ifTrue:[
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1501
                cls lastTestRunResultOrNil "== false" notNil ifTrue:[
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1502
                    (cls testSelectorFailed:selector) ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1503
                        icn := SystemBrowser testCaseFailedIcon
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1504
                    ] ifFalse:[
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1505
                        (cls testSelectorPassed: selector) ifTrue:
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1506
                            [icn := SystemBrowser testCasePassedIcon]
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1507
                    ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1508
                ]
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1509
            ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1510
        ]
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1511
    ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1512
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1513
    showClass ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1514
        showClassFirst ifFalse:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1515
            s := s , ' [' , cls name allBold , ']'.
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1516
        ]
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1517
    ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1518
    showCategory ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1519
        cat := aMethod category.
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1520
        cat notNil ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1521
            s := s , ' {' , cat "asText allItalic" , '}'
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1522
        ]
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1523
    ].
7502
a6cf14a9d385 preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7122
diff changeset
  1524
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1525
    self showCoverageInformation value ifTrue:[
9451
79d033f585b9 added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents: 9448
diff changeset
  1526
        clr := self colorForCoverageInformationOfMethod:aMethod.
79d033f585b9 added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents: 9448
diff changeset
  1527
        clr notNil ifTrue:[
79d033f585b9 added: #colorForCoverageInformationOfMethod:
Claus Gittinger <cg@exept.de>
parents: 9448
diff changeset
  1528
            s := self colorize:s with:(#color->clr).
9430
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1529
            "/ aMethod isInstrumented ifTrue:[
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1530
            "/     icn := self instrumentationIcon
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1531
            "/ ].
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1532
        ].
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1533
    ] ifFalse:[
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1534
        (ChangeSet current includesChangeForClass:cls selector:selector) ifTrue:[
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1535
            mark := self class markForBeingInChangeList.
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1536
            "/ mark := self colorizeForChangedCode:mark.
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1537
            s := s , mark.
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1538
            "/ cg: I dont know why this was disabled - it is req'd to
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1539
            "/ see changed methods in a method list (implementors...)
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1540
            s := self colorizeForChangedCode:s.
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1541
        ].
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1542
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1543
        (SmallTeam notNil and:[SmallTeam includesChangeForClass:cls selector:selector]) ifTrue:[
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1544
            s := (self colorizeForChangedCodeInSmallTeam:'!! '),s
3b61a075fd04 coverage-info colorization
Claus Gittinger <cg@exept.de>
parents: 9427
diff changeset
  1545
        ].
6841
6d72f92ed6cd mark changed methods with a '*'
Claus Gittinger <cg@exept.de>
parents: 6789
diff changeset
  1546
    ].
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1547
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1548
    variablesToHighlight := variableFilter value.
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1549
    variablesToHighlight size > 0 ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1550
        classVarsToHighLight := filterClassVars value.
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1551
        classVarsToHighLight ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1552
            doHighLight := self method:aMethod includesRefsToClassVariable:variablesToHighlight.
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1553
            doHighLight ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1554
                doHighLightRed := self method:aMethod includesModsOfClassVariable:variablesToHighlight.
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1555
            ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1556
        ] ifFalse:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1557
            doHighLight := self method:aMethod includesRefsToInstanceVariable:variablesToHighlight.
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1558
            doHighLight ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1559
                doHighLightRed := self method:aMethod includesModsOfInstanceVariable:variablesToHighlight
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1560
            ]
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1561
        ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1562
        doHighLight ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1563
            s := s allBold.
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1564
            doHighLightRed ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1565
                emp := (UserPreferences current emphasisForWrittenVariable)
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1566
            ] ifFalse:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1567
                emp := (UserPreferences current emphasisForReadVariable)
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1568
            ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1569
            s := s emphasisAllAdd:emp
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1570
        ]
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1571
    ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1572
6694
a746318dd357 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6663
diff changeset
  1573
    (showMethodComplexity value == true 
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1574
    and:[ OOM::MethodMetrics notNil ]) ifTrue:[
8197
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1575
        icn isNil ifTrue:[
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1576
                metrics := OOM::MethodMetrics forMethod:aMethod.
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1577
                complexity := metrics complexity ? 0.
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1578
                complexityIcon := OOM::MethodMetrics iconForComplexity:complexity.
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1579
8197
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1580
                ShowComplexityValue == true ifTrue:[
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1581
                    complexityString := '{' , complexity printString , '}'.
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1582
                    s := complexityString , ' ' , s.
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1583
                ].
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1584
                "/ icn := icn ? complexityIcon.
3b1c5bd94fdd preps for showResourceImages
Claus Gittinger <cg@exept.de>
parents: 7994
diff changeset
  1585
                s := LabelAndIcon icon:complexityIcon string:s.
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1586
        ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1587
    ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1588
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1589
    showMethodInheritance value ~~ false ifTrue:[
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1590
        redefIcon := self redefinedOrInheritedIconFor:aMethod.
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1591
    ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1592
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1593
    (icn notNil or:[redefIcon notNil]) ifTrue:[
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1594
        "/eXept version
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1595
        "/l := LabelAndIcon icon:redefIcon string:s.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1596
        "/l image:icn.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1597
        "/JV:
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1598
        l := LabelAndIcon icon:icn string:s.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1599
        l image:redefIcon.
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1600
        icn ifNil:[l offset: 13].
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1601
        l gap:1.
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1602
        ^ l
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1603
    ].
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1604
    ^ s
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1605
6841
6d72f92ed6cd mark changed methods with a '*'
Claus Gittinger <cg@exept.de>
parents: 6789
diff changeset
  1606
    "Created: / 22-10-1996 / 19:51:00 / cg"
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1607
    "Modified: / 30-04-2010 / 11:54:32 / cg"
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1608
    "Modified: / 15-08-2009 / 13:13:32 / Jan Vrany <vranyj1@fel.cvut.cz>"
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1609
    "Modified: / 15-03-2010 / 18:16:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
6271
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1610
! !
e0e4d9873bc4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6268
diff changeset
  1611
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1612
!MethodList methodsFor:'private-watching'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1613
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1614
startWatchProcess
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1615
    updateProcess notNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1616
	^ self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1617
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1618
    updateProcess := [
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1619
			[true] whileTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1620
			    Delay waitForSeconds:1.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1621
			    self enqueueDelayedUpdateList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1622
			]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1623
		     ] fork.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1624
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1625
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1626
stopWatchProcess
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1627
    |p|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1628
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1629
    (p := updateProcess) notNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1630
	updateProcess := nil.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1631
	p terminate
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1632
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1633
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1634
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1635
!MethodList methodsFor:'setup'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1636
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1637
postBuildWith:aBuilder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1638
    |methodListView|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1639
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1640
    super postBuildWith:aBuilder.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1641
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1642
    methodListView := aBuilder componentAt:'List'.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1643
    methodListView notNil ifTrue:[
6277
12cb8061330f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6272
diff changeset
  1644
        methodListView allowDrag:true.
12cb8061330f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6272
diff changeset
  1645
        methodListView dragObjectConverter:[:obj | 
12cb8061330f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6272
diff changeset
  1646
                                            |nm method idx|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1647
6277
12cb8061330f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6272
diff changeset
  1648
                                            nm := obj theObject asString string string.
12cb8061330f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6272
diff changeset
  1649
                                            idx := browserNameList value findFirst:[:item | item string string = nm].
12cb8061330f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6272
diff changeset
  1650
                                            method := methodList value at:idx.
12cb8061330f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6272
diff changeset
  1651
                                            DropObject newMethod:method.
12cb8061330f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6272
diff changeset
  1652
                                         ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1653
    ]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1654
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1655
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1656
!MethodList class methodsFor:'documentation'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1657
9004
fbd6a4c325f6 changed: #methodIsRedefinedBelow:
Claus Gittinger <cg@exept.de>
parents: 8644
diff changeset
  1658
version_CVS
10257
bdc20c20c46c Merged with JV's branch
vrany
parents: 10228
diff changeset
  1659
    ^ '$Header: /cvs/stx/stx/libtool/Tools_MethodList.st,v 1.51 2011-07-07 14:14:07 vrany Exp $'
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1660
! !