SystemOrganizer.st
author Claus Gittinger <cg@exept.de>
Mon, 07 Feb 2000 12:16:03 +0100
changeset 901 8fd26c5e8e8f
parent 899 7b65d6f2b0f0
child 906 862b6903fbf3
permissions -rw-r--r--
more VW compatibility
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
Object subclass:#SystemOrganizer
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
     2
	instanceVariableNames:'categoryArray nameSpace'
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
     3
	classVariableNames:'AllCategories'
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
	poolDictionaries:''
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
	category:'Kernel-Support'
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
!
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
     8
!SystemOrganizer class methodsFor:'documentation'!
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
     9
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    10
documentation
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    11
"
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    12
     In ST80, there is a systemOrganization, which groups classes
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    13
     to categories.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    14
     All of this here is mimicri - ST/X keeps the category in the class.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    15
     This class simulates the ST80 behavior.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    16
"
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    17
! !
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!SystemOrganizer class methodsFor:'instance creation'!
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
for:aNameSpace
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    22
    "create & return a new instance of myself, to organize aNameSpace.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    23
     All of this here is mimicri - ST/X keeps the category in the class."
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    25
    ^ self new nameSpace:aNameSpace.
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    27
    "Modified: / 6.2.2000 / 20:25:50 / cg"
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
! !
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
!SystemOrganizer methodsFor:'accessing'!
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    32
addCategory:aCategory before:someOtherCategory
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    33
    (categoryArray isNil
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    34
    or:[(categoryArray includes:aCategory) not]) ifTrue:[
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    35
        categoryArray := nil.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    36
        AllCategories add:aCategory.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    37
    ].
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    38
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    39
    "Created: / 6.2.2000 / 20:42:20 / cg"
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    40
    "Modified: / 6.2.2000 / 20:44:34 / cg"
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    41
!
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    42
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
categories
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    "return a collection of my classes class-categories.
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
     If my nameSpace is nil, all classes' categories are included;
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
     otherwise, only the categories of that particular namespace."
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    48
    |addClassAction categorySet searchedNamespace allNames|
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    50
    categoryArray notNil ifTrue:[
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    51
        ^ categoryArray
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    52
    ].
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    54
    addClassAction := [:aClass |
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    55
        |cat|
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    57
        aClass isMeta ifFalse:[
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    58
            (aClass isNamespace not) ifTrue:[
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    59
                cat := aClass category.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    60
                cat isNil ifTrue:[
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    61
                    cat := '* no category *'
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    62
                ].
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    63
                cat ~= 'obsolete' ifTrue:[
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    64
                    categorySet add:cat
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
                ]
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
            ]
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
        ].
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    68
    ].
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    69
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    70
    AllCategories isNil ifTrue:[
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    71
        categorySet := Set new.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    72
        Smalltalk allBehaviorsDo:addClassAction.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    73
        AllCategories := categorySet.
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
    ].
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    75
        
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    76
    (searchedNamespace := nameSpace) isNil ifTrue:[
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    77
        allNames := true.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    78
        searchedNamespace := Smalltalk.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    79
    ].
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    80
    searchedNamespace == Smalltalk ifTrue:[
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    81
        categorySet := AllCategories.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    82
    ] ifFalse:[
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    83
        categorySet := Set new.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    84
        searchedNamespace allBehaviorsDo:addClassAction.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    85
    ].
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    86
    categoryArray := categorySet asArray sort.
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
    ^ categoryArray
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
    "
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
     (SystemOrganizer for:nil) categories 
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
     (SystemOrganizer for:Smalltalk) categories 
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
     (SystemOrganizer for:Demos) categories 
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
    "
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
    95
    "Modified: / 6.2.2000 / 20:33:42 / cg"
689
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
    96
!
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
    97
895
f8702324cc12 added #categoryOfElement - for RB
Claus Gittinger <cg@exept.de>
parents: 689
diff changeset
    98
categoryOfElement:aClassName
f8702324cc12 added #categoryOfElement - for RB
Claus Gittinger <cg@exept.de>
parents: 689
diff changeset
    99
    "return a classes category;
f8702324cc12 added #categoryOfElement - for RB
Claus Gittinger <cg@exept.de>
parents: 689
diff changeset
   100
     the argument is the classes name"
f8702324cc12 added #categoryOfElement - for RB
Claus Gittinger <cg@exept.de>
parents: 689
diff changeset
   101
f8702324cc12 added #categoryOfElement - for RB
Claus Gittinger <cg@exept.de>
parents: 689
diff changeset
   102
    |cls|
f8702324cc12 added #categoryOfElement - for RB
Claus Gittinger <cg@exept.de>
parents: 689
diff changeset
   103
f8702324cc12 added #categoryOfElement - for RB
Claus Gittinger <cg@exept.de>
parents: 689
diff changeset
   104
    cls := Smalltalk at:aClassName ifAbsent:nil.
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   105
    cls notNil ifTrue:[
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   106
        ^ cls category
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   107
    ].
895
f8702324cc12 added #categoryOfElement - for RB
Claus Gittinger <cg@exept.de>
parents: 689
diff changeset
   108
    self error:'no such class'.
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   109
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   110
    "Modified: / 6.2.2000 / 20:12:10 / cg"
895
f8702324cc12 added #categoryOfElement - for RB
Claus Gittinger <cg@exept.de>
parents: 689
diff changeset
   111
!
f8702324cc12 added #categoryOfElement - for RB
Claus Gittinger <cg@exept.de>
parents: 689
diff changeset
   112
899
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 895
diff changeset
   113
classify:aClassName under:newCategory
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 895
diff changeset
   114
    "change a classes category;
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 895
diff changeset
   115
     the argument is the classes name"
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 895
diff changeset
   116
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   117
    |cls cats|
899
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 895
diff changeset
   118
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 895
diff changeset
   119
    cls := Smalltalk at:aClassName ifAbsent:nil.
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   120
    cls notNil ifTrue:[
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   121
        (AllCategories includes:newCategory) ifFalse:[
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   122
            cats := AllCategories asOrderedCollection.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   123
            cats add:newCategory.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   124
            cats sort.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   125
            AllCategories := cats.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   126
        ].
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   127
        (categoryArray notNil and:[categoryArray includes:newCategory]) not
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   128
        ifTrue:[
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   129
            categoryArray := nil.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   130
        ].
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   131
        ^ cls category:newCategory
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   132
    ].
899
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 895
diff changeset
   133
    self error:'no such class'.
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 895
diff changeset
   134
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 895
diff changeset
   135
    "Created: / 4.2.2000 / 18:30:11 / cg"
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   136
    "Modified: / 6.2.2000 / 20:36:30 / cg"
899
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 895
diff changeset
   137
!
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 895
diff changeset
   138
689
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   139
listAtCategoryNamed:aCategory
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   140
    "return a collection of classes in aCategory."
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   141
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   142
    |set classSet searchedNamespace allNames|
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   143
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   144
    classSet := IdentitySet new.
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   145
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   146
    (searchedNamespace := nameSpace) isNil ifTrue:[
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   147
        allNames := true.
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   148
        searchedNamespace := Smalltalk.
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   149
    ].
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   150
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   151
    searchedNamespace allBehaviorsDo:[:aClass |
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   152
        |cat|
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   153
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   154
        aClass isMeta ifFalse:[
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   155
            (aClass isNamespace not 
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   156
            or:[aClass == Namespace 
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   157
            or:[aClass == Smalltalk]]) ifTrue:[
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   158
                (allNames or:[aClass nameSpace == nameSpace]) ifTrue:[
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   159
                    cat := aClass category.
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   160
                    cat = aCategory ifTrue:[
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   161
                        classSet add:aClass name
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   162
                    ]
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   163
                ]
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   164
            ]
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   165
        ]
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   166
    ].
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   167
    ^ classSet asArray sort.
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   168
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   169
    "
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   170
     (SystemOrganizer for:nil) listAtCategoryNamed:'Collections-Abstract' 
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   171
     (SystemOrganizer for:Smalltalk) listAtCategoryNamed:'Collections-Abstract' 
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   172
     (SystemOrganizer for:Demos) listAtCategoryNamed:'Collections-Abstract' 
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   173
    "
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   174
1d4a311dd765 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 688
diff changeset
   175
    "Modified: / 20.6.1998 / 13:34:19 / cg"
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
! !
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   178
!SystemOrganizer methodsFor:'change and update'!
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   179
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   180
update:something with:anArgument from:changedObject
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   181
    categoryArray := nil.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   182
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   183
    "Created: / 6.2.2000 / 20:08:52 / cg"
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   184
    "Modified: / 6.2.2000 / 20:10:21 / cg"
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   185
! !
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   186
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   187
!SystemOrganizer methodsFor:'private accessing'!
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
nameSpace:aNameSpace
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
    "set the nameSpace - nil is allowed and stands for: any"
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
    nameSpace := aNameSpace.
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
    Smalltalk addDependent:self.
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
    "
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
     (SystemOrganizer for:nil) organization
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
     (SystemOrganizer for:Demos) organization
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
    "
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
    "Modified: / 20.6.1998 / 12:35:34 / cg"
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
! !
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
!SystemOrganizer class methodsFor:'documentation'!
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
version
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   206
    ^ '$Header: /cvs/stx/stx/libbasic3/SystemOrganizer.st,v 1.5 2000-02-07 11:16:03 cg Exp $'
688
5d925b1c32c1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
! !