Tools_MethodCategoryList.st
author Claus Gittinger <cg@exept.de>
Mon, 14 Feb 2011 18:16:36 +0100
branchinitialV
changeset 9777 82d9e1236f1f
parent 9729 0d29623f7e10
child 10180 d765319efec9
permissions -rw-r--r--
checkin from stx browser
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
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
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
"
5592
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    12
"{ Package: 'stx:libtool' }"
5591
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:#MethodCategoryList
9243
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    17
	instanceVariableNames:'variableFilter filterClassVars lastSelectedProtocols classes
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    18
		leafClasses protocolList rawProtocolList selectedProtocolIndices
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    19
		lastGeneratedProtocols packageFilterOnInput
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    20
		methodVisibilityHolder noAllItem noPseudoItems
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
    21
		showPseudoProtocols showCoverageInformation'
9243
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    22
	classVariableNames:'AdditionalEmptyCategoriesPerClassName MethodInfoCache
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    23
		MethodInfoCacheAccessLock'
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    24
	poolDictionaries:''
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    25
	category:'Interface-Browsers-New'
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
    28
Object subclass:#CachedMethodInfo
9243
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    29
	instanceVariableNames:'flags'
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    30
	classVariableNames:'FlagObsolete FlagSendsSuper FlagIsUncommented
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    31
		FlagIsDocumentationMethod FlagIsLongMethod FlagIsExtension
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    32
		FlagIsRedefine FlagIsOverride FlagIsSubclassResponsibility'
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    33
	poolDictionaries:''
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    34
	privateIn:MethodCategoryList
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
    35
!
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
    36
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
    37
Method variableSubclass:#MissingMethod
9243
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    38
	instanceVariableNames:'selector'
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    39
	classVariableNames:''
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    40
	poolDictionaries:''
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
    41
	privateIn:MethodCategoryList
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
    42
!
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
    43
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
!MethodCategoryList class methodsFor:'documentation'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
copyright
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
 COPYRIGHT (c) 2000 by eXept Software AG
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
    49
              All Rights Reserved
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
 This software is furnished under a license and may be used
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
 only in accordance with the terms of that license and with the
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
 inclusion of the above copyright notice.   This software may not
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
 be provided or otherwise made available to, or used by, any
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
 other person.  No title to or ownership of the software is
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
 hereby transferred.
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
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
    60
!MethodCategoryList class methodsFor:'initialization'!
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
    61
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
    62
flushMethodInfo
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
    63
    MethodInfoCache := Dictionary new.
8867
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
    64
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
    65
    "
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
    66
     self flushMethodInfo
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
    67
    "
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
    68
!
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
    69
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
    70
initialize
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
    71
    MethodInfoCache := Dictionary new.
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
    72
    MethodInfoCacheAccessLock := RecursionLock new.
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
    73
! !
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
    74
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
!MethodCategoryList class methodsFor:'interface specs'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
singleProtocolWindowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
    "This resource specification was automatically generated
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
     by the UIPainter of ST/X."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
    "Do not manually edit this!! If it is corrupted,
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
     the UIPainter may not be able to read the specification."
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
     UIPainter new openOnClass:MethodCategoryList andSelector:#singleProtocolWindowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
     MethodCategoryList new openInterface:#singleProtocolWindowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
    "
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
    <resource: #canvas>
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
    ^ 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
     #(#FullSpec
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
    93
        #name: #singleProtocolWindowSpec
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
    94
        #window: 
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
       #(#WindowSpec
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
    96
          #label: 'ProtocolList'
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
    97
          #name: 'ProtocolList'
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
    98
          #min: #(#Point 0 0)
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
    99
          #max: #(#Point 1024 721)
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   100
          #bounds: #(#Rectangle 12 22 312 322)
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   101
        )
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   102
        #component: 
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
       #(#SpecCollection
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   104
          #collection: #(
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   105
           #(#LabelSpec
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   106
              #label: 'ProtocolName'
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   107
              #name: 'ProtocolLabel'
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   108
              #layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 25 0)
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   109
              #translateLabel: true
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   110
              #labelChannel: #protocolLabelHolder
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   111
              #menu: #menuHolder
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   112
            )
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   113
           )
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
         
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   115
        )
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
      )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
windowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
    "This resource specification was automatically generated
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
     by the UIPainter of ST/X."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
    "Do not manually edit this!! If it is corrupted,
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
     the UIPainter may not be able to read the specification."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
    "
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
     UIPainter new openOnClass:MethodCategoryList andSelector:#windowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
     MethodCategoryList new openInterface:#windowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
     MethodCategoryList open
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
    "
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
    <resource: #canvas>
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
    ^ 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
     #(#FullSpec
6469
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   136
        #name: #windowSpec
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   137
        #window: 
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
       #(#WindowSpec
6469
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   139
          #label: 'ProtocolList'
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   140
          #name: 'ProtocolList'
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   141
          #min: #(#Point 0 0)
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   142
          #bounds: #(#Rectangle 16 46 316 346)
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   143
        )
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   144
        #component: 
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
       #(#SpecCollection
6469
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   146
          #collection: #(
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   147
           #(#SequenceViewSpec
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   148
              #name: 'List'
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   149
              #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   150
              #tabable: true
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   151
              #model: #selectedProtocolIndices
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   152
              #menu: #menuHolder
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   153
              #hasHorizontalScrollBar: true
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   154
              #hasVerticalScrollBar: true
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   155
              #miniScrollerHorizontal: true
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   156
              #isMultiSelect: true
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   157
              #valueChangeSelector: #selectionChangedByClick
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   158
              #useIndex: true
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   159
              #sequenceList: #protocolList
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   160
              #doubleClickChannel: #doubleClickChannel
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   161
              #properties: 
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   162
             #(#PropertyListDictionary
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   163
                #dragArgument: nil
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   164
                #dropArgument: nil
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   165
                #canDropSelector: #canDropContext:
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   166
                #dropSelector: #doDropContext:
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   167
              )
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   168
            )
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   169
           )
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
         
6469
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   171
        )
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
      )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
!MethodCategoryList class methodsFor:'plugIn spec'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
aspectSelectors
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
    "This resource specification was automatically generated
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
     by the UIPainter of ST/X."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
    "Do not manually edit this. If it is corrupted,
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
     the UIPainter may not be able to read the specification."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
    "Return a description of exported aspects;
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
     these can be connected to aspects of an embedding application
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
     (if this app is embedded in a subCanvas)."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
    ^ #(
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   189
        #(#doubleClickChannel #action )
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   190
        #filterClassVars
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   191
        #forceGeneratorTrigger
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   192
        #immediateUpdate
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   193
        #inGeneratorHolder
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   194
        #menuHolder
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   195
        #noAllItem
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   196
        #showPseudoProtocols
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   197
        #outGeneratorHolder
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   198
        #packageFilter
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   199
        #packageFilterOnInput
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   200
        #selectedProtocols
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   201
        #selectionChangeCondition
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   202
        #updateTrigger
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   203
        #variableFilter
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   204
        #methodVisibilityHolder
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   205
        #showCoverageInformation
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
      ).
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   207
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   208
    "Modified: / 27-04-2010 / 16:40:39 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
!MethodCategoryList methodsFor:'aspects'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
browserNameList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
    ^ self protocolList 
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
defaultSlaveModeValue
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   218
    ^ false.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   221
filterClassVars
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
    filterClassVars isNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   223
        filterClassVars := false asValue.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   224
        filterClassVars addDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
    ^  filterClassVars
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
    "Modified: / 31.1.2000 / 00:56:31 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
    "Created: / 5.2.2000 / 13:42:10 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
filterClassVars:aValueHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
    filterClassVars notNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   234
        filterClassVars removeDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   235
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
    filterClassVars := aValueHolder.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
    filterClassVars notNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   238
        filterClassVars addDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
    "Modified: / 31.1.2000 / 00:56:31 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
    "Created: / 5.2.2000 / 13:42:10 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
methodVisibilityHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
    methodVisibilityHolder isNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   247
        methodVisibilityHolder := false asValue.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   248
        methodVisibilityHolder addDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
    ^  methodVisibilityHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
methodVisibilityHolder:aValueHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
    methodVisibilityHolder notNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   255
        methodVisibilityHolder removeDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
    methodVisibilityHolder := aValueHolder.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   258
    methodVisibilityHolder notNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   259
        methodVisibilityHolder addDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   260
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
    "Modified: / 31.1.2000 / 00:56:31 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
    "Created: / 5.2.2000 / 13:42:10 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
noAllItem
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
    noAllItem isNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   268
        noAllItem := false asValue.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   269
        noAllItem addDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
    ^  noAllItem
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   274
noAllItem:aValueHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   275
    noAllItem notNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   276
        noAllItem removeDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
    noAllItem := aValueHolder.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
    noAllItem notNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   280
        noAllItem addDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
packageFilterOnInput
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
    packageFilterOnInput isNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   286
        packageFilterOnInput := nil asValue.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   287
        packageFilterOnInput addDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   289
    ^  packageFilterOnInput
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
packageFilterOnInput:aValueHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   293
    |prevFilter|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   295
    prevFilter := packageFilterOnInput value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   296
    packageFilterOnInput notNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   297
        packageFilterOnInput removeDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
    packageFilterOnInput := aValueHolder.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
    packageFilterOnInput notNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   301
        packageFilterOnInput addDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
    prevFilter ~= packageFilterOnInput value ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   304
        self enqueueDelayedUpdateList
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   308
protocolLabelHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   309
    ^ self pseudoListLabelHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   310
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
protocolList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
    protocolList isNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   314
        protocolList := List new. "/ ValueHolder new
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
    ^ protocolList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
    "Modified: / 31.1.2000 / 00:56:31 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
    "Created: / 5.2.2000 / 13:42:10 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
rawProtocolList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
    rawProtocolList isNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   324
        rawProtocolList := List new.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
    ^ rawProtocolList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
selectedProtocolIndices
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
    selectedProtocolIndices isNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   331
        selectedProtocolIndices := ValueHolder new.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   332
        selectedProtocolIndices 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
    ^ selectedProtocolIndices.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
selectedProtocols
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
    ^ self selectionHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
selectedProtocols:aValueHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
    ^ self selectionHolder:aValueHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   343
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   344
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   345
showCoverageInformation
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   346
    showCoverageInformation isNil ifTrue:[
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   347
        showCoverageInformation := false asValue.
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   348
        showCoverageInformation addDependent:self
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   349
    ].
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   350
    ^  showCoverageInformation
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   351
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   352
    "Created: / 27-04-2010 / 16:40:21 / cg"
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   353
!
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   354
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   355
showCoverageInformation:aValueHolder
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   356
    showCoverageInformation notNil ifTrue:[
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   357
        showCoverageInformation removeDependent:self
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   358
    ].
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   359
    showCoverageInformation := aValueHolder.
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   360
    showCoverageInformation notNil ifTrue:[
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   361
        showCoverageInformation addDependent:self
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   362
    ].
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   363
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   364
    "Created: / 27-04-2010 / 16:40:27 / cg"
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   365
!
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
   366
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   367
showPseudoProtocols
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   368
    showPseudoProtocols isNil ifTrue:[
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   369
        showPseudoProtocols := true asValue.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   370
        showPseudoProtocols addDependent:self
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   371
    ].
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   372
    ^  showPseudoProtocols
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   373
!
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   374
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   375
showPseudoProtocols:aValueHolder
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   376
    showPseudoProtocols notNil ifTrue:[
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   377
        showPseudoProtocols removeDependent:self
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   378
    ].
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   379
    showPseudoProtocols := aValueHolder.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   380
    showPseudoProtocols notNil ifTrue:[
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   381
        showPseudoProtocols addDependent:self
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   382
    ].
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   383
!
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   384
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   385
variableFilter
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   386
    variableFilter isNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   387
        variableFilter := false asValue.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   388
        variableFilter addDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   389
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   390
    ^  variableFilter
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   391
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   392
    "Modified: / 31.1.2000 / 00:56:31 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   393
    "Created: / 5.2.2000 / 13:42:10 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   394
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   395
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   396
variableFilter:aValueHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   397
    variableFilter notNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   398
        variableFilter removeDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   399
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   400
    variableFilter := aValueHolder.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   401
    variableFilter notNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   402
        variableFilter addDependent:self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   403
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   404
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   405
    "Modified: / 31.1.2000 / 00:56:31 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   406
    "Created: / 5.2.2000 / 13:42:10 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   407
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   408
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   409
!MethodCategoryList methodsFor:'change & update'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   410
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   411
classDefinitionChanged:aClass
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   412
    |refetch anyChange|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   413
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   414
    anyChange := false.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   415
    refetch := [:oldClass | 
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   416
                    |nm cls newClass|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   417
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   418
                    nm := oldClass theNonMetaclass name.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   419
                    oldClass isMeta ifTrue:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   420
                        newClass := Smalltalk at:nm.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   421
                        newClass isNil ifTrue:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   422
                            Transcript showCR:'oops - browser lost class ' , nm.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   423
                            newClass := oldClass
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   424
                        ] ifFalse:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   425
                            newClass := newClass theMetaclass
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   426
                        ]
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   427
                    ] ifFalse:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   428
                        newClass := Smalltalk at:nm
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   429
                    ].
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   430
                    newClass ~~ oldClass ifTrue:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   431
                        anyChange := true.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   432
                    ].
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   433
                    newClass
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   434
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   435
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   436
    classes := classes collect:refetch.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   437
    leafClasses := leafClasses collect:refetch.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   438
    anyChange ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   439
        self updateOutputGenerator
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   440
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   441
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   442
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
delayedUpdate:something with:aParameter from:changedObject
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
    |sel oldMethod newMethod mthd selectedCategories selectedProtocolsHolder oldProtocol newProtocol
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
     rawProtocolListHolder rawProtocolList oldSelectedProtocols newSelectedProtocols newIndices idx cls listView|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
    selectedProtocolsHolder := self selectedProtocols.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   448
    rawProtocolListHolder := self rawProtocolList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   449
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   450
    changedObject == Smalltalk ifTrue:[
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   451
        classes notNil ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   452
            something == #methodCategory ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   453
                cls := aParameter at:1.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   454
                (cls notNil and:[classes includesIdentical:cls]) ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   455
                    mthd := aParameter at:2.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   456
                    newProtocol := mthd category.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   457
                    oldProtocol := aParameter at:3.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   458
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   459
                    self invalidateList.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   460
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   461
                    selectedCategories := selectedProtocolsHolder value.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   462
                    selectedCategories size > 0 ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   463
                        selectedCategories := selectedCategories collect:[:each | each ifNil:[self class nameListEntryForNILCategory]].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   464
                        selectedCategories := selectedCategories collect:[:each | each string].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   465
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   466
                        ((selectedCategories includes:oldProtocol)
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   467
                        or:[ (selectedCategories includes:newProtocol)
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   468
                        or:[ selectedCategories includes:(self class nameListEntryForALL) ]])
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   469
                        ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   470
                            self updateOutputGenerator.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   471
                        ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   472
                    ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   473
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   474
                ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   475
                ^ self
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   476
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   477
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   478
            something == #methodInClass ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   479
                "/ a method has been added/removed/changed
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   480
                cls := aParameter at:1.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   481
                (classes includesIdentical:cls) ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   482
                    sel := aParameter at:2.
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   483
                    self flushMethodInfoForClassNamed:cls name selector:sel.
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   484
                    oldMethod := aParameter at:3.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   485
                    newMethod := cls compiledMethodAt:sel.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   486
                    oldMethod notNil ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   487
                        variableFilter value size > 0 ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   488
                            "/ sigh - must invalidate
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   489
                            self invalidateList.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   490
                        ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   491
                        ^ self.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   492
                    ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   493
                    "/ method was added - update the methodList
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   494
                    "/ Q: is this needed (methodCategoryList should send me a new inGenerator)
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   495
                    self invalidateList.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   496
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   497
                    "/ if its category is selected, updateOutputGenerator
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   498
                    selectedCategories := selectedProtocolsHolder value.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   499
                    selectedCategories size > 0 ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   500
                        selectedCategories := selectedCategories collect:[:each | each ifNil:[self class nameListEntryForNILCategory]].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   501
                        selectedCategories := selectedCategories collect:[:each | each string].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   503
                        ((oldMethod notNil and:[selectedCategories includes:(oldMethod category)])
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   504
                        or:[ (newMethod notNil and:[selectedCategories includes:(newMethod category)])])
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   505
                        ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   506
                            self updateOutputGenerator.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   507
                        ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   508
                    ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   509
                ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   510
                ^ self.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   511
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   512
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   513
            something == #methodInClassRemoved ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   514
                cls := aParameter at:1.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   515
                (classes includesIdentical:cls) ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   516
                    sel := aParameter at:2.
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   517
                    self flushMethodInfoForClassNamed:cls name selector:sel.
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   518
                    "/ method was removed - update the list and output generator
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   519
                    self invalidateList.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   520
                    "/ self updateOutputGenerator.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   521
                    self slaveMode value == true ifFalse:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   522
                        self enqueueDelayedUpdateOutputGenerator.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   523
                    ]
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   524
                ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   525
                ^ self.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   526
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
6664
50eb2e92aaed changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   528
            (something == #classOrganization
50eb2e92aaed changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   529
            or:[ something == #methodCategoryAdded
50eb2e92aaed changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   530
            or:[ something == #methodCategoryRemoved
50eb2e92aaed changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   531
            or:[ something == #methodCategoriesRemoved
50eb2e92aaed changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   532
            or:[ something == #methodCategoryRenamed ]]]]) ifTrue:[
50eb2e92aaed changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   533
                cls := (something == #classOrganization) ifTrue:aParameter ifFalse:[aParameter first].
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   534
                (classes includesIdentical:cls) ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   535
                    self invalidateList.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   536
                ] ifFalse:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   537
                    (classes contains:[:aClass | aClass name = cls name]) ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   538
                        self invalidateList.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   539
                        "/ self error:'obsolete class: should not happen'.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   540
                    ]
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   541
                ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   542
                ^ self.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   543
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   544
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   545
            something == #projectOrganization ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   546
                aParameter notNil ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   547
                    cls := aParameter at:1.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   548
                    cls notNil ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   549
                        ((classes includes:cls theMetaclass)
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   550
                        or:[(classes includes:cls theNonMetaclass)]) ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   551
                            self invalidateList.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   552
                            self slaveMode value == true ifFalse:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   553
                                self enqueueDelayedUpdateOutputGenerator.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   554
                            ]
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   555
                        ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   556
                    ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   557
                ] ifFalse:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   558
                    self invalidateList.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   559
                ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   560
                ^ self
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   561
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   562
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   563
            (something == #classDefinition or:[something == #classVariables])
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   564
            ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   565
                self classDefinitionChanged:aParameter.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   566
                ^ self
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   567
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   569
            "/ everything else is ignored    
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   570
            "/ self halt.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   571
        ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   572
        ^ self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   573
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   574
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   575
    changedObject == self selectedProtocolIndices ifTrue:[
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   576
        oldSelectedProtocols := selectedProtocolsHolder value ? #().
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   577
        oldSelectedProtocols := oldSelectedProtocols collect:[:each | each ifNil:[self class nameListEntryForNILCategory]].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   578
        oldSelectedProtocols := oldSelectedProtocols collect:[:each | each string].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   579
        newSelectedProtocols := self getSelectedProtocolsFromIndices.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   580
        oldSelectedProtocols ~= newSelectedProtocols ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   581
            selectedProtocolsHolder value:newSelectedProtocols.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   582
        ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   583
        newSelectedProtocols size > 1 ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   584
            (newSelectedProtocols includes:(self class nameListEntryForALL)) ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   585
                rawProtocolList := rawProtocolListHolder value.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   586
                idx := rawProtocolList indexOf: (newSelectedProtocols copy remove:(self class nameListEntryForALL); yourself) first.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   587
                idx ~~ 0 ifTrue:[
8742
b70571855d48 cleanup
Claus Gittinger <cg@exept.de>
parents: 8735
diff changeset
   588
                    (listView := self componentAt:#List) notNil ifTrue:[
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   589
                        listView makeLineVisible:idx.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   590
                    ]
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   591
                ]
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   592
            ]
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   593
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   595
        ^ self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   596
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   597
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   598
    changedObject == selectedProtocolsHolder ifTrue:[
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   599
        rawProtocolList := rawProtocolListHolder value.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   600
        rawProtocolList size == 0 ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   601
            self updateList.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   602
            rawProtocolList := rawProtocolListHolder value.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   603
        ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   604
        rawProtocolList notNil ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   605
            selectedCategories := selectedProtocolsHolder value ? #().
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   606
            selectedCategories := selectedCategories collect:[:each | each ifNil:[self class nameListEntryForNILCategory]].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   607
            newIndices := selectedCategories 
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   608
                            collect:[:each | rawProtocolList findFirst:[:p | p string = each string]].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   609
            newIndices := newIndices select:[:each | each ~~ 0].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   610
            newIndices ~= self selectedProtocolIndices value ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   611
                self selectedProtocolIndices setValue:nil.                    "/ to force update
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   612
                self selectedProtocolIndices value:newIndices
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   613
            ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   614
            (lastGeneratedProtocols notNil
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   615
            and:[(lastGeneratedProtocols includes:self class nameListEntryForALL)
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   616
            and:[(selectedProtocolsHolder value ? #()) includes:self class nameListEntryForALL]])
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   617
            ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   618
                "/ no need to update generator
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   619
            ] ifFalse:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   620
                self updateOutputGenerator.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   621
            ]
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   622
        ].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   623
        ^ self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   624
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   625
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   626
    (changedObject == variableFilter
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   627
    or:[changedObject == filterClassVars
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   628
    or:[changedObject == packageFilterOnInput]]) ifTrue:[
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   629
        self invalidateList.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
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
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   633
    changedObject == methodVisibilityHolder ifTrue:[
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   634
        self invalidateList.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   635
        self updateOutputGenerator.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   636
        ^  self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   637
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   638
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   639
    lastGeneratedProtocols := nil.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   640
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   641
    changedObject == inGeneratorHolder ifTrue:[
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   642
        selectedCategories := selectedProtocolsHolder value.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   643
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   644
        selectedCategories size > 0 ifTrue:[
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   645
            oldSelectedProtocols := selectedCategories ? #().
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   646
            oldSelectedProtocols := oldSelectedProtocols collect:[:each | each ifNil:[self class nameListEntryForNILCategory]].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   647
            oldSelectedProtocols := oldSelectedProtocols collect:[:each | each string].
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   648
            self updateList.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   649
            rawProtocolList := rawProtocolListHolder value.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   650
            newSelectedProtocols := oldSelectedProtocols select:[:each | rawProtocolList includes:each].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   651
"/            selectedProtocolsHolder setValue:nil.                    "/ to force update
6412
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   652
            selectedProtocolsHolder value:newSelectedProtocols.
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   653
            ^ self
7fc7cad1a67c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6342
diff changeset
   654
        ].
5591
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
    super delayedUpdate:something with:aParameter from:changedObject
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   658
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   659
    "Created: / 5.2.2000 / 13:42:10 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   660
    "Modified: / 29.2.2000 / 11:11:39 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   661
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   662
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   663
getSelectedProtocolsFromIndices
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   664
    |l|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   665
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   666
    l := self rawProtocolList value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   667
    ^ self selectedProtocolIndices value collect:[:idx | l at:idx].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   668
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   669
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   670
selectionChanged
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   671
    |newSelectedCategories allEntry|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   672
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   673
    newSelectedCategories := self selectedProtocols value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   674
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   675
    "/ the outputGenerator is only to be updated, if the output would really
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   676
    "/ change ...
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   677
    allEntry := self class nameListEntryForALL.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   678
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   679
    (lastSelectedProtocols notNil
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   680
    and:[newSelectedCategories notNil
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   681
    and:[(lastSelectedProtocols includes:(allEntry))
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   682
    and:[newSelectedCategories includes:(allEntry)]]]) ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   683
        "/ no change ...
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   684
        ^ self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   685
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   686
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   687
    super selectionChanged.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   688
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   689
    "Created: / 5.2.2000 / 13:42:10 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   690
    "Modified: / 24.2.2000 / 14:12:12 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   691
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   692
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   693
selectionChangedByClick
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   694
    "we are not interested in that - get another notification
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   695
     via the changed valueHolder"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   696
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   697
    lastSelectedProtocols := self getSelectedProtocolsFromIndices
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   698
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   699
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   700
update:something with:aParameter from:changedObject
6855
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   701
    |cls sel oldMethod newMethod|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   702
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   703
    "/ some can be ignored immediately
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   704
    changedObject == Smalltalk ifTrue:[
6855
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   705
        something isNil ifTrue:[
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   706
            "/ self halt "/ huh - Smalltalk changed - so what ?
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   707
            ^ self.
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   708
        ].
6880
16c2e0d68cdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6877
diff changeset
   709
16c2e0d68cdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6877
diff changeset
   710
        something == #currentChangeSet ifTrue:[
16c2e0d68cdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6877
diff changeset
   711
            self invalidateList.
16c2e0d68cdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6877
diff changeset
   712
            ^ self.
16c2e0d68cdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6877
diff changeset
   713
        ].
16c2e0d68cdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6877
diff changeset
   714
6855
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   715
        something == #methodInClass ifTrue:[
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   716
            "/ a method has been added/removed/changed
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   717
            cls := aParameter at:1.
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   718
            (classes notNil and:[classes includesIdentical:cls]) ifFalse:[^ self].
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   719
6855
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   720
            sel := aParameter at:2.
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   721
            self flushMethodInfoForClassNamed:cls name selector:sel.
6855
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   722
            oldMethod := aParameter at:3.
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   723
            newMethod := cls compiledMethodAt:sel.
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   724
            oldMethod notNil ifTrue:[
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   725
                variableFilter value size > 0 ifTrue:[
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   726
                    "/ sigh - must invalidate
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   727
                    self invalidateList.
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   728
                    ^ self.    
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   729
                ].
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   730
                oldMethod category ~= newMethod category ifTrue:[
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   731
                    self invalidateList.
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   732
                    ^ self.    
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   733
                ].
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   734
                "/ mhmh - its now changed (so coloring will change).
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   735
                self invalidateList.
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   736
                ^ self.
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   737
            ].
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   738
        ].
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   739
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   740
"/        something == #classDefinition ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   741
"/            ^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   742
"/        ].
6855
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   743
        something == #newClass ifTrue:[
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   744
            ^ self.
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   745
        ].
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   746
        something == #classRemove ifTrue:[
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   747
            ^ self.
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   748
        ].
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   749
        something == #classRename ifTrue:[
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   750
            ^ self.
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   751
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   752
"/        something == #classVariables ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   753
"/            ^ self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   754
"/        ].
6855
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   755
        something == #classComment ifTrue:[
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   756
            ^ self.
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   757
        ].
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   758
        something == #organization ifTrue:[
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   759
            ^ self.
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   760
        ].
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   761
        something == #methodTrap ifTrue:[
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   762
            ^ self
93bacd7fcf14 much faster update (only invalidate once, when multiple methods are compiled)
Claus Gittinger <cg@exept.de>
parents: 6706
diff changeset
   763
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   764
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   765
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   766
    super update:something with:aParameter from:changedObject.
6880
16c2e0d68cdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6877
diff changeset
   767
16c2e0d68cdb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6877
diff changeset
   768
    "Modified: / 10-08-2006 / 17:23:48 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   769
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   770
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   771
!MethodCategoryList methodsFor:'drag & drop'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   772
6469
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   773
canDropContext:aDropContext
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   774
    |cat methods|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   775
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   776
    methods := aDropContext dropObjects collect:[:obj | obj theObject].
7123
4dd64dbd0b87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7056
diff changeset
   777
    (methods conform:[:aMethod | aMethod isMethod]) ifFalse:[^ false].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   778
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   779
    cat := self categoryAtTargetPointOf:aDropContext.
6492
9c446e709216 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6469
diff changeset
   780
    cat isNil ifTrue:[^ false].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   781
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   782
    (methods contains:[:aMethod | aMethod category ~= cat]) ifFalse:[^ false].
6492
9c446e709216 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6469
diff changeset
   783
    ^ true
7123
4dd64dbd0b87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7056
diff changeset
   784
4dd64dbd0b87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7056
diff changeset
   785
    "Modified: / 13-09-2006 / 11:44:02 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   786
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   787
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   788
categoryAtTargetPointOf:aDropContext
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   789
    |p methodListView lineNr cat|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   790
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   791
    p := aDropContext targetPoint.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   792
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   793
    methodListView := aDropContext targetWidget.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   794
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   795
    lineNr := methodListView lineAtY:p y.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   796
    lineNr isNil ifTrue:[^ nil].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   797
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   798
    cat := rawProtocolList at:lineNr.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   799
    cat := cat string.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   800
    cat = self class nameListEntryForALL ifTrue:[^ nil].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   801
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   802
    ^ cat
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   803
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   804
6469
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   805
doDropContext:aDropContext
9126
9ad8ea73b635 comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents: 9122
diff changeset
   806
    "handle dropping of a method as a category change"
9ad8ea73b635 comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents: 9122
diff changeset
   807
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   808
    |cat methods|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   809
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   810
    methods := aDropContext dropObjects collect:[:aDropObject | aDropObject theObject].
7123
4dd64dbd0b87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7056
diff changeset
   811
    (methods conform:[:something | something isMethod]) ifFalse:[^ self].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   812
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   813
    cat := self categoryAtTargetPointOf:aDropContext.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   814
    cat notNil ifTrue:[
6469
10eea2ce0ca7 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6412
diff changeset
   815
        self masterApplication moveMethods:methods toProtocol:cat.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   816
    ].
7123
4dd64dbd0b87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7056
diff changeset
   817
4dd64dbd0b87 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7056
diff changeset
   818
    "Modified: / 13-09-2006 / 11:43:23 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   819
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   820
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   821
!MethodCategoryList methodsFor:'generators'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   822
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   823
makeGenerator
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   824
    "return a generator which enumerates the methods from the selected protocol;
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   825
     that generator generates 4-element elements (includes the class and protocol), 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   826
     in order to make the consumers only depend on one input 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   827
     (i.e. to pass multiple-class and multiple-protocol info
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   828
      without a need for another classHolder/protocolHolder in the methodList)."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   829
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   830
    ^ Iterator 
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   831
        on:[:whatToDo |
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   832
            |protocols 
8867
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
   833
             allProtocols superSendProtocols uncommentedProtocols obsoleteProtocols 
8964
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
   834
             documentationProtocols longProtocols extensionProtocols redefinedProtocols overrideProtocols
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
   835
             missingRequiredProtocols subclassResponsibilities
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   836
             noCat static notStatic classSelectorPairsAlreadyDone
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   837
             packages remainingClasses remainingCategories classesAlreadyDone noPackage|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   838
8969
225fe47fe23a variable renamed in:
Claus Gittinger <cg@exept.de>
parents: 8964
diff changeset
   839
            noPackage := PackageId noProjectID.
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   840
            noCat := (self class nameListEntryForNILCategory).
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   841
            static := (self class nameListEntryForStatic).
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   842
            notStatic := (self class nameListEntryForNonStatic).
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   843
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   844
            protocols := self selectedProtocols value ? #().
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   845
            protocols := protocols collect:[:each | (each ifNil:[noCat]) string].
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   846
            lastGeneratedProtocols := protocols.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   847
            protocols := protocols asSet.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   848
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   849
            (leafClasses size > 0 and:[protocols size > 0]) ifTrue:[
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   850
                allProtocols := protocols includes:(self class nameListEntryForALL).
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   851
                superSendProtocols := protocols includes:(self class nameListEntryForSuperSend).
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   852
                uncommentedProtocols := protocols includes:(self class nameListEntryForUncommented).
8718
bbf03e0fcc20 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8694
diff changeset
   853
                obsoleteProtocols := protocols includes:(self class nameListEntryForObsolete).
8733
31c0ffee640f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8723
diff changeset
   854
                documentationProtocols := protocols includes:(self class nameListEntryForDocumentation).
8867
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
   855
                longProtocols := protocols includes:(self class nameListEntryForLong).
8931
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
   856
                extensionProtocols := protocols includes:(self class nameListEntryForExtensions).
8964
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
   857
                redefinedProtocols := protocols includes:(self class nameListEntryForRedefined).
8931
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
   858
                overrideProtocols := protocols includes:(self class nameListEntryForOverride).
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
   859
                missingRequiredProtocols := protocols includes:(self class nameListEntryForRequired).
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
   860
                subclassResponsibilities := protocols includes:(self class nameListEntryForMustBeRedefinedInSubclass).
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   861
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   862
"/                packages := packageFilter value value.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   863
"/                (packages notNil and:[packages includes:(self class nameListEntryForALL)]) ifTrue:[
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   864
"/                    packages := nil.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   865
"/                ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   866
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   867
                remainingClasses := leafClasses copy asIdentitySet.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   868
                remainingCategories := protocols copy asSet.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   869
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   870
                classesAlreadyDone := IdentitySet new.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   871
                classSelectorPairsAlreadyDone := Set new.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   872
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   873
                leafClasses do:[:aLeafClass |  
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   874
                    (self classesToProcessForClasses:(Array with:aLeafClass)) do:[:aClass |
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
   875
                        |supportsMethodCategories isJavaClass anyInThisClass requiredProtocolForClass|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   876
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   877
                        (classesAlreadyDone includes:aClass) ifFalse:[
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   878
                            classesAlreadyDone add:aClass.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   879
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   880
                            supportsMethodCategories := aClass supportsMethodCategories.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   881
                            isJavaClass := aClass isJavaClass.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   882
                            anyInThisClass := false.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   883
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   884
                            aClass methodDictionary keysAndValuesDo:[:sel :mthd |
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   885
                                |cat mPkg includeIt info|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   886
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   887
                                supportsMethodCategories ifTrue:[
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   888
                                    cat := mthd category.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   889
                                ] ifFalse:[
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   890
                                    isJavaClass ifTrue:[
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   891
                                        cat := mthd isStatic ifTrue:[static] ifFalse:[notStatic]
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   892
                                    ] ifFalse:[
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   893
                                        cat := noCat.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   894
                                    ]
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   895
                                ].
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   896
                                mPkg := mthd package.
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   897
                                (packages isNil or:[mPkg = noPackage or:[packages includes:mPkg]])
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   898
                                ifTrue:[
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   899
                                    "/ used to be a more readable or, but to reuse info, I've splitted it.
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   900
                                    "/ because we should use the parser only once, we reuse the same methodInfo.
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   901
                                    "/ otherwise, the list update becomes too slow for long classes (NewSystemBrowser)
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   902
                                    includeIt := allProtocols.
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   903
                                    includeIt ifFalse:[ includeIt := protocols includes:cat ].
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   904
                                    includeIt ifFalse:[
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   905
                                        superSendProtocols ifTrue:[
8989
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
   906
                                            info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ].
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   907
                                            includeIt := info sendsSuper ]]. 
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   908
                                    includeIt ifFalse:[
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   909
                                        uncommentedProtocols ifTrue:[
8989
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
   910
                                            info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ].
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   911
                                            includeIt := info isUncommented ]]. 
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   912
                                    includeIt ifFalse:[ 
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   913
                                        obsoleteProtocols ifTrue:[
8989
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
   914
                                            info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ].
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   915
                                            includeIt := info isObsolete ]]. 
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   916
                                    includeIt ifFalse:[ 
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   917
                                        documentationProtocols ifTrue:[
8989
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
   918
                                            info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ].
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   919
                                            includeIt := info isDocumentationMethod ]].
8867
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
   920
                                    includeIt ifFalse:[ 
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
   921
                                        longProtocols ifTrue:[
8989
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
   922
                                            info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ].
8867
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
   923
                                            includeIt := info isLongMethod ]].
8931
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
   924
                                    includeIt ifFalse:[ 
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
   925
                                        extensionProtocols ifTrue:[
8989
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
   926
                                            info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ].
8931
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
   927
                                            includeIt := info isExtensionMethod ]].
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
   928
                                    includeIt ifFalse:[ 
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
   929
                                        overrideProtocols ifTrue:[
8989
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
   930
                                            info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ].
8931
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
   931
                                            includeIt := info isOverride ]].
8964
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
   932
                                    includeIt ifFalse:[ 
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
   933
                                        redefinedProtocols ifTrue:[
8989
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
   934
                                            info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ].
8964
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
   935
                                            includeIt := info isRedefine ]].
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
   936
                                    includeIt ifFalse:[
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
   937
                                        subclassResponsibilities ifTrue:[
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
   938
                                            info isNil ifTrue:[ info := self methodInfoFor:mthd in:aClass selector:sel ].
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
   939
                                            includeIt := info isSubclassResponsibility ]].
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   940
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
   941
                                    includeIt ifTrue:[
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   942
                                        (methodVisibilityHolder value == #class) ifTrue:[
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   943
                                            whatToDo value:aClass value:cat value:sel value:mthd.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   944
                                        ] ifFalse:[
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   945
                                            (classSelectorPairsAlreadyDone includes:(aLeafClass->sel)) ifFalse:[
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   946
                                                classSelectorPairsAlreadyDone add:(aLeafClass->sel).
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   947
                                                whatToDo value:aClass value:cat value:sel value:mthd.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   948
                                            ].
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   949
                                        ].
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   950
                                        anyInThisClass := true.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   951
                                        remainingCategories remove:cat ifAbsent:nil.
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
   952
                                    ].
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   953
                                ]
7296
dfea12500274 do not suppress loose methods
Claus Gittinger <cg@exept.de>
parents: 7123
diff changeset
   954
                            ].
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
   955
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
   956
                            missingRequiredProtocols ifTrue:[
9729
0d29623f7e10 CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents: 9465
diff changeset
   957
                                requiredProtocolForClass := SmalltalkCodeGeneratorTool missingRequiredProtocolFor:aClass.
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
   958
                                requiredProtocolForClass do:[:sel | 
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
   959
                                    |selectorInRed missingMethodPlaceHolder|
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
   960
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
   961
                                    selectorInRed := sel colorizeAllWith:Color red.
9043
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
   962
                                    missingMethodPlaceHolder := MissingMethod mclass:aClass selector:sel.
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
   963
                                    whatToDo value:aClass value:'required' value:selectorInRed value:missingMethodPlaceHolder.
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
   964
                                ].
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
   965
                            ].
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   966
                            anyInThisClass ifTrue:[ remainingClasses remove:aClass ifAbsent:nil. ].
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   967
                        ].
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   968
                    ].
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   969
                ].
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   970
                remainingClasses do:[:aClass |
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   971
                    whatToDo value:aClass value:nil value:nil value:nil.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   972
                ].
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   973
                remainingCategories do:[:cat |
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   974
                    whatToDo value:nil value:cat value:nil value:nil.
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   975
                ]
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   976
            ]
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
   977
      ]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   978
7296
dfea12500274 do not suppress loose methods
Claus Gittinger <cg@exept.de>
parents: 7123
diff changeset
   979
    "Created: / 05-02-2000 / 13:42:10 / cg"
9729
0d29623f7e10 CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents: 9465
diff changeset
   980
    "Modified: / 31-01-2011 / 18:29:15 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   981
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   982
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   983
!MethodCategoryList methodsFor:'private'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   984
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   985
class:cls protocol:cat includesMethodsInAnyPackage:packageFilter
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   986
    cls methodDictionary keysAndValuesDo:[:sel :mthd |
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   987
        mthd category == cat ifTrue:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   988
            (packageFilter includes:mthd package) ifTrue:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   989
                ^ true
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   990
            ]
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
   991
        ]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   992
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   993
    ^ false
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   994
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   995
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   996
class:cls protocol:cat includesModsOfClassVariable:variablesToHighLight
9243
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
   997
    "are there any methods in the protocol cat which modify any class variable in variablesToHighLight ?"
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
   998
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   999
    ^ self class:cls protocol:cat includesRefsToVariable:variablesToHighLight askParserWith:#modifiedClassVars
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1000
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1001
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1002
class:cls protocol:cat includesModsOfInstanceVariable:variablesToHighLight
9243
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
  1003
    "are there any methods in the protocol cat which modify any inst variable in variablesToHighLight ?"
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
  1004
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1005
    ^ self class:cls protocol:cat includesRefsToVariable:variablesToHighLight askParserWith:#modifiedInstVars
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1006
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1007
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1008
class:cls protocol:cat includesRefsToClassVariable:variablesToHighLight
9243
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
  1009
    "are there any methods in the protocol cat which reference any class variable in variablesToHighLight ?"
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
  1010
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1011
    ^ self class:cls protocol:cat includesRefsToVariable:variablesToHighLight askParserWith:#usedClassVars
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1012
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1013
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1014
class:cls protocol:cat includesRefsToInstanceVariable:variablesToHighLight
9243
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
  1015
    "are there any methods in the protocol cat which reference any inst variable in variablesToHighLight ?"
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
  1016
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1017
    ^ self class:cls protocol:cat includesRefsToVariable:variablesToHighLight askParserWith:#usedInstVars
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1018
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1019
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1020
class:cls protocol:cat includesRefsToVariable:variablesToHighLight askParserWith:querySelector
9243
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
  1021
    "are there any methods in the protocol cat which reference/modify any inst/class variable in variablesToHighLight ?"
f3e49ecd92be comment/format in:
Claus Gittinger <cg@exept.de>
parents: 9128
diff changeset
  1022
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1023
    |anyVarNameAccessable|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1024
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1025
    anyVarNameAccessable := cls allInstVarNames includesAny:variablesToHighLight.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1026
    anyVarNameAccessable ifFalse:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1027
        anyVarNameAccessable := cls theNonMetaclass allClassVarNames includesAny:variablesToHighLight.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1028
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1029
    anyVarNameAccessable ifFalse:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1030
        "/ no need to parse
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1031
        ^ false
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1032
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1033
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1034
    cls selectorsAndMethodsDo:[:sel :mthd |
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1035
        |src parser usedVars|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1036
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1037
        mthd category = cat ifTrue:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1038
            src := mthd source.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1039
            src notNil ifTrue:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1040
                "
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1041
                 before doing a slow parse, quickly scan the
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1042
                 methods source for the variables name ...
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1043
                "
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1044
                (variablesToHighLight contains:[:varName | (src findString:varName) ~~ 0]) ifTrue:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1045
                    parser := Parser
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1046
                                    parseMethod:src 
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1047
                                    in:cls 
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1048
                                    ignoreErrors:true 
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1049
                                    ignoreWarnings:true.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1050
                    (parser notNil and:[parser ~~ #Error]) ifTrue:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1051
                        usedVars := parser perform:querySelector.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1052
                        (usedVars includesAny:variablesToHighLight)
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1053
                        ifTrue:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1054
                            ^  true
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1055
                        ]
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1056
                    ]
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1057
                ]        
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1058
            ] ifFalse:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1059
                Transcript showCR:'Oops - cannot access methods source'.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1060
            ]        
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1061
        ]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1062
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1063
    ^ false
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1064
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1065
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1066
classesToProcessForClasses:classes
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1067
    ^ self classesToProcessForClasses:classes withVisibility:methodVisibilityHolder value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1068
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1069
8961
37e61f2e4cf1 added: #commonPostOpen
Claus Gittinger <cg@exept.de>
parents: 8931
diff changeset
  1070
commonPostOpen
37e61f2e4cf1 added: #commonPostOpen
Claus Gittinger <cg@exept.de>
parents: 8931
diff changeset
  1071
    super commonPostOpen.
37e61f2e4cf1 added: #commonPostOpen
Claus Gittinger <cg@exept.de>
parents: 8931
diff changeset
  1072
37e61f2e4cf1 added: #commonPostOpen
Claus Gittinger <cg@exept.de>
parents: 8931
diff changeset
  1073
    self showPseudoProtocols ifTrue:[
37e61f2e4cf1 added: #commonPostOpen
Claus Gittinger <cg@exept.de>
parents: 8931
diff changeset
  1074
        "/ revalidate my list, because it was only shown lazy
37e61f2e4cf1 added: #commonPostOpen
Claus Gittinger <cg@exept.de>
parents: 8931
diff changeset
  1075
        self invalidateList.
37e61f2e4cf1 added: #commonPostOpen
Claus Gittinger <cg@exept.de>
parents: 8931
diff changeset
  1076
    ].
37e61f2e4cf1 added: #commonPostOpen
Claus Gittinger <cg@exept.de>
parents: 8931
diff changeset
  1077
!
37e61f2e4cf1 added: #commonPostOpen
Claus Gittinger <cg@exept.de>
parents: 8931
diff changeset
  1078
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1079
flushMethodInfoForClassNamed:className selector:selector
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1080
    MethodInfoCacheAccessLock critical:[
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1081
        MethodInfoCache 
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1082
            removeKey:(className,'>>',selector)
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1083
            ifAbsent:[]
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1084
    ]
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1085
!
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1086
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1087
listOfMethodCategories
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1088
    |categoryList plainCategories classesProcessed leafClassesProcessed
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1089
     generator nm variablesToHighlight classVarsToHighLight
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1090
     itemsWithVarRefs itemsWithVarMods itemsWithExtensions itemsWithSuppressedExtensions
7501
c469ba228dda preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7398
diff changeset
  1091
     itemsInChangeSet itemsInRemoteChangeSet
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1092
     itemsWithInstrumentedMethods itemsWithCalledMethods itemsWithUncalledMethods
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1093
     itemsWithPartiallyCoveredMethods itemsWithFullyCoveredMethods
8723
2d676b11e886 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8718
diff changeset
  1094
     packageFilterOnInput packageFilter nameListEntryForALL changeSet 
2d676b11e886 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8718
diff changeset
  1095
     emphasizedPlus emphasisForRef emphasisForMod
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1096
     numAll numObsolete numSuper numUncommented numDocumentation numLong numOverride
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1097
     numRedefine numExtension numMissingRequired numSubclassResponsibility 
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1098
     showPseudoProtocols showCoverageInformation
9452
750e55a24967 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9449
diff changeset
  1099
     addPseudoEntry countAll pseudoEntryColor userPreferences|
9126
9ad8ea73b635 comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents: 9122
diff changeset
  1100
9452
750e55a24967 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9449
diff changeset
  1101
    userPreferences := UserPreferences current.
9126
9ad8ea73b635 comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents: 9122
diff changeset
  1102
    countAll := true.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1103
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1104
    generator := inGeneratorHolder value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1105
    generator isNil ifTrue:[ ^ #() ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1106
8982
ac5d734dfedd changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 8969
diff changeset
  1107
    showPseudoProtocols := self showPseudoProtocols value 
9281
249720ced980 changed: #listOfMethodCategories
Stefan Vogel <sv@exept.de>
parents: 9243
diff changeset
  1108
                                and:[builder window notNil and:[builder window shown]].
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1109
    showCoverageInformation := self showCoverageInformation value.
8961
37e61f2e4cf1 added: #commonPostOpen
Claus Gittinger <cg@exept.de>
parents: 8931
diff changeset
  1110
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1111
    nameListEntryForALL := self class nameListEntryForALL.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1112
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1113
    packageFilterOnInput := self packageFilterOnInput value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1114
    (packageFilterOnInput notNil and:[packageFilterOnInput includes:nameListEntryForALL]) ifTrue:[
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1115
        packageFilterOnInput := nil
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1116
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1117
    packageFilter := self packageFilter value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1118
    (packageFilter notNil and:[packageFilter includes:nameListEntryForALL]) ifTrue:[
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1119
        packageFilter := nil
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1120
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1121
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1122
    categoryList := Set new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1123
    itemsWithVarRefs := Set new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1124
    itemsWithVarMods := Set new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1125
    itemsWithExtensions := Set new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1126
    itemsWithSuppressedExtensions := Set new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1127
    itemsInChangeSet := Set new.
7501
c469ba228dda preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7398
diff changeset
  1128
    itemsInRemoteChangeSet := Set new.
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1129
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1130
    itemsWithInstrumentedMethods := Set new.
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1131
    itemsWithCalledMethods := Set new. 
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1132
    itemsWithUncalledMethods := Set new. 
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1133
    itemsWithPartiallyCoveredMethods := Set new.
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1134
    itemsWithFullyCoveredMethods := Set new.
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1135
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1136
    plainCategories := Set new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1137
    classesProcessed := IdentitySet new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1138
    leafClassesProcessed := IdentitySet new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1139
    variablesToHighlight := variableFilter value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1140
    classVarsToHighLight := filterClassVars value.
8867
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
  1141
    numObsolete := numSuper := numUncommented := numDocumentation := numLong := 0.
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1142
    numRedefine := numOverride := numExtension := numMissingRequired := numSubclassResponsibility := 0.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1143
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1144
    generator do:[:clsIn :catIn | 
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1145
                        |emptyProtocols clsName doHighLight doHighLightRed suppress|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1146
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1147
                        leafClassesProcessed add:clsIn.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1148
                        (self classesToProcessForClasses:(Array with:clsIn)) do:[:cls |
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1149
                            |cats|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1150
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1151
                            classesProcessed add:cls.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1152
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1153
                            cls ~~ clsIn ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1154
                                cats := cls categories
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1155
                            ] ifFalse:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1156
                                cats := Array with:catIn.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1157
                            ].
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1158
                            cats do:[:cat |    
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1159
                                cat notNil ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1160
                                    suppress := packageFilterOnInput notNil 
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1161
                                                and:[ (self class:cls protocol:cat includesMethodsInAnyPackage:packageFilterOnInput) not ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1162
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1163
                                    suppress ifFalse:[
8723
2d676b11e886 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8718
diff changeset
  1164
                                        variablesToHighlight notEmptyOrNil ifTrue:[
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1165
                                            (itemsWithVarRefs includes:cat) ifFalse:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1166
                                                classVarsToHighLight ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1167
                                                    doHighLight := self class:cls protocol:cat includesRefsToClassVariable:variablesToHighlight.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1168
                                                    doHighLight ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1169
                                                        doHighLightRed := self class:cls protocol:cat includesModsOfClassVariable:variablesToHighlight.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1170
                                                    ].
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1171
                                                ] ifFalse:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1172
                                                    doHighLight := self class:cls protocol:cat includesRefsToInstanceVariable:variablesToHighlight.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1173
                                                    doHighLight ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1174
                                                        doHighLightRed := self class:cls protocol:cat includesModsOfInstanceVariable:variablesToHighlight.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1175
                                                    ].
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1176
                                                ].
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1177
                                                doHighLight ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1178
                                                    itemsWithVarRefs add:cat.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1179
                                                    doHighLightRed ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1180
                                                        itemsWithVarMods add:cat.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1181
                                                    ].
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1182
                                                ]
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1183
                                            ]
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1184
                                        ].
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1185
8961
37e61f2e4cf1 added: #commonPostOpen
Claus Gittinger <cg@exept.de>
parents: 8931
diff changeset
  1186
                                        showPseudoProtocols value ifTrue:[
8742
b70571855d48 cleanup
Claus Gittinger <cg@exept.de>
parents: 8735
diff changeset
  1187
                                            cls selectorsAndMethodsDo:[:sel :mthd |
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1188
                                                |info|
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1189
8742
b70571855d48 cleanup
Claus Gittinger <cg@exept.de>
parents: 8735
diff changeset
  1190
                                                mthd category = cat ifTrue:[
8989
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1191
                                                    info := self methodInfoFor:mthd in:cls selector:sel.
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1192
                                                    info isObsolete ifTrue:[ numObsolete := numObsolete + 1 ].
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1193
                                                    info sendsSuper ifTrue:[ numSuper := numSuper + 1 ].
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1194
                                                    info isUncommented ifTrue:[ numUncommented := numUncommented + 1 ].
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1195
                                                    info isDocumentationMethod ifTrue:[ numDocumentation := numDocumentation + 1 ].
8867
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
  1196
                                                    info isLongMethod ifTrue:[ numLong := numLong + 1 ].
8931
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1197
                                                    info isExtensionMethod ifTrue:[ numExtension := numExtension + 1 ].
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1198
                                                    info isOverride ifTrue:[ numOverride := numOverride + 1 ].
8964
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
  1199
                                                    info isRedefine ifTrue:[ numRedefine := numRedefine + 1 ].
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1200
                                                    info isSubclassResponsibility ifTrue:[ numSubclassResponsibility := numSubclassResponsibility + 1].
8742
b70571855d48 cleanup
Claus Gittinger <cg@exept.de>
parents: 8735
diff changeset
  1201
                                                ]
b70571855d48 cleanup
Claus Gittinger <cg@exept.de>
parents: 8735
diff changeset
  1202
                                            ].
8723
2d676b11e886 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8718
diff changeset
  1203
                                        ].
2d676b11e886 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8718
diff changeset
  1204
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1205
                                        categoryList add:cat.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1206
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1207
                                        AdditionalEmptyCategoriesPerClassName size > 0 ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1208
                                            clsName := cls name.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1209
                                            emptyProtocols := AdditionalEmptyCategoriesPerClassName at:clsName ifAbsent:nil.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1210
                                            emptyProtocols size > 0 ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1211
                                                emptyProtocols remove:cat ifAbsent:nil.    
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1212
                                            ].
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1213
                                            emptyProtocols size == 0 ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1214
                                                AdditionalEmptyCategoriesPerClassName removeKey:clsName ifAbsent:nil
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1215
                                            ].
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1216
                                        ].
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1217
                                    ]
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1218
                                ]
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1219
                            ]
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1220
                        ]
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1221
                 ].
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1222
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1223
    numAll := 0.
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1224
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1225
    changeSet := ChangeSet current.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1226
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1227
    classesProcessed do:[:eachClass |
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1228
        |classPackage required|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1229
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1230
        classPackage := eachClass package.
6706
8a8ba991614c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6704
diff changeset
  1231
        eachClass methodDictionary keysAndValuesDo:[:mSelector :mthd |
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1232
            |mPackage mCategory|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1233
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1234
            mPackage := mthd package.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1235
            mCategory := mthd category.    
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1236
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1237
            #fixme.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1238
            mPackage = classPackage ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1239
                mPackage ~~ classPackage ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1240
                    mthd setPackage:(mPackage := mPackage string asSymbol).
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1241
                ]
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1242
            ].
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1243
            mPackage ~~ classPackage ifTrue:[
8969
225fe47fe23a variable renamed in:
Claus Gittinger <cg@exept.de>
parents: 8964
diff changeset
  1244
                mPackage ~= PackageId noProjectID ifTrue:[
6877
59c8f9e00343 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6855
diff changeset
  1245
                    itemsWithExtensions add:mCategory.    
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1246
6877
59c8f9e00343 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6855
diff changeset
  1247
                    (packageFilter notNil 
59c8f9e00343 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6855
diff changeset
  1248
                    and:[ (packageFilter includes:mPackage) not])
59c8f9e00343 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6855
diff changeset
  1249
                    ifTrue:[
59c8f9e00343 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6855
diff changeset
  1250
                        itemsWithSuppressedExtensions add:mCategory.    
59c8f9e00343 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6855
diff changeset
  1251
                    ].
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1252
                ].
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1253
            ].
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1254
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1255
            showCoverageInformation ifTrue:[
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1256
                mthd isInstrumented ifTrue:[
9449
db3be2a21d55 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9445
diff changeset
  1257
                    mthd category = 'documentation' ifFalse:[
db3be2a21d55 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9445
diff changeset
  1258
                        itemsWithInstrumentedMethods add:mCategory.
db3be2a21d55 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9445
diff changeset
  1259
                        mthd hasBeenCalled ifTrue:[
db3be2a21d55 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9445
diff changeset
  1260
                            itemsWithCalledMethods add:mCategory.
db3be2a21d55 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9445
diff changeset
  1261
                            mthd haveAllBlocksBeenExecuted ifTrue:[
db3be2a21d55 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9445
diff changeset
  1262
                                itemsWithFullyCoveredMethods add:mCategory.
db3be2a21d55 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9445
diff changeset
  1263
                            ] ifFalse:[
db3be2a21d55 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9445
diff changeset
  1264
                                itemsWithPartiallyCoveredMethods add:mCategory.
db3be2a21d55 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9445
diff changeset
  1265
                            ].
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1266
                        ] ifFalse:[
9449
db3be2a21d55 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9445
diff changeset
  1267
                            itemsWithUncalledMethods add:mCategory.
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1268
                        ].
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1269
                    ].
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1270
                ].
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1271
            ] ifFalse:[
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1272
                (changeSet includesChangeForClass:eachClass selector:mSelector) ifTrue:[
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1273
                    itemsInChangeSet add:mCategory.    
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1274
                ].
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1275
                (SmallTeam notNil and:[ SmallTeam includesChangeForClass:eachClass selector:mSelector] ) ifTrue:[
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1276
                    itemsInRemoteChangeSet add:mCategory.    
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1277
                ].
7501
c469ba228dda preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7398
diff changeset
  1278
            ].
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1279
        ].
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1280
        showPseudoProtocols value ifTrue:[
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1281
            "/ see if there is a subclassResponsibility in a superclass
9729
0d29623f7e10 CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents: 9465
diff changeset
  1282
            required := SmalltalkCodeGeneratorTool missingRequiredProtocolFor:eachClass.
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1283
            numMissingRequired := numMissingRequired + required size.
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1284
        ].
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1285
        numAll := numAll + (eachClass methodDictionary size)
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1286
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1287
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1288
    categoryList := categoryList asOrderedCollection.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1289
    self rawProtocolList removeAll.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1290
    rawProtocolList addAll:categoryList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1291
6698
4471601b0461 much faster update
Claus Gittinger <cg@exept.de>
parents: 6695
diff changeset
  1292
    emphasizedPlus := (self colorizeForDifferentPackage:' [ + ]').
9452
750e55a24967 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9449
diff changeset
  1293
    emphasisForRef := userPreferences emphasisForReadVariable.
750e55a24967 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9449
diff changeset
  1294
    emphasisForMod := userPreferences emphasisForWrittenVariable.
6698
4471601b0461 much faster update
Claus Gittinger <cg@exept.de>
parents: 6695
diff changeset
  1295
6704
a216c95a9a91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6701
diff changeset
  1296
    (itemsInChangeSet notEmpty 
7501
c469ba228dda preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7398
diff changeset
  1297
    or:[itemsInRemoteChangeSet notEmpty
6704
a216c95a9a91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6701
diff changeset
  1298
    or:[itemsWithExtensions notEmpty
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1299
    or:[itemsWithVarRefs notEmpty
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1300
    or:[itemsWithInstrumentedMethods notEmpty
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1301
    or:[itemsWithCalledMethods notEmpty
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1302
    or:[itemsWithUncalledMethods notEmpty
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1303
    or:[itemsWithFullyCoveredMethods notEmpty
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1304
    or:[itemsWithPartiallyCoveredMethods notEmpty
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1305
    ]]]]]]]]) ifTrue:[
6698
4471601b0461 much faster update
Claus Gittinger <cg@exept.de>
parents: 6695
diff changeset
  1306
        rawProtocolList keysAndValuesDo:[:idx :cat |
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1307
            |item inChangeSet inRemoteChangeSet hasExtensions hasVarRef hasVarMod
9452
750e55a24967 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9449
diff changeset
  1308
             clr|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1309
6698
4471601b0461 much faster update
Claus Gittinger <cg@exept.de>
parents: 6695
diff changeset
  1310
            item := cat.
7501
c469ba228dda preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7398
diff changeset
  1311
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1312
            inChangeSet := false.
6701
c3df9d286697 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6698
diff changeset
  1313
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1314
            showCoverageInformation ifTrue:[
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1315
                (itemsWithInstrumentedMethods includes:cat) ifTrue:[
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1316
                    (itemsWithCalledMethods includes:cat) ifTrue:[
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1317
                        (itemsWithPartiallyCoveredMethods includes:cat) ifTrue:[
9452
750e55a24967 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9449
diff changeset
  1318
                            clr := (userPreferences colorForInstrumentedPartiallyCoveredCode).
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1319
                        ] ifFalse:[
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1320
                            (itemsWithUncalledMethods includes:cat) ifTrue:[
9452
750e55a24967 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9449
diff changeset
  1321
                                clr := (userPreferences colorForInstrumentedPartiallyCoveredCode).
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1322
                            ] ifFalse:[
9452
750e55a24967 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9449
diff changeset
  1323
                                 clr := (userPreferences colorForInstrumentedFullyCoveredCode).
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1324
                            ]
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1325
                        ]
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1326
                    ] ifFalse:[
9452
750e55a24967 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9449
diff changeset
  1327
                        clr := (userPreferences colorForInstrumentedNeverCalledCode).
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1328
                    ].
9452
750e55a24967 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9449
diff changeset
  1329
                    item := self colorize:cat with:(#color -> clr).
9445
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1330
                ]
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1331
            ] ifFalse:[
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1332
                inChangeSet := itemsInChangeSet includes:cat.
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1333
                inChangeSet ifTrue:[
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1334
                    item := self colorizeForChangedCode:cat.
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1335
                ].
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1336
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1337
                inRemoteChangeSet := itemsInRemoteChangeSet includes:cat.
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1338
                inRemoteChangeSet ifTrue:[
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1339
                    item := (self colorizeForChangedCodeInSmallTeam:'!! '),item.
8c1d59b7f33f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9281
diff changeset
  1340
                ].
7501
c469ba228dda preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7398
diff changeset
  1341
            ].
c469ba228dda preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7398
diff changeset
  1342
6698
4471601b0461 much faster update
Claus Gittinger <cg@exept.de>
parents: 6695
diff changeset
  1343
            hasVarRef := itemsWithVarRefs includes:cat.
4471601b0461 much faster update
Claus Gittinger <cg@exept.de>
parents: 6695
diff changeset
  1344
            hasVarRef ifTrue:[
4471601b0461 much faster update
Claus Gittinger <cg@exept.de>
parents: 6695
diff changeset
  1345
                hasVarMod := itemsWithVarMods includes:cat.
6701
c3df9d286697 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6698
diff changeset
  1346
                item := item asText 
c3df9d286697 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6698
diff changeset
  1347
                            emphasisAllAdd:(hasVarMod ifTrue:emphasisForMod ifFalse:emphasisForRef).
c3df9d286697 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6698
diff changeset
  1348
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1349
6701
c3df9d286697 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6698
diff changeset
  1350
            hasExtensions := itemsWithExtensions includes:cat.
c3df9d286697 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6698
diff changeset
  1351
            hasExtensions ifTrue:[
c3df9d286697 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6698
diff changeset
  1352
                item := item , emphasizedPlus.
6698
4471601b0461 much faster update
Claus Gittinger <cg@exept.de>
parents: 6695
diff changeset
  1353
            ].
6877
59c8f9e00343 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6855
diff changeset
  1354
            inChangeSet ifTrue:[
7056
14542aaca275 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6880
diff changeset
  1355
                item := item , self class markForBeingInChangeList.
6877
59c8f9e00343 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6855
diff changeset
  1356
            ].
6698
4471601b0461 much faster update
Claus Gittinger <cg@exept.de>
parents: 6695
diff changeset
  1357
            categoryList at:idx put:item.
4471601b0461 much faster update
Claus Gittinger <cg@exept.de>
parents: 6695
diff changeset
  1358
        ]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1359
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1360
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1361
    classesProcessed size > 0 ifTrue:[
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1362
        "/ those are simulated - in ST/X, empty categories do not
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1363
        "/ really exist; however, during browsing, it makes sense.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1364
        AdditionalEmptyCategoriesPerClassName size > 0 ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1365
            AdditionalEmptyCategoriesPerClassName keysAndValuesDo:[:clsName :protocols |
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1366
                (classesProcessed contains:[:cls | cls name = clsName]) ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1367
                    categoryList addAll:protocols.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1368
                    rawProtocolList addAll:protocols.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1369
                ]
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1370
            ]
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1371
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1372
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1373
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1374
    self makeIndependent.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1375
    classes := classesProcessed.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1376
    leafClasses := leafClassesProcessed.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1377
    self makeDependent.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1378
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1379
    rawProtocolList sortWith:categoryList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1380
    categoryList size == 1 ifTrue:[
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1381
        nm := categoryList first string.
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1382
        classes size == 1 ifTrue:[
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1383
            nm := classes first name , '-' , nm
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1384
        ].
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1385
        self protocolLabelHolder value:nm
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1386
    ].
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1387
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1388
    pseudoEntryColor := self class pseudoEntryForegroundColor.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1389
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1390
    categoryList notEmpty ifTrue:[
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1391
        noAllItem value ~~ true ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1392
            |allName|
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1393
9126
9ad8ea73b635 comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents: 9122
diff changeset
  1394
            countAll ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1395
                allName := self class nameListEntryForALLWithCount bindWith:numAll.
9126
9ad8ea73b635 comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents: 9122
diff changeset
  1396
            ] ifFalse:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1397
                allName := nameListEntryForALL.
9126
9ad8ea73b635 comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents: 9122
diff changeset
  1398
            ].
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1399
            categoryList addFirst:(allName allItalic colorizeAllWith:pseudoEntryColor).
5814
a2370251d01f *** empty log message ***
werner
parents: 5592
diff changeset
  1400
            rawProtocolList addFirst:nameListEntryForALL.
8694
47c8e3fd95dd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8219
diff changeset
  1401
        ].
9042
90d6e1c9ad5b changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9039
diff changeset
  1402
    ].
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1403
9042
90d6e1c9ad5b changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9039
diff changeset
  1404
    showPseudoProtocols value ifTrue:[
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1405
        addPseudoEntry := [:s :n | 
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1406
                                n > 0 ifTrue:[
9126
9ad8ea73b635 comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents: 9122
diff changeset
  1407
                                    categoryList 
9ad8ea73b635 comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents: 9122
diff changeset
  1408
                                        add:((s bindWith:n) 
9ad8ea73b635 comment/format in: #doDropContext:
Claus Gittinger <cg@exept.de>
parents: 9122
diff changeset
  1409
                                                allItalic 
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1410
                                                    colorizeAllWith:pseudoEntryColor).
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1411
                                    rawProtocolList add:s.
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1412
                                ].
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1413
                           ].
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1414
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1415
        addPseudoEntry value:self class nameListEntryForSuperSend value:numSuper.
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1416
        addPseudoEntry value:self class nameListEntryForRedefined value:numRedefine.
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1417
        addPseudoEntry value:self class nameListEntryForDocumentation value:numDocumentation.
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1418
        addPseudoEntry value:self class nameListEntryForUncommented value:numUncommented.
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1419
        addPseudoEntry value:self class nameListEntryForLong value:numLong.
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1420
        addPseudoEntry value:self class nameListEntryForObsolete value:numObsolete.
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1421
        addPseudoEntry value:self class nameListEntryForExtensions value:numExtension.
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1422
        addPseudoEntry value:self class nameListEntryForOverride value:numOverride.
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1423
        addPseudoEntry value:self class nameListEntryForMustBeRedefinedInSubclass value:numSubclassResponsibility.
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1424
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1425
        "/ I think red is too much of an alert color (and we get more of them as we think...)
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1426
"/        numMissingRequired > 0 ifTrue:[
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1427
"/            categoryList add:((self class nameListEntryForRequired bindWith:numMissingRequired) allItalic "colorizeAllWith:Color red").
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1428
"/            rawProtocolList add:self class nameListEntryForRequired.
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1429
"/        ].
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1430
        addPseudoEntry value:self class nameListEntryForRequired value:numMissingRequired.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1431
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1432
    ^ categoryList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1433
6877
59c8f9e00343 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6855
diff changeset
  1434
    "Created: / 05-02-2000 / 13:42:11 / cg"
9729
0d29623f7e10 CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents: 9465
diff changeset
  1435
    "Modified: / 31-01-2011 / 18:29:12 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1436
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1437
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1438
makeDependent
7501
c469ba228dda preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7398
diff changeset
  1439
    Smalltalk addDependent:self.
c469ba228dda preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7398
diff changeset
  1440
"/    ChangeSet addDependent:self.
c469ba228dda preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7398
diff changeset
  1441
c469ba228dda preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7398
diff changeset
  1442
    "Modified: / 10-11-2006 / 17:57:13 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1443
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1444
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1445
makeIndependent
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1446
    Smalltalk removeDependent:self.
8219
57088175dcda dont forget to make independent
fm
parents: 7501
diff changeset
  1447
"/    ChangeSet removeDependent:self.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1448
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1449
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1450
release
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1451
    super release.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1452
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1453
    filterClassVars removeDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1454
    methodVisibilityHolder removeDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1455
    noAllItem removeDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1456
    packageFilterOnInput removeDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1457
    selectedProtocolIndices removeDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1458
    variableFilter removeDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1459
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1460
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1461
updateList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1462
    |prevClasses prevSelection newSelection newList oldList sameContents selectedProtocolsHolder rawList|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1463
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1464
    selectedProtocolsHolder := self selectedProtocols.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1465
    
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1466
    prevClasses := classes ifNil:[ #() ] ifNotNil:[ classes copy ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1467
    oldList := self protocolList value copy.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1468
    newList := self listOfMethodCategories.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1469
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1470
    "/ oldListSize := self browserNameList size.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1471
    "/ newListSize := newList size.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1472
    self selectedProtocolIndices removeDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1473
    sameContents := self updateListFor:newList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1474
    self selectedProtocolIndices addDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1475
    sameContents ifFalse:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1476
        prevSelection := lastSelectedProtocols ? (selectedProtocolsHolder value) ? #().
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1477
        "/ prevSelection := selectedProtocolsHolder value ? lastSelectedProtocols ? #().
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1478
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1479
        rawList := self rawProtocolList value.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1480
        newSelection := prevSelection select:[:item | rawList includes:item string].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1481
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1482
        newSelection size > 0 ifTrue:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1483
            "/ force change (for dependents)
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1484
"/                selectedProtocolsHolder value:nil.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1485
"/                selectedProtocolsHolder value:newSelection.
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1486
            selectedProtocolsHolder setValue:newSelection.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1487
            selectedProtocolsHolder changed:#value.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1488
        ] ifFalse:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1489
            prevSelection := selectedProtocolsHolder value.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1490
            selectedProtocolsHolder value:nil.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1491
        ].
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1492
        (prevSelection size > 0 or:[newSelection size > 0]) ifTrue:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1493
            self enqueueDelayedUpdateOutputGenerator.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1494
            "/ self updateOutputGenerator.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1495
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1496
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1497
"/        prevSelection notNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1498
"/            lastSelectedProtocols := prevSelection.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1499
"/        ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1500
    ] ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1501
        "/ same list - but classes might have changed
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1502
        "/ that is the case, if the class selection has been changed,
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1503
        "/ to another class which has the same categories.
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1504
        (prevClasses size ~= classes size 
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1505
        or:[prevClasses asOrderedCollection ~= (classes ? #()) asOrderedCollection ]) ifTrue:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1506
            (newList size > 0 or:[oldList size > 0]) ifTrue:[
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1507
                self updateOutputGenerator
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1508
            ]
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1509
        ] ifFalse:[
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1510
"/                self protocolList value:newList.
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1511
        ]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1512
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1513
    listValid := true.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1514
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1515
    "Created: / 5.2.2000 / 13:42:11 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1516
    "Modified: / 29.2.2000 / 11:08:55 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1517
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1518
8989
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1519
!MethodCategoryList methodsFor:'private-info'!
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1520
8990
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1521
methodInfoFor:aMethod in:mclass selector:selector
9083
93e4389dd000 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 9047
diff changeset
  1522
    |info isDocumentationMethod isVersionMethod def|
8990
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1523
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1524
    "/ the first at:ifAbsent: is aktually not needed - it is here to
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1525
    "/ reduce the average blocking time, and to allow for debugging the info generating
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1526
    "/ code without deadlock
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1527
    info := MethodInfoCache at:(mclass name,'>>',selector) ifAbsent:nil.
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1528
    info isNil ifTrue:[
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1529
        true "aMethod mclass language isSmalltalk" ifTrue:[
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1530
            info := CachedMethodInfo new.
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1531
            info isObsolete:(aMethod isObsolete).
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1532
            info sendsSuper:(aMethod superMessages notEmptyOrNil).
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1533
            info isUncommented:(self methodIsMarkedAsUncommented:aMethod).
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1534
            isVersionMethod := aMethod isVersionMethod.
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1535
            isDocumentationMethod := isVersionMethod not and:[aMethod isDocumentationMethod].
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1536
            info isDocumentationMethod:isDocumentationMethod.
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1537
            info isLongMethod:( self methodIsMarkedAsLong:aMethod ).
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1538
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1539
            aMethod package ~= mclass package ifTrue:[
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1540
                aMethod package ~= #'__NoProject__' ifTrue:[
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1541
                    info isExtensionMethod:true.
9083
93e4389dd000 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 9047
diff changeset
  1542
                    info isOverride:( (def := aMethod package asPackageId projectDefinitionClass) notNil
93e4389dd000 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 9047
diff changeset
  1543
                                      and:[ (def methodOverwrittenBy:aMethod ) notNil ])
8990
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1544
                ]
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1545
            ] ifFalse:[
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1546
                info isExtensionMethod:false.
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1547
                info isOverride:false.
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1548
            ].
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1549
            info isRedefine:( isVersionMethod not
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1550
                              and:[ isDocumentationMethod not
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1551
                              and:[ mclass superclass notNil
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1552
                              and:[ (mclass superclass whichClassIncludesSelector:selector ) notNil ]]]).
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1553
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1554
            info isSubclassResponsibility:( aMethod sends:#subclassResponsibility or:#subclassResponsibility: ).
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1555
8990
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1556
            MethodInfoCacheAccessLock critical:[
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1557
                MethodInfoCache at:(mclass name,'>>',selector) put:info
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1558
            ].
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1559
        ].
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1560
    ].
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1561
    ^ info
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1562
!
437c2f8eb9a5 changed: #methodInfoFor:in:selector:
Claus Gittinger <cg@exept.de>
parents: 8989
diff changeset
  1563
8989
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1564
methodIsMarkedAsLong:aMethod
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1565
    "if true, it will be also categorized under the pseudo category 'long'"
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1566
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1567
    |src ast linesWithCode visitor|
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1568
9122
a47af769e281 fixed: #methodIsMarkedAsLong:
Michael Beyl <mb@exept.de>
parents: 9086
diff changeset
  1569
    src := aMethod source ? ''.
8989
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1570
    src asCollectionOfLines size < UserPreferences current numberOfLinesForLongMethod "~~30" ifTrue:[^ false].
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1571
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1572
    "/ ok, it is long;
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1573
    "/ but do not blame the user for writing documentation (dont count comments),
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1574
    "/ or using literal arrays
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1575
    RBParser notNil ifTrue:[
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1576
        ast := RBParser parseMethod:src.
8992
d7a42a5b9be4 changed: #methodIsMarkedAsLong:
fm
parents: 8990
diff changeset
  1577
        ast notNil ifTrue:[
d7a42a5b9be4 changed: #methodIsMarkedAsLong:
fm
parents: 8990
diff changeset
  1578
            visitor := RBProgramNodeVisitor new.
d7a42a5b9be4 changed: #methodIsMarkedAsLong:
fm
parents: 8990
diff changeset
  1579
            visitor pluggableNodeAction:
d7a42a5b9be4 changed: #methodIsMarkedAsLong:
fm
parents: 8990
diff changeset
  1580
                [:eachNode |
d7a42a5b9be4 changed: #methodIsMarkedAsLong:
fm
parents: 8990
diff changeset
  1581
                    |lno|
d7a42a5b9be4 changed: #methodIsMarkedAsLong:
fm
parents: 8990
diff changeset
  1582
                    lno := eachNode lineNumber.
d7a42a5b9be4 changed: #methodIsMarkedAsLong:
fm
parents: 8990
diff changeset
  1583
                    lno notNil ifTrue:[ linesWithCode add:lno ].
d7a42a5b9be4 changed: #methodIsMarkedAsLong:
fm
parents: 8990
diff changeset
  1584
                ].
8989
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1585
8992
d7a42a5b9be4 changed: #methodIsMarkedAsLong:
fm
parents: 8990
diff changeset
  1586
            linesWithCode := Set new.
d7a42a5b9be4 changed: #methodIsMarkedAsLong:
fm
parents: 8990
diff changeset
  1587
            ast acceptVisitor:visitor.
d7a42a5b9be4 changed: #methodIsMarkedAsLong:
fm
parents: 8990
diff changeset
  1588
            linesWithCode size < UserPreferences current numberOfLinesForLongMethod "~~30" ifTrue:[^ false].
d7a42a5b9be4 changed: #methodIsMarkedAsLong:
fm
parents: 8990
diff changeset
  1589
        ].
8989
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1590
    ].
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1591
    ^ true.
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1592
!
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1593
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1594
methodIsMarkedAsUncommented:aMethod
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1595
    "if true, it will be also categorized under the pseudo category 'undocumented'"
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1596
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1597
    ^ aMethod comment isEmptyOrNil 
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1598
    and:[aMethod isVersionMethod not]
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1599
! !
b0d23a8ca15b dont count comments when judging a method as being \"long\"
Claus Gittinger <cg@exept.de>
parents: 8982
diff changeset
  1600
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1601
!MethodCategoryList methodsFor:'special'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1602
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1603
addAdditionalProtocol:aProtocol forClass:aClass
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1604
    |categories|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1605
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1606
    "/ those are simulated - in ST/X, empty categories do not
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1607
    "/ really exist; however, during browsing, it makes sense.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1608
    AdditionalEmptyCategoriesPerClassName isNil ifTrue:[
6664
50eb2e92aaed changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
  1609
        AdditionalEmptyCategoriesPerClassName := Dictionary new.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1610
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1611
    categories := AdditionalEmptyCategoriesPerClassName at:aClass name ifAbsent:nil.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1612
    categories isNil ifTrue:[
6664
50eb2e92aaed changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
  1613
        categories := Set new.
50eb2e92aaed changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
  1614
        AdditionalEmptyCategoriesPerClassName at:aClass name put:categories.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1615
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1616
    categories add:aProtocol.
6664
50eb2e92aaed changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
  1617
    aClass changed:#organization.                                                       "/ not really ... to force update
50eb2e92aaed changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
  1618
    Smalltalk changed:#methodCategoryAdded with:(Array with:aClass with:aProtocol).     "/ not really ... to force update
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1619
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1620
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1621
additionalProtocolForClass:aClass
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1622
    "/ those are simulated - in ST/X, empty categories do not
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1623
    "/ really exist; however, during browsing, it makes sense.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1624
    AdditionalEmptyCategoriesPerClassName isNil ifTrue:[ ^ #() ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1625
    ^ AdditionalEmptyCategoriesPerClassName at:aClass name ifAbsent:[ #() ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1626
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1627
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1628
clearLastSelectedProtocol
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1629
    lastSelectedProtocols := nil
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1630
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1631
6342
698b45d51014 new method-category initial offer
Claus Gittinger <cg@exept.de>
parents: 5950
diff changeset
  1632
lastSelectedProtocols
698b45d51014 new method-category initial offer
Claus Gittinger <cg@exept.de>
parents: 5950
diff changeset
  1633
    ^ lastSelectedProtocols
698b45d51014 new method-category initial offer
Claus Gittinger <cg@exept.de>
parents: 5950
diff changeset
  1634
!
698b45d51014 new method-category initial offer
Claus Gittinger <cg@exept.de>
parents: 5950
diff changeset
  1635
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1636
removeAdditionalProtocol:aListOfProtocols forClass:aClass
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1637
    |categories|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1638
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1639
    "/ those are simulated - in ST/X, empty categories do not
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1640
    "/ really exist; however, during browsing, it makes sense.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1641
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1642
    AdditionalEmptyCategoriesPerClassName isNil ifTrue:[^ self].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1643
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1644
    categories := AdditionalEmptyCategoriesPerClassName at:aClass name ifAbsent:nil.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1645
    categories isNil ifTrue:[^ self].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1646
    categories removeAllFoundIn:aListOfProtocols.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1647
    categories isEmpty ifTrue:[
6664
50eb2e92aaed changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
  1648
        AdditionalEmptyCategoriesPerClassName removeKey:aClass name.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1649
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1650
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1651
    aClass changed:#organization.                      "/ not really ... to force update
6664
50eb2e92aaed changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
  1652
    Smalltalk changed:#methodCategoriesRemoved with:(Array with:aClass with:aListOfProtocols).     "/ not really ... to force update
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1653
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1654
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1655
removeAllAdditionalProtocol
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1656
    "/ those are simulated - in ST/X, empty categories do not
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1657
    "/ really exist; however, during browsing, it makes sense.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1658
    AdditionalEmptyCategoriesPerClassName := nil
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1659
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1660
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1661
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1662
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1663
removeAllAdditionalProtocolForClass:aClass
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1664
    "/ those are simulated - in ST/X, empty categories do not
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1665
    "/ really exist; however, during browsing, it makes sense.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1666
    AdditionalEmptyCategoriesPerClassName notNil ifTrue:[
9128
26fb27aa3d40 changed: #listOfMethodCategories
Claus Gittinger <cg@exept.de>
parents: 9126
diff changeset
  1667
        AdditionalEmptyCategoriesPerClassName removeKey:aClass name ifAbsent:nil
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1668
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1669
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1670
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1671
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1672
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1673
renameAdditionalProtocol:oldName to:newName forClass:aClass
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1674
    |categories|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1675
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1676
    "/ those are simulated - in ST/X, empty categories do not
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1677
    "/ really exist; however, during browsing, it makes sense.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1678
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1679
    AdditionalEmptyCategoriesPerClassName isNil ifTrue:[^ self].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1680
    categories := AdditionalEmptyCategoriesPerClassName at:aClass name ifAbsent:nil.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1681
    categories isNil ifTrue:[^ self].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1682
    categories remove:oldName ifAbsent:nil.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1683
    categories add:newName.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1684
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1685
    aClass changed:#organization.                      "/ not really ... to force update
6664
50eb2e92aaed changed change-update aspect when changing some method category
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
  1686
    Smalltalk changed:#methodCategoryRenamed with:(Array with:aClass with:oldName with:newName).     "/ not really ... to force update
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1687
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1688
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1689
!MethodCategoryList::CachedMethodInfo class methodsFor:'initialization'!
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1690
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1691
initialize
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1692
    FlagObsolete := 1.
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1693
    FlagSendsSuper := 2.
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1694
    FlagIsUncommented := 4.
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1695
    FlagIsDocumentationMethod := 8.
8867
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
  1696
    FlagIsLongMethod := 16.
8931
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1697
    FlagIsExtension := 32.
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1698
    FlagIsOverride := 64.
8964
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
  1699
    FlagIsRedefine := 128.
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1700
    FlagIsSubclassResponsibility := 128.
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1701
! !
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1702
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1703
!MethodCategoryList::CachedMethodInfo class methodsFor:'instance creation'!
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1704
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1705
new
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1706
    ^ self basicNew flags:0.
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1707
! !
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1708
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1709
!MethodCategoryList::CachedMethodInfo methodsFor:'accessing'!
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1710
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1711
flags:something
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1712
    flags := something.
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1713
!
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1714
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1715
isDocumentationMethod
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1716
    ^ (flags ? 0) bitTest: FlagIsDocumentationMethod
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1717
!
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1718
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1719
isDocumentationMethod:aBoolean
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1720
    flags := aBoolean
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1721
                ifTrue:[ flags bitOr: FlagIsDocumentationMethod ]
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1722
                ifFalse:[ flags bitClear: FlagIsDocumentationMethod]
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1723
!
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1724
8931
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1725
isExtensionMethod
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1726
    ^ (flags ? 0) bitTest: FlagIsExtension
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1727
!
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1728
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1729
isExtensionMethod:aBoolean
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1730
    flags := aBoolean
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1731
                ifTrue:[ flags bitOr: FlagIsExtension ]
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1732
                ifFalse:[ flags bitClear: FlagIsExtension]
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1733
!
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1734
8867
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
  1735
isLongMethod
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
  1736
    ^ (flags ? 0) bitTest: FlagIsLongMethod
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
  1737
!
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
  1738
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
  1739
isLongMethod:aBoolean
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
  1740
    flags := aBoolean
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
  1741
                ifTrue:[ flags bitOr: FlagIsLongMethod ]
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
  1742
                ifFalse:[ flags bitClear: FlagIsLongMethod]
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
  1743
!
c926be235b4b changed:
Claus Gittinger <cg@exept.de>
parents: 8860
diff changeset
  1744
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1745
isObsolete
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1746
    ^ (flags ? 0) bitTest: FlagObsolete
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1747
!
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1748
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1749
isObsolete:aBoolean
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1750
    flags := aBoolean
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1751
                ifTrue:[ flags bitOr: FlagObsolete ]
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1752
                ifFalse:[ flags bitClear: FlagObsolete]
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1753
!
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1754
8931
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1755
isOverride
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1756
    ^ (flags ? 0) bitTest: FlagIsOverride
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1757
!
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1758
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1759
isOverride:aBoolean
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1760
    flags := aBoolean
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1761
                ifTrue:[ flags bitOr: FlagIsOverride ]
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1762
                ifFalse:[ flags bitClear: FlagIsOverride]
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1763
!
8c8ce24dadb2 changed:
Claus Gittinger <cg@exept.de>
parents: 8867
diff changeset
  1764
8964
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
  1765
isRedefine
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
  1766
    ^ (flags ? 0) bitTest: FlagIsRedefine
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
  1767
!
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
  1768
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
  1769
isRedefine:aBoolean
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
  1770
    flags := aBoolean
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
  1771
                ifTrue:[ flags bitOr: FlagIsRedefine ]
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
  1772
                ifFalse:[ flags bitClear: FlagIsRedefine]
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
  1773
!
c10e1d1fd7a7 changed:
Claus Gittinger <cg@exept.de>
parents: 8961
diff changeset
  1774
9086
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1775
isSubclassResponsibility
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1776
    ^ (flags ? 0) bitTest: FlagIsSubclassResponsibility
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1777
!
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1778
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1779
isSubclassResponsibility:aBoolean
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1780
    flags := aBoolean
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1781
                ifTrue:[ flags bitOr: FlagIsSubclassResponsibility ]
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1782
                ifFalse:[ flags bitClear: FlagIsSubclassResponsibility]
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1783
!
7b52c338df83 changed:
Claus Gittinger <cg@exept.de>
parents: 9083
diff changeset
  1784
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1785
isUncommented
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1786
    ^ (flags ? 0) bitTest: FlagIsUncommented
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1787
!
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1788
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1789
isUncommented:aBoolean 
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1790
    flags := aBoolean
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1791
                ifTrue:[ flags bitOr: FlagIsUncommented ]
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1792
                ifFalse:[ flags bitClear: FlagIsUncommented]
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1793
!
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1794
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1795
sendsSuper
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1796
    ^ (flags ? 0) bitTest: FlagSendsSuper
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1797
!
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1798
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1799
sendsSuper:aBoolean
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1800
    flags := aBoolean
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1801
                ifTrue:[ flags bitOr: FlagSendsSuper ]
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1802
                ifFalse:[ flags bitClear: FlagSendsSuper]
8781
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1803
! !
385e3f19694a cache the methodInfo - parsing for isUncommented/sendsSuper etc. is
Claus Gittinger <cg@exept.de>
parents: 8742
diff changeset
  1804
9043
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1805
!MethodCategoryList::MissingMethod class methodsFor:'instance creation'!
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1806
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1807
mclass:aClass selector:aSelector
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1808
    ^ self new mclass:aClass selector:aSelector
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1809
! !
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1810
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1811
!MethodCategoryList::MissingMethod methodsFor:'accessing'!
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1812
9043
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1813
mclass
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1814
    ^ mclass
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1815
!
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1816
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1817
mclass:aClass
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1818
    mclass := aClass
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1819
!
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1820
9043
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1821
mclass:aClass selector:aSelector
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1822
    mclass := aClass.
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1823
    selector := aSelector.
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1824
!
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1825
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1826
selector
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1827
    ^ selector
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1828
!
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1829
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1830
selector:something
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1831
    selector := something.
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1832
!
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1833
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1834
source
9729
0d29623f7e10 CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents: 9465
diff changeset
  1835
    ^ (SmalltalkCodeGeneratorTool basicNew
9043
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1836
        codeFor_shouldImplementFor:selector inClass:mclass) 
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1837
            colorizeAllWith:Color red
9729
0d29623f7e10 CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents: 9465
diff changeset
  1838
0d29623f7e10 CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents: 9465
diff changeset
  1839
    "Modified: / 31-01-2011 / 18:29:17 / cg"
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1840
! !
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1841
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1842
!MethodCategoryList::MissingMethod methodsFor:'printing & storing'!
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1843
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1844
printStringForBrowserWithSelector:selector inClass:aClass
9043
1948809d220d changed: #makeGenerator
Claus Gittinger <cg@exept.de>
parents: 9042
diff changeset
  1845
    ^ (selector,' (** missing required **)') colorizeAllWith:Color red
9039
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1846
! !
c7c93f434394 required missing protocol display
Claus Gittinger <cg@exept.de>
parents: 8992
diff changeset
  1847
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1848
!MethodCategoryList class methodsFor:'documentation'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1849
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1850
version
9729
0d29623f7e10 CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents: 9465
diff changeset
  1851
    ^ '$Header: /cvs/stx/stx/libtool/Tools_MethodCategoryList.st,v 1.58 2011-01-31 17:30:53 cg Exp $'
8848
1bc3db6d2e50 changed: #methodInfoFor:
Claus Gittinger <cg@exept.de>
parents: 8785
diff changeset
  1852
!
1bc3db6d2e50 changed: #methodInfoFor:
Claus Gittinger <cg@exept.de>
parents: 8785
diff changeset
  1853
1bc3db6d2e50 changed: #methodInfoFor:
Claus Gittinger <cg@exept.de>
parents: 8785
diff changeset
  1854
version_CVS
9729
0d29623f7e10 CodeGeneratorTool->SmalltalkCodeGeneratorTool
Claus Gittinger <cg@exept.de>
parents: 9465
diff changeset
  1855
    ^ '$Header: /cvs/stx/stx/libtool/Tools_MethodCategoryList.st,v 1.58 2011-01-31 17:30:53 cg Exp $'
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1856
! !
8860
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1857
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1858
MethodCategoryList initialize!
d8ce6a00a43f use a global methodInfoCache
Claus Gittinger <cg@exept.de>
parents: 8848
diff changeset
  1859
MethodCategoryList::CachedMethodInfo initialize!