Tools_ClassCategoryList.st
author Claus Gittinger <cg@exept.de>
Wed, 13 Mar 2013 23:36:14 +0100
changeset 12465 aed594275d40
parent 12043 9419417e0b19
child 12487 f36cda6765a9
permissions -rw-r--r--
class: Tools::ClassCategoryList changed: #listOfCategories fixed changed-classes count (included meta+non meta)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6179
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
     1
"
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
     2
 COPYRIGHT (c) 2004 by eXept Software AG
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
     3
              All Rights Reserved
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
     4
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
     5
 This software is furnished under a license and may be used
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
     6
 only in accordance with the terms of that license and with the
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
     8
 be provided or otherwise made available to, or used by, any
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
     9
 other person.  No title to or ownership of the software is
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    10
 hereby transferred.
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    11
"
5592
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    12
"{ Package: 'stx:libtool' }"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ NameSpace: Tools }"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
BrowserList subclass:#ClassCategoryList
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
    17
	instanceVariableNames:'categoryList classes allSelected showPseudoCategories
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
    18
		rawCategoryList cookedCategoryList categoryListView'
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	classVariableNames:'AdditionalEmptyCategories'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	poolDictionaries:''
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
	category:'Interface-Browsers-New'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
!ClassCategoryList class methodsFor:'documentation'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
6179
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    26
copyright
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    27
"
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    28
 COPYRIGHT (c) 2004 by eXept Software AG
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    29
              All Rights Reserved
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    30
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    31
 This software is furnished under a license and may be used
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    32
 only in accordance with the terms of that license and with the
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    33
 inclusion of the above copyright notice.   This software may not
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    34
 be provided or otherwise made available to, or used by, any
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    35
 other person.  No title to or ownership of the software is
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    36
 hereby transferred.
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    37
"
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    38
!
182d948dcf05 copyright
Claus Gittinger <cg@exept.de>
parents: 6067
diff changeset
    39
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
documentation
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
    embeddable application displaying the class-categories.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
    Provides an outputGenerator, which enumerates the classes in
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    the selected categories.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    [author:]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
	Claus Gittinger (cg@exept.de)
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
!ClassCategoryList class methodsFor:'interface specs'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
singleCategoryWindowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    "This resource specification was automatically generated
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
     by the UIPainter of ST/X."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
    "Do not manually edit this!! If it is corrupted,
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
     the UIPainter may not be able to read the specification."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
    "
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
     UIPainter new openOnClass:ClassCategoryList andSelector:#singleCategoryWindowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
     ClassCategoryList new openInterface:#singleCategoryWindowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    "
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
    <resource: #canvas>
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
    ^ 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
     #(#FullSpec
5592
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    69
	#name: #singleCategoryWindowSpec
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    70
	#window: 
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
       #(#WindowSpec
5592
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    72
	  #label: 'ClassCategoryList'
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    73
	  #name: 'ClassCategoryList'
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    74
	  #min: #(#Point 0 0)
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    75
	  #max: #(#Point 1024 721)
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    76
	  #bounds: #(#Rectangle 218 175 518 475)
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    77
	)
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    78
	#component: 
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
       #(#SpecCollection
5592
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    80
	  #collection: #(
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    81
	   #(#LabelSpec
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    82
	      #label: 'ClassCategoryName'
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    83
	      #name: 'ClassCategoryLabel'
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    84
	      #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
    85
	      #translateLabel: true
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    86
	      #labelChannel: #classCategoryLabelHolder
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    87
	      #menu: #menuHolder
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    88
	    )
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    89
	   )
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
         
5592
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    91
	)
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
      )
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
windowSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
    "This resource specification was automatically generated
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
     by the UIPainter of ST/X."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
    "Do not manually edit this!! If it is corrupted,
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
     the UIPainter may not be able to read the specification."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
    "
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   103
     UIPainter new openOnClass:Tools::ClassCategoryList andSelector:#windowSpec
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   104
     Tools::ClassCategoryList new openInterface:#windowSpec
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   105
     Tools::ClassCategoryList open
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
    "
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
    <resource: #canvas>
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
    ^ 
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   111
     #(FullSpec
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   112
        name: windowSpec
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   113
        window: 
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   114
       (WindowSpec
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   115
          label: 'ClassCategoryList'
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   116
          name: 'ClassCategoryList'
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   117
          min: (Point 0 0)
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   118
          bounds: (Rectangle 0 0 300 300)
6468
8047fc185bd8 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6179
diff changeset
   119
        )
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   120
        component: 
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   121
       (SpecCollection
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   122
          collection: (
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   123
           (SequenceViewSpec
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   124
              name: 'List'
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   125
              layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   126
              tabable: true
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   127
              model: selectedCategories
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   128
              menu: menuHolder
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   129
              hasHorizontalScrollBar: true
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   130
              hasVerticalScrollBar: true
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   131
              miniScrollerHorizontal: true
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   132
              isMultiSelect: true
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   133
              valueChangeSelector: selectionChangedByClick
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   134
              useIndex: false
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   135
              sequenceList: categoryList
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   136
              doubleClickChannel: doubleClickChannel
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   137
              properties: 
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   138
             (PropertyListDictionary
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   139
                canDropSelector: canDropContext:
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   140
                dragArgument: nil
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   141
                dropArgument: nil
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   142
                dropSelector: doDropContext:
6468
8047fc185bd8 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6179
diff changeset
   143
              )
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   144
              postBuildCallback: postBuildCategoryListView:
6468
8047fc185bd8 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6179
diff changeset
   145
            )
8047fc185bd8 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6179
diff changeset
   146
           )
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
         
6468
8047fc185bd8 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6179
diff changeset
   148
        )
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
      )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
!ClassCategoryList class methodsFor:'plugIn spec'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
aspectSelectors
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
    "This resource specification was automatically generated
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
     by the UIPainter of ST/X."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
    "Do not manually edit this. If it is corrupted,
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
     the UIPainter may not be able to read the specification."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
    "Return a description of exported aspects;
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
     these can be connected to aspects of an embedding application
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
     (if this app is embedded in a subCanvas)."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
    ^ #(
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   166
        #(doubleClickChannel action)
8700
368b61ebdad3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8446
diff changeset
   167
        #forceGeneratorTrigger
368b61ebdad3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8446
diff changeset
   168
        #hideUnloadedClasses
368b61ebdad3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8446
diff changeset
   169
        #immediateUpdate
368b61ebdad3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8446
diff changeset
   170
        #inGeneratorHolder
368b61ebdad3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8446
diff changeset
   171
        #menuHolder
368b61ebdad3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8446
diff changeset
   172
        #nameSpaceFilter
368b61ebdad3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8446
diff changeset
   173
        #organizerMode
368b61ebdad3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8446
diff changeset
   174
        #outGeneratorHolder
368b61ebdad3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8446
diff changeset
   175
        #packageFilter
368b61ebdad3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8446
diff changeset
   176
        #selectedCategories
368b61ebdad3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8446
diff changeset
   177
        #selectionChangeCondition
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   178
        #showCoverageInformation
8700
368b61ebdad3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8446
diff changeset
   179
        #slaveMode
368b61ebdad3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8446
diff changeset
   180
        #updateTrigger
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
      ).
10351
fc931f04ae12 changed: #aspectSelectors
Claus Gittinger <cg@exept.de>
parents: 9463
diff changeset
   182
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
8373
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   185
!ClassCategoryList class methodsFor:'special'!
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   186
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   187
addAdditionalCategory:aCategory
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   188
    "/ those are simulated - in ST/X, empty categories do not
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   189
    "/ really exist; however, during browsing, it makes sense.
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   190
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   191
    AdditionalEmptyCategories isNil ifTrue:[
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   192
        AdditionalEmptyCategories := Set new.
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   193
    ].
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   194
    AdditionalEmptyCategories add:aCategory.
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   195
    Smalltalk changed:#organization with:(nil -> aCategory).  "/ not really ... to force update
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   196
!
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   197
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   198
removeAdditionalCategories:aListOfCategories
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   199
    "/ those are simulated - in ST/X, empty categories do not
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   200
    "/ really exist; however, during browsing, it makes sense.
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   201
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   202
    AdditionalEmptyCategories isNil ifTrue:[^ self].
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   203
    aListOfCategories do:[:eachCategory |
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   204
        AdditionalEmptyCategories remove:eachCategory ifAbsent:nil.
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   205
    ].
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   206
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   207
    Smalltalk changed:#organization   "/ not really ... to force update
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   208
!
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   209
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   210
removeAllAdditionalCategories
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   211
    "/ those are simulated - in ST/X, empty categories do not
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   212
    "/ really exist; however, during browsing, it makes sense.
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   213
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   214
    AdditionalEmptyCategories := nil
8446
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   215
!
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   216
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   217
renameAdditionalCategories:oldNames to:newName
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   218
    "/ those are simulated - in ST/X, empty categories do not
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   219
    "/ really exist; however, during browsing, it makes sense.
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   220
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   221
    self removeAdditionalCategories:oldNames.
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   222
    self addAdditionalCategory:newName.
8373
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   223
! !
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   224
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
!ClassCategoryList methodsFor:'aspects'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
categoryList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
    categoryList isNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
	categoryList := ValueHolder new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
    ^ categoryList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
    "Created: / 25.2.2000 / 02:23:08 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   234
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   235
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
categoryList:aValueHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
    categoryList notNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
	categoryList removeDependent:self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
    categoryList := aValueHolder.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
    categoryList notNil ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
	categoryList addDependent:self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
    "Created: / 18.8.2000 / 15:21:42 / cg"
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
classCategoryLabelHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
    ^ self pseudoListLabelHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
selectedCategories
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   253
    ^ self selectionHolder 
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
selectedCategories:aValueHolder
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
    ^ self selectionHolder:aValueHolder
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   258
!
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   259
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   260
selectionHolder
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   261
"/    self halt.
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   262
    ^ super selectionHolder
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   263
!
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   264
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   265
selectionHolder:aValueHolder
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   266
    "/ self halt.
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   267
    super selectionHolder:aValueHolder
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
!ClassCategoryList methodsFor:'change & update'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
delayedUpdate:something with:aParameter from:changedObject
6702
0f4c00e8eecc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6677
diff changeset
   273
    |selectedCategories allSelectedBefore 
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   274
     nameListEntryForALL categoryOfClass wg|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   275
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   276
    selectedCategories := self selectedCategoriesStrings.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
    changedObject == Smalltalk ifTrue:[
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   279
        ((something == #classVariables) 
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   280
        or:[something == #classDefinition]) ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   281
            listValid == true ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   282
                categoryOfClass := aParameter category.
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   283
                (rawCategoryList includes:categoryOfClass) ifFalse:[
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   284
                    self invalidateList.                
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   285
                ].
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   286
                slaveMode value ~~ true ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   287
                    (selectedCategories includes:categoryOfClass) ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   288
                        "/ a selected class has changed
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   289
                        "/ in order to give others a chance to update their list before,
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   290
                        "/ this one is always enqueued for delayed update (even if immediateUpdate is true)
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   291
                        "/ self enqueueDelayedUpdateOutputGenerator
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   292
                        self enqueueMessage:#updateOutputGenerator for:self arguments:#()
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   293
                    ].
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   294
                ].
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   295
            ].
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   296
            ^ self
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   297
        ].
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   298
        something == #newClass ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   299
            categoryOfClass := aParameter category.
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   300
            listValid == false ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   301
                ^ self
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   302
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   304
            (rawCategoryList includes:categoryOfClass) ifFalse:[
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   305
                self invalidateList.                
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   306
            ].
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   307
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   308
            slaveMode value ~~ true ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   309
                (selectedCategories includes:categoryOfClass) ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   310
                    self enqueueDelayedUpdateOutputGenerator
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   311
                ].
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   312
            ].
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   313
            ^ self
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   314
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   316
        self invalidateList.
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   317
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   318
        (something == #classRemove 
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   319
        or:[something == #projectOrganization 
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   320
        or:[something == #organization]]) ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   321
            slaveMode value ~~ true ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   322
                "/ sorry: cannot filter on category (already changed to #removed)
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   323
                self enqueueDelayedUpdateOutputGenerator
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   324
            ].
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   325
        ].
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   326
        ^ self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
    changedObject == ChangeSet ifTrue:[
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   330
        "/ remove all other change notifications from the eventQueue
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   331
        wg := self windowGroup.
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   332
        wg isNil ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   333
            "/ oops - should no longer be dependent...
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   334
            changedObject removeDependent:self.
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   335
        ] ifFalse:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   336
            wg sensor 
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   337
                flushEventsFor:self 
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   338
                where:[:ev | ev isMessageSendEvent 
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   339
                             and:[ev selector == #delayedUpdate:with:from:
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   340
                             and:[(ev arguments at:3) == ChangeSet]]].
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   341
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   343
        something == #addChange: ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   344
            "/ only need to invalidate, if that change changes my emphasis 
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   345
            "/ (i.e. if its a new methodChange)
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   346
            self window topView shown ifFalse:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   347
                self invalidateList.
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   348
                ^ self
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   349
            ].
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   350
        
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   351
"/            self invalidateList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   352
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   353
            aParameter isMethodChange ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   354
                aParameter changeClass notNil ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   355
                    (ChangeSet current 
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   356
                        count:[:chg | chg notNil and:[chg isMethodChange
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   357
                                      and:[ chg className = aParameter className ]]])
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   358
                    == 1 ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   359
                        "/ that methodChange is the first for this method.
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   360
                        self colorizeCategoryAsChanged:(aParameter changeClass category).
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   361
                    ]
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   362
                ]
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   363
            ].
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   364
            ^ self
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   365
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   366
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   367
        self invalidateList.
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   368
        ^ self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   369
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   370
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   371
    changedObject == nameSpaceFilter ifTrue:[
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   372
        "/ all might be more or less than before ...
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   373
        allSelected := false.
11917
4abec96d769d fixes to allow viewing all vs extensions in a
Claus Gittinger <cg@exept.de>
parents: 11907
diff changeset
   374
        "/ self invalidateList - done in super
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   375
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   376
    changedObject == packageFilter ifTrue:[
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   377
        "/ all might be more or less than before ...
11917
4abec96d769d fixes to allow viewing all vs extensions in a
Claus Gittinger <cg@exept.de>
parents: 11907
diff changeset
   378
        allSelected := false.
4abec96d769d fixes to allow viewing all vs extensions in a
Claus Gittinger <cg@exept.de>
parents: 11907
diff changeset
   379
        "/ self invalidateList - done in super
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   380
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   381
6702
0f4c00e8eecc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6677
diff changeset
   382
    changedObject == self selectedCategories ifTrue:[
11917
4abec96d769d fixes to allow viewing all vs extensions in a
Claus Gittinger <cg@exept.de>
parents: 11907
diff changeset
   383
        listValid ifFalse:[
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   384
            "/ oops - hurry up
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   385
            self invalidateList.
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   386
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   387
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   388
        nameListEntryForALL := self class nameListEntryForALL.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   389
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   390
        selectedCategories size > 1 ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   391
            (selectedCategories includes:nameListEntryForALL) ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   392
                self makeSelectionOtherThanAllVisible.
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   393
            ]
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   394
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   395
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   396
        "/ if all selected before AND allSelected after, no need to update the output generator
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   397
        allSelectedBefore := allSelected ? false.
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   398
        allSelected := selectedCategories includes:nameListEntryForALL.
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   399
        (allSelectedBefore and:[allSelected]) ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   400
            ^ self
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   401
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   402
    ].
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   403
    changedObject == categoryList ifTrue:[
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   404
        self halt.
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   405
    ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   406
    super delayedUpdate:something with:aParameter from:changedObject
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   407
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   408
    "Created: / 5.2.2000 / 13:42:12 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   409
    "Modified: / 12.11.2001 / 19:36:16 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   410
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   411
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   412
forceUpdateList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   413
    self categoryList setValue:#().
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   414
    self updateList.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   415
    self categoryList changed.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   416
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   417
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   418
selectionChangedByClick
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   419
    "we are not interested in that - get another notification
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   420
     via the changed valueHolder"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   421
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   422
    "Created: / 11.2.2000 / 11:39:48 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   423
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   424
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   425
update:something with:aParameter from:changedObject
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   426
    |categoryOfClass|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   427
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   428
    changedObject == Smalltalk ifTrue:[
8751
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   429
        (something == #methodInClass 
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   430
        or:[ something == #classComment
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   431
        or:[ something == #methodDictionary
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   432
        or:[ something == #methodTrap
10365
08529ca9558a changed:
Claus Gittinger <cg@exept.de>
parents: 10351
diff changeset
   433
        or:[ something == #methodCoverageInfo
08529ca9558a changed:
Claus Gittinger <cg@exept.de>
parents: 10351
diff changeset
   434
        or:[ something == #methodInClassRemoved ]]]]]) ifTrue:[
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   435
            ^ self
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   436
        ].
8751
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   437
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   438
        (something == #classVariables
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   439
        or:[something == #classDefinition]) ifTrue:[
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   440
            categoryOfClass := aParameter category.
6702
0f4c00e8eecc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6677
diff changeset
   441
            (self selectedCategoriesStrings includes:categoryOfClass) ifTrue:[
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   442
"/ self halt.
6677
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   443
                self updateOutputGenerator.                
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   444
            ].
bae57592a094 ignore some updates - speedup
Claus Gittinger <cg@exept.de>
parents: 6492
diff changeset
   445
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   448
"/    changedObject == ChangeSet ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   449
"/        something == #addChange: ifTrue:[
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   450
"/            ^ self
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   451
"/        ]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   452
"/    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   453
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   454
    super update:something with:aParameter from:changedObject
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   455
10365
08529ca9558a changed:
Claus Gittinger <cg@exept.de>
parents: 10351
diff changeset
   456
    "Modified: / 20-07-2011 / 18:50:04 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   457
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   458
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   459
!ClassCategoryList methodsFor:'drag & drop'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   460
6468
8047fc185bd8 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6179
diff changeset
   461
canDropContext:aDropContext
7425
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   462
    |cat objects droppedClasses|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   463
7425
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   464
    objects := aDropContext dropObjects collect:[:obj | obj theObject].
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   465
    (self objectsAreClassFiles:objects) ifTrue:[^ true].
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   466
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   467
    (objects conform:[:aClass | aClass isClass]) ifFalse:[^ false].
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   468
    droppedClasses := objects.
6468
8047fc185bd8 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6179
diff changeset
   469
    (droppedClasses contains:[:aClass | aClass isPrivate not]) ifFalse:[^ false].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   470
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   471
    cat := self categoryAtTargetPointOf:aDropContext.
6492
9c446e709216 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6468
diff changeset
   472
    cat isNil ifTrue:[ ^ false ].
9c446e709216 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6468
diff changeset
   473
    cat = '* obsolete *' ifTrue:[ ^  false ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
6468
8047fc185bd8 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6179
diff changeset
   475
    (droppedClasses contains:[:aClass | aClass category ~= cat]) ifFalse:[^ false].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   476
    ^ true.
7119
ae1ad5c150c7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6978
diff changeset
   477
7425
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   478
    "Modified: / 17-10-2006 / 18:28:04 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   479
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   480
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   481
categoryAtTargetPointOf:aDropContext
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   482
    |p categoryListView lineNr cat|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   483
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   484
    p := aDropContext targetPoint.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   485
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   486
    categoryListView := aDropContext targetWidget.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   487
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   488
    lineNr := categoryListView lineAtY:p y.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   489
    lineNr isNil ifTrue:[^ nil].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   491
    cat := rawCategoryList at:lineNr.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   492
    cat := cat string.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   493
    cat = self class nameListEntryForALL ifTrue:[^ nil].
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   494
6702
0f4c00e8eecc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6677
diff changeset
   495
    (cat endsWith:(self stringForExtensions)) ifTrue:[
0f4c00e8eecc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6677
diff changeset
   496
        cat := cat copyWithoutLast:(self stringForExtensions size)
0f4c00e8eecc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6677
diff changeset
   497
    ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   498
    ^ cat
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   499
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   500
6468
8047fc185bd8 drag and drop cleanup
Claus Gittinger <cg@exept.de>
parents: 6179
diff changeset
   501
doDropContext:aDropContext
7425
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   502
    |cat objects|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   503
7425
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   504
    objects := aDropContext dropObjects collect:[:aDropObject | aDropObject theObject].
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   505
    (objects conform:[:something | something isClass]) ifTrue:[
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   506
        cat := self categoryAtTargetPointOf:aDropContext.
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   507
        cat notNil ifTrue:[
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   508
            self masterApplication moveClasses:objects toCategory:cat.
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   509
        ].
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   510
        ^ self
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   511
    ].
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   512
    (objects conform:[:something | something isFilename]) ifTrue:[
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   513
        self dropClassFiles:objects.
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   514
        ^ self
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   515
    ].
7119
ae1ad5c150c7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6978
diff changeset
   516
7425
9e029102ef55 drag&drop:allow dropping st-files from the windows explorer
Claus Gittinger <cg@exept.de>
parents: 7119
diff changeset
   517
    "Modified: / 17-10-2006 / 18:29:25 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   518
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   519
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
!ClassCategoryList methodsFor:'generators'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   521
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   522
makeGenerator
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   523
    "return a generator which enumerates the classes from the selected category."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
8751
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   525
    |cats hideUnloadedClasses allName nameSpaceFilter packageFilter 
12043
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   526
     showChangedClasses showUnloaded showUndocumented showExtendedClasses inclusionTest changedClasses|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
6702
0f4c00e8eecc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6677
diff changeset
   528
    cats := self selectedCategoriesStrings.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   529
    cats size == 0 ifTrue:[
6066
dbc820318498 care for nil-category in classes
Claus Gittinger <cg@exept.de>
parents: 5950
diff changeset
   530
        ^ #()
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
    allName := self class nameListEntryForALL.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
8345
b2e8f543ec50 being a categoryList with a fixed given list
Claus Gittinger <cg@exept.de>
parents: 7504
diff changeset
   535
    (cats includes:allName) ifTrue:[
b2e8f543ec50 being a categoryList with a fixed given list
Claus Gittinger <cg@exept.de>
parents: 7504
diff changeset
   536
        inGeneratorHolder value isOrderedCollection ifTrue:[
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   537
            cats := rawCategoryList copyWithout:allName.
8345
b2e8f543ec50 being a categoryList with a fixed given list
Claus Gittinger <cg@exept.de>
parents: 7504
diff changeset
   538
        ]
b2e8f543ec50 being a categoryList with a fixed given list
Claus Gittinger <cg@exept.de>
parents: 7504
diff changeset
   539
    ].
b2e8f543ec50 being a categoryList with a fixed given list
Claus Gittinger <cg@exept.de>
parents: 7504
diff changeset
   540
8734
d34b06b82112 + pseudo changed entry
Claus Gittinger <cg@exept.de>
parents: 8700
diff changeset
   541
    showChangedClasses := cats includes:(self class nameListEntryForChanged).
8751
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   542
    showUnloaded := cats includes:(self class nameListEntryForUnloaded).
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   543
    showUndocumented := cats includes:(self class nameListEntryForUndocumented).
12043
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   544
    showExtendedClasses := cats includes:(self class nameListEntryForExtendedClasses).
8734
d34b06b82112 + pseudo changed entry
Claus Gittinger <cg@exept.de>
parents: 8700
diff changeset
   545
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   546
    hideUnloadedClasses := self hideUnloadedClasses value ? false.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   547
    nameSpaceFilter := self nameSpaceFilter value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   548
    nameSpaceFilter notNil ifTrue:[
6066
dbc820318498 care for nil-category in classes
Claus Gittinger <cg@exept.de>
parents: 5950
diff changeset
   549
        (nameSpaceFilter includes:allName) ifTrue:[nameSpaceFilter := nil].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   550
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   551
    packageFilter := self packageFilter value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   552
    packageFilter notNil ifTrue:[
6066
dbc820318498 care for nil-category in classes
Claus Gittinger <cg@exept.de>
parents: 5950
diff changeset
   553
        (packageFilter includes:allName) ifTrue:[packageFilter := nil].
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
    (cats includes:allName) ifTrue:[
6066
dbc820318498 care for nil-category in classes
Claus Gittinger <cg@exept.de>
parents: 5950
diff changeset
   557
        hideUnloadedClasses ifTrue:[
8751
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   558
            inclusionTest := [:cls | cls isLoaded].
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   559
        ] ifFalse:[
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   560
            inclusionTest := [:cls | true].
6066
dbc820318498 care for nil-category in classes
Claus Gittinger <cg@exept.de>
parents: 5950
diff changeset
   561
        ].
8751
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   562
    ] ifFalse:[
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   563
        inclusionTest := 
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   564
            [:cls | 
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   565
                |cat isLoaded included|
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   566
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   567
                isLoaded := cls isLoaded.
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   568
                included := isLoaded not and:[ showUnloaded ].
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   569
                included ifFalse:[
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   570
                    (hideUnloadedClasses not or:[isLoaded]) ifTrue:[
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   571
                        cat := cls category ? '* no category *'.
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   572
                        included := cats includes:cat.
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   573
                        included ifFalse:[
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   574
                            included := showChangedClasses 
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   575
                                        and:[ (changedClasses includes:cls theNonMetaclass)
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   576
                                                or:[(changedClasses includes:cls theMetaclass)] ].
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   577
                            included ifFalse:[
11880
7b506ebc8ef8 changed:
Claus Gittinger <cg@exept.de>
parents: 11860
diff changeset
   578
                                included := showUndocumented 
7b506ebc8ef8 changed:
Claus Gittinger <cg@exept.de>
parents: 11860
diff changeset
   579
                                            and:[ isLoaded 
7b506ebc8ef8 changed:
Claus Gittinger <cg@exept.de>
parents: 11860
diff changeset
   580
                                            and:[ cls isPrivate not    
7b506ebc8ef8 changed:
Claus Gittinger <cg@exept.de>
parents: 11860
diff changeset
   581
                                            and:[ (cls theMetaclass includesSelector:#documentation) not ]]].
12043
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   582
                                included ifFalse:[
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   583
                                    included := showExtendedClasses
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   584
                                                and:[ cls hasExtensions ].
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   585
                                ].
8751
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   586
                            ].
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   587
                        ].
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   588
                    ].
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   589
                ].
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   590
                included
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   591
            ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   592
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   593
8748
5abc96ba76eb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8741
diff changeset
   594
    ^ Iterator on:[:whatToDo |
8751
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   595
            showChangedClasses ifTrue:[ changedClasses := ChangeSet current changedClasses ].
8734
d34b06b82112 + pseudo changed entry
Claus Gittinger <cg@exept.de>
parents: 8700
diff changeset
   596
8751
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   597
            Smalltalk allClassesDo:[:cls |
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   598
                (cls isRealNameSpace) ifFalse:[
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   599
                    (inclusionTest value:cls) ifTrue:[
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   600
                        (nameSpaceFilter isNil
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   601
                        or:[self isClass:cls shownWithNameSpaceFilter:nameSpaceFilter]) ifTrue:[
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   602
                            (packageFilter isNil
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   603
                            or:[self isClass:cls shownWithPackageFilter:packageFilter]) ifTrue:[
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   604
                                whatToDo value:cls
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   605
                            ]
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   606
                        ]
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   607
                    ].
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   608
                ].
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   609
            ].
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   610
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
7504
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   612
    "Created: / 05-02-2000 / 13:42:12 / cg"
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   613
    "Modified: / 10-11-2006 / 17:13:26 / cg"
5591
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
!ClassCategoryList methodsFor:'private'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   618
colorizeCategoryAsChanged:category
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   619
    |colorizedCategoryItem categoryList idx|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   620
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   621
    colorizedCategoryItem := self colorizeForChangedCode:category copy asText.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   622
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   623
    categoryList := self categoryList value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   624
    idx := categoryList indexOf:category.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   625
    idx ~~ 0 ifTrue:[
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   626
        ((categoryList at:idx) sameStringAndEmphasisAs:colorizedCategoryItem) ifFalse:[
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   627
            categoryList at:idx put:colorizedCategoryItem.
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   628
            self categoryList changed.
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   629
        ]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   630
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   631
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   632
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   633
listOfCategories
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   634
    |categories categoriesBag hideUnloadedClasses generator nameSpaceFilter packageFilter allName
7504
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   635
     categoriesWithExtensions categoriesWithChangedCode categoriesWithRemoteChangedCode
12043
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   636
     classesInChangeSet classesInRemoteChangeSet classesWithExtensions
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   637
     numClassesInChangeSet numClasses numUnloaded numUndocumented numExtendedClasses pseudoEntryColor|
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   638
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   639
    allName := self class nameListEntryForALL.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   640
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   641
    hideUnloadedClasses := self hideUnloadedClasses value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   642
    nameSpaceFilter := self nameSpaceFilter value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   643
    nameSpaceFilter notNil ifTrue:[
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   644
        (nameSpaceFilter includes:allName) ifTrue:[nameSpaceFilter := nil].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   645
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   646
    packageFilter := self packageFilter value.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   647
    packageFilter notNil ifTrue:[
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   648
        (packageFilter includes:allName) ifTrue:[packageFilter := nil].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   649
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   650
12043
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   651
    numClasses := numUndocumented := numUnloaded := numClassesInChangeSet := numExtendedClasses := 0.
8734
d34b06b82112 + pseudo changed entry
Claus Gittinger <cg@exept.de>
parents: 8700
diff changeset
   652
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   653
    categories := Set new.
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   654
    categoriesBag := Bag new.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   655
    categoriesWithExtensions := Set new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   656
    categoriesWithChangedCode := Set new.
7504
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   657
    categoriesWithRemoteChangedCode := Set new.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   658
6978
6d2a2365dde8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6962
diff changeset
   659
    classesInChangeSet := ChangeSet current changedClasses.
6d2a2365dde8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6962
diff changeset
   660
    classesInChangeSet := classesInChangeSet collect:[:eachClass | eachClass theNonMetaclass].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   661
7504
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   662
    classesInRemoteChangeSet := SmallTeam isNil ifTrue:[#()] ifFalse:[ SmallTeam changedClasses ].
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   663
    classesInRemoteChangeSet := classesInRemoteChangeSet collect:[:each | each theNonMetaclass].
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   664
12043
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   665
    classesWithExtensions := IdentitySet new.
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   666
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   667
    classes := IdentitySet new.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   668
    inGeneratorHolder isNil ifTrue:[
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   669
        Smalltalk allClassesDo:[:cls | 
8751
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   670
            |cat isLoaded|
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   671
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   672
            (cls isRealNameSpace) ifFalse:[
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   673
                (nameSpaceFilter isNil
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   674
                or:[self isClass:cls shownWithNameSpaceFilter:nameSpaceFilter]) ifTrue:[
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   675
                    (packageFilter isNil
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   676
                    or:[self isClass:cls shownWithPackageFilter:packageFilter]) ifTrue:[
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   677
8751
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   678
                        isLoaded := cls isLoaded.
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   679
                        isLoaded ifTrue:[ 
11880
7b506ebc8ef8 changed:
Claus Gittinger <cg@exept.de>
parents: 11860
diff changeset
   680
                            numUnloaded := numUnloaded + 1.
7b506ebc8ef8 changed:
Claus Gittinger <cg@exept.de>
parents: 11860
diff changeset
   681
                            cls isPrivate ifFalse:[  
7b506ebc8ef8 changed:
Claus Gittinger <cg@exept.de>
parents: 11860
diff changeset
   682
                                (cls theMetaclass includesSelector:#documentation) ifFalse:[
7b506ebc8ef8 changed:
Claus Gittinger <cg@exept.de>
parents: 11860
diff changeset
   683
                                    numUndocumented := numUndocumented + 1.
7b506ebc8ef8 changed:
Claus Gittinger <cg@exept.de>
parents: 11860
diff changeset
   684
                                ].
8751
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   685
                            ].
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   686
                        ].
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   687
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   688
                        (hideUnloadedClasses not or:[isLoaded])
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   689
                        ifTrue:[
8734
d34b06b82112 + pseudo changed entry
Claus Gittinger <cg@exept.de>
parents: 8700
diff changeset
   690
                            numClasses := numClasses + 1.
d34b06b82112 + pseudo changed entry
Claus Gittinger <cg@exept.de>
parents: 8700
diff changeset
   691
6066
dbc820318498 care for nil-category in classes
Claus Gittinger <cg@exept.de>
parents: 5950
diff changeset
   692
                            cat := cls category ? '* no category *'.
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   693
                            cat isString ifFalse:[self halt:'oops - strange category'].
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   694
                            categories add:cat.
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   695
                            classes add:cls.
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   696
                            categoriesBag add:cat.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   697
6978
6d2a2365dde8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6962
diff changeset
   698
                            (classesInChangeSet includes:cls theNonMetaclass) ifTrue:[
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   699
                                categoriesWithChangedCode add:cat
7504
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   700
                            ].
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   701
                            (classesInRemoteChangeSet includes:cls theNonMetaclass) ifTrue:[
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   702
                                categoriesWithRemoteChangedCode add:cat
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   703
                            ].
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   704
                            cls hasExtensions ifTrue:[
12043
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   705
                                categoriesWithExtensions add:cat.
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   706
                                classesWithExtensions add:cls.
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   707
                                numExtendedClasses := numExtendedClasses + 1.
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   708
                            ].
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   709
                        ]
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   710
                    ]
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   711
                ]
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   712
            ]
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   713
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   714
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   715
        "/ those are simulated - in ST/X, empty categories do not
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   716
        "/ really exist; however, during browsing, it makes sense.
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   717
        AdditionalEmptyCategories size > 0 ifTrue:[
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   718
            "/ remove those that are present ...
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   719
            AdditionalEmptyCategories := AdditionalEmptyCategories select:[:cat | (categories includes:cat) not].
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   720
            categories addAll:AdditionalEmptyCategories.
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   721
            categoriesBag addAll:AdditionalEmptyCategories withOccurrences:0.
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   722
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   723
    ] ifFalse:[
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   724
        |setOfCategories|
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   725
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   726
        generator := inGeneratorHolder value.
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   727
        generator isNil ifTrue:[^ #() ].
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   728
        setOfCategories := Set withAll:generator.
8345
b2e8f543ec50 being a categoryList with a fixed given list
Claus Gittinger <cg@exept.de>
parents: 7504
diff changeset
   729
        generator do:[:cat | categories add:cat string].
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   730
        
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   731
        Smalltalk allClassesDo:[:each |
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   732
            |cat|
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   733
11927
ee03bf5d5548 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11917
diff changeset
   734
            each isNameSpace ifFalse:[
11900
4d1f5bd0a4df changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11880
diff changeset
   735
                cat := each category string asSymbol.
4d1f5bd0a4df changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11880
diff changeset
   736
                (setOfCategories includes:cat) ifTrue:[
4d1f5bd0a4df changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11880
diff changeset
   737
                    categoriesBag add:cat.
4d1f5bd0a4df changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11880
diff changeset
   738
                ].
4d1f5bd0a4df changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11880
diff changeset
   739
            ]
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   740
        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   741
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   742
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   743
    pseudoEntryColor := self class pseudoEntryForegroundColor.
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   744
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   745
    categories := categories asOrderedCollection.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   746
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   747
    categories sort.
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   748
    rawCategoryList := categories.
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   749
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   750
    categories := 
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   751
        categories collect:[:cat |
11944
98b10d0e2fd3 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11927
diff changeset
   752
            |item isInChangeSet|
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   753
11944
98b10d0e2fd3 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11927
diff changeset
   754
            isInChangeSet := categoriesWithChangedCode includes:cat.
98b10d0e2fd3 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11927
diff changeset
   755
            isInChangeSet ifTrue:[
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   756
                 item := self colorizeForChangedCode:cat copy asText
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   757
            ] ifFalse:[
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   758
                (categoriesWithExtensions includes:cat) ifTrue:[
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   759
                     item := self colorizeForDifferentPackage:cat copy asText
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   760
                     "/ cannot add a + here - need separate list for presentation and filter
6702
0f4c00e8eecc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6677
diff changeset
   761
                     "/ cat , (self colorizeForDifferentPackage:self stringForExtensions)
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   762
                ] ifFalse:[
7504
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   763
                    (categoriesWithRemoteChangedCode includes:cat) ifTrue:[
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   764
                         item := self colorizeForChangedCodeInSmallTeam:cat copy asText
7504
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   765
                    ] ifFalse:[
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   766
                         item := cat
7504
34ab937df8de preps for SmallTeam
Claus Gittinger <cg@exept.de>
parents: 7425
diff changeset
   767
                    ]
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   768
                ]
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   769
            ].
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   770
            item := item , ((' (%1)' bindWith:(categoriesBag occurrencesOf:cat)) 
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   771
                                colorizeAllWith:pseudoEntryColor).
11944
98b10d0e2fd3 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11927
diff changeset
   772
            isInChangeSet ifTrue:[
98b10d0e2fd3 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11927
diff changeset
   773
                item := item , self class markForBeingInChangeList
98b10d0e2fd3 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11927
diff changeset
   774
            ].
98b10d0e2fd3 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11927
diff changeset
   775
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   776
            item        
5950
6bcc39c4e1ea *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5914
diff changeset
   777
        ].
8734
d34b06b82112 + pseudo changed entry
Claus Gittinger <cg@exept.de>
parents: 8700
diff changeset
   778
11907
6aa533944c59 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11900
diff changeset
   779
    numUndocumented > 0 ifTrue:[
6aa533944c59 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11900
diff changeset
   780
        rawCategoryList add:self class nameListEntryForUndocumented.
6aa533944c59 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11900
diff changeset
   781
        categories add:((self class nameListEntryForUndocumentedWithCount bindWith:numUndocumented) allItalic colorizeAllWith:pseudoEntryColor).
8751
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   782
    ].
11907
6aa533944c59 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11900
diff changeset
   783
    numUnloaded > 0 ifTrue:[
6aa533944c59 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11900
diff changeset
   784
        rawCategoryList add:self class nameListEntryForUnloaded.
6aa533944c59 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11900
diff changeset
   785
        categories add:((self class nameListEntryForUnloadedWithCount bindWith:numUnloaded) allItalic colorizeAllWith:pseudoEntryColor).
8751
2cd8c5f2536c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8748
diff changeset
   786
    ].
12043
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   787
    numExtendedClasses > 0 ifTrue:[
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   788
        rawCategoryList add:self class nameListEntryForExtendedClasses.
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   789
        categories add:((self class nameListEntryForExtendedClassesWithCount bindWith:numExtendedClasses) allItalic colorizeAllWith:pseudoEntryColor).
9419417e0b19 classes with extensions
Claus Gittinger <cg@exept.de>
parents: 11944
diff changeset
   790
    ].
12465
aed594275d40 class: Tools::ClassCategoryList
Claus Gittinger <cg@exept.de>
parents: 12043
diff changeset
   791
    numClassesInChangeSet := (ChangeSet current changedClasses collect:[:c | c theNonMetaclass]) asSet size.
8734
d34b06b82112 + pseudo changed entry
Claus Gittinger <cg@exept.de>
parents: 8700
diff changeset
   792
    numClassesInChangeSet > 0 ifTrue:[
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   793
        rawCategoryList addFirst:self class nameListEntryForChanged.
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   794
        categories addFirst:((self class nameListEntryForChangedWithCount bindWith:numClassesInChangeSet) allItalic colorizeAllWith:pseudoEntryColor).
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   795
    ].
8734
d34b06b82112 + pseudo changed entry
Claus Gittinger <cg@exept.de>
parents: 8700
diff changeset
   796
d34b06b82112 + pseudo changed entry
Claus Gittinger <cg@exept.de>
parents: 8700
diff changeset
   797
    categories size > 0 ifTrue:[
d34b06b82112 + pseudo changed entry
Claus Gittinger <cg@exept.de>
parents: 8700
diff changeset
   798
        categories size == 1 ifTrue:[
d34b06b82112 + pseudo changed entry
Claus Gittinger <cg@exept.de>
parents: 8700
diff changeset
   799
            self classCategoryLabelHolder value:(categories first)
d34b06b82112 + pseudo changed entry
Claus Gittinger <cg@exept.de>
parents: 8700
diff changeset
   800
        ].
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   801
        rawCategoryList addFirst:self class nameListEntryForALL.
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   802
        categories addFirst:((self class nameListEntryForALLWithCount bindWith:numClasses) allItalic colorizeAllWith:pseudoEntryColor).
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   803
    ].
8734
d34b06b82112 + pseudo changed entry
Claus Gittinger <cg@exept.de>
parents: 8700
diff changeset
   804
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   805
    cookedCategoryList := categories.
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   806
    ^ rawCategoryList.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   807
6950
0d03f8c9a9ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6702
diff changeset
   808
    "Created: / 05-02-2000 / 13:42:12 / cg"
11944
98b10d0e2fd3 changed: #listOfCategories
Claus Gittinger <cg@exept.de>
parents: 11927
diff changeset
   809
    "Modified: / 27-10-2012 / 12:34:19 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   810
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   811
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   812
listView 
8741
75ab2cc4dd56 cleanup
Claus Gittinger <cg@exept.de>
parents: 8734
diff changeset
   813
    ^ self componentAt:#List
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   814
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   815
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   816
makeDependent
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   817
    Smalltalk addDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   818
    ChangeSet addDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   819
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   820
    "Created: / 5.2.2000 / 13:42:13 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   821
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   822
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   823
makeIndependent
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   824
    Smalltalk removeDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   825
    ChangeSet removeDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   826
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   827
    "Created: / 5.2.2000 / 13:42:13 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   828
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   829
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   830
makeItemVisible:item
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   831
    |idx listView|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   832
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   833
    idx := categoryList value indexOf:item.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   834
    idx ~~ 0 ifTrue:[
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   835
        (listView := self listView) notNil ifTrue:[
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   836
            listView makeLineVisible:idx.
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   837
        ]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   838
    ]
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   839
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   840
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   841
makeSelectionOtherThanAllVisible
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   842
    |selectedCategories item|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   843
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   844
    selectedCategories := self selectedCategoriesStrings.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   845
    "/ the first item after the *all* item
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   846
    item := (selectedCategories copy remove:self class nameListEntryForALL; yourself) first.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   847
    self makeItemVisible:item.
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
release
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   851
    super release.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   852
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   853
    categoryList removeDependent:self.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   854
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   855
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   856
selectedCategoriesStrings
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   857
    |selectedCategories stringForExtensions|
6950
0d03f8c9a9ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6702
diff changeset
   858
0d03f8c9a9ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6702
diff changeset
   859
    stringForExtensions := self stringForExtensions.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   860
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   861
    selectedCategories := self selectedCategories value ? #().
6950
0d03f8c9a9ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6702
diff changeset
   862
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   863
"/    selectedCategories := selectedCategories 
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   864
"/                collect:[:each | 
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   865
"/                                |s|
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   866
"/                                s := each string.
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   867
"/                                (s endsWith:stringForExtensions) ifTrue:[
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   868
"/                                    s := s copyWithoutLast:(stringForExtensions size).
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   869
"/                                ].
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   870
"/                                s
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   871
"/                        ].
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   872
    ^ selectedCategories
6950
0d03f8c9a9ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6702
diff changeset
   873
0d03f8c9a9ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6702
diff changeset
   874
    "Modified: / 23-08-2006 / 11:38:26 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   875
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   876
6702
0f4c00e8eecc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6677
diff changeset
   877
stringForExtensions
0f4c00e8eecc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6677
diff changeset
   878
    ^ ' [ + ]'
0f4c00e8eecc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6677
diff changeset
   879
!
0f4c00e8eecc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6677
diff changeset
   880
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   881
updateList
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   882
    |oldList newList oldSelection newSelection prevClasses
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   883
     selectedCategoriesHolder|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   884
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   885
    selectedCategoriesHolder := self selectedCategories.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   886
    oldSelection := selectedCategoriesHolder value ? #().
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   887
    prevClasses := classes copy.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   888
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   889
    newList := self listOfCategories.    "/ sigh - sideeffect of setting rawList
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   890
    oldList := (self categoryList value) ? #().
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   891
    (newList sameContentsAs:oldList whenComparedWith:[:a :b | a sameStringAndEmphasisAs: b]) 
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   892
    ifFalse:[
10580
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   893
        "/ a real change, or only emphasis ?
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   894
        (newList sameContentsAs:oldList whenComparedWith:[:a :b | a asString string = b asString string]) ifTrue:[
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   895
            "/ only emphasis
10580
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   896
            oldSelection size > 0 ifTrue:[
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   897
                selectedCategoriesHolder removeDependent:self.
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   898
                selectedCategoriesHolder value:#().
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   899
                selectedCategoriesHolder addDependent:self.
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   900
            ].
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   901
            categoryList value:newList.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   902
10580
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   903
            oldSelection size > 0 ifTrue:[
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   904
                newSelection := oldSelection select:[:cat | newList includes:cat].
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   905
                selectedCategoriesHolder value:newSelection.
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   906
            ]
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   907
        ] ifFalse:[
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   908
            "/ a real change
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   909
10580
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   910
            categoryList value:newList.
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   911
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   912
            "/ in case the same categories are present, but classes have changed ...
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   913
            (prevClasses isNil or:[(classes identicalContentsAs:prevClasses) not]) ifTrue:[
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   914
                self updateOutputGenerator.
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   915
            ]
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   916
        ]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   917
    ] ifTrue:[
10580
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   918
        "/ in case the same categories are present, but classes have changed ...
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   919
        (prevClasses isNil or:[(classes identicalContentsAs:prevClasses) not]) ifTrue:[
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   920
            self updateOutputGenerator.
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   921
        ]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   922
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   923
    listValid := true.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   924
10580
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   925
    "Created: / 05-02-2000 / 13:42:13 / cg"
05d94191950a changed: #updateList
Claus Gittinger <cg@exept.de>
parents: 10365
diff changeset
   926
    "Modified: / 17-08-2011 / 09:52:13 / cg"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   927
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   928
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   929
!ClassCategoryList methodsFor:'setup'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   930
5909
95cd2d9822b3 commonPostBuild
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
   931
commonPostBuild
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   932
    |listView|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   933
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   934
    listView := self listView.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   935
    listView notNil ifTrue:[
5909
95cd2d9822b3 commonPostBuild
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
   936
        listView scrollWhenUpdating:nil
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   937
    ].
5909
95cd2d9822b3 commonPostBuild
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
   938
    super commonPostBuild
11860
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   939
!
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   940
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   941
postBuildCategoryListView:aView
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   942
    categoryListView := aView.
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   943
    categoryListView visualBlock:[:view :lineNr | cookedCategoryList at:lineNr].
7049aeccbf41 show the number of classes per category
Claus Gittinger <cg@exept.de>
parents: 10580
diff changeset
   944
    categoryListView selectedVisualBlock:[:view :lineNr | (cookedCategoryList at:lineNr) string]
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   945
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   946
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   947
!ClassCategoryList methodsFor:'special'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   948
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   949
addAdditionalCategory:aCategory
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   950
    "/ those are simulated - in ST/X, empty categories do not
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   951
    "/ really exist; however, during browsing, it makes sense.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   952
8373
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   953
    self class addAdditionalCategory:aCategory
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   954
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   955
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   956
removeAdditionalCategories:aListOfCategories
8373
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   957
    self class removeAdditionalCategories:aListOfCategories
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   958
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   959
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   960
removeAllAdditionalCategories
8373
be8e0f309373 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8345
diff changeset
   961
    self class removeAllAdditionalCategories
8446
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   962
!
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   963
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   964
renameAdditionalCategories:oldNames to:newName
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   965
    "/ those are simulated - in ST/X, empty categories do not
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   966
    "/ really exist; however, during browsing, it makes sense.
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   967
42de63700611 category rename
Claus Gittinger <cg@exept.de>
parents: 8373
diff changeset
   968
    self class renameAdditionalCategories:oldNames to:newName
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   969
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   970
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   971
!ClassCategoryList class methodsFor:'documentation'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   972
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   973
version
12465
aed594275d40 class: Tools::ClassCategoryList
Claus Gittinger <cg@exept.de>
parents: 12043
diff changeset
   974
    ^ '$Header: /cvs/stx/stx/libtool/Tools_ClassCategoryList.st,v 1.41 2013-03-13 22:36:14 cg Exp $'
9005
897d90c333e7 changed:
Claus Gittinger <cg@exept.de>
parents: 8751
diff changeset
   975
!
897d90c333e7 changed:
Claus Gittinger <cg@exept.de>
parents: 8751
diff changeset
   976
897d90c333e7 changed:
Claus Gittinger <cg@exept.de>
parents: 8751
diff changeset
   977
version_CVS
12465
aed594275d40 class: Tools::ClassCategoryList
Claus Gittinger <cg@exept.de>
parents: 12043
diff changeset
   978
    ^ '$Header: /cvs/stx/stx/libtool/Tools_ClassCategoryList.st,v 1.41 2013-03-13 22:36:14 cg Exp $'
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   979
! !
12465
aed594275d40 class: Tools::ClassCategoryList
Claus Gittinger <cg@exept.de>
parents: 12043
diff changeset
   980