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