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