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