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